#shop-theme-feedback-widget,
#shop-theme-feedback-widget * {
    box-sizing: border-box;
}

#shop-theme-feedback-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483000;
    font-family: Arial, Helvetica, sans-serif;
    color: #172033;
}

#shop-theme-feedback-widget.kfb-position-right-bottom {
    right: 18px;
    bottom: 50px;
    left: auto;
    top: auto;
}

#shop-theme-feedback-widget.kfb-position-left-bottom {
    left: 18px;
    bottom: 26px;
    right: auto;
    top: auto;
}

#shop-theme-feedback-widget.kfb-position-right-top {
    right: 18px;
    top: 18px;
    left: auto;
    bottom: auto;
}

#shop-theme-feedback-widget.kfb-position-left-top {
    left: 18px;
    top: 18px;
    right: auto;
    bottom: auto;
}

#shop-theme-feedback-widget.kfb-capturing,
.kfb-is-capturing #shop-theme-feedback-widget {
    display: none !important;
}

.kfb-open-button {
    min-width: 178px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #e31e24;
    color: #fff;
    font-size: 14px;
    line-height: 46px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
    cursor: pointer;
    text-align: center;
}

.kfb-open-button:hover,
.kfb-open-button:focus {
    background: #6EB408;
    outline: none;
}

.kfb-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483001;
    background: rgba(15, 23, 42, .58);
    padding: 20px;
    overflow: auto;
}

.kfb-overlay.kfb-open {
    display: block;
}

.kfb-dialog {
    position: relative;
    max-width: 540px;
    margin: 7vh auto 24px;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .38);
}

.kfb-close {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 24px;
    line-height: 30px;
    cursor: pointer;
}

.kfb-close:hover,
.kfb-close:focus {
    background: #e2e8f0;
    outline: none;
}

.kfb-dialog h2 {
    margin: 0 38px 8px 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.kfb-intro {
    margin: 0 0 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}

.kfb-field {
    display: block;
    margin-bottom: 14px;
}

.kfb-label-text {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.kfb-field textarea,
.kfb-field input[type="text"] {
    display: block;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: 14px/1.45 Arial, Helvetica, sans-serif;
}

.kfb-field textarea {
    min-height: 130px;
    resize: vertical;
    padding: 11px 12px;
}

.kfb-field input[type="text"] {
    height: 42px;
    padding: 0 12px;
}

.kfb-field input[type="file"] {
    display: block;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
    padding: 6px;
}

.kfb-field input[type="file"]::file-selector-button {
    min-height: 36px;
    margin: 0 10px 0 0;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #6EB408;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    cursor: pointer;
}

.kfb-field input[type="file"]::-webkit-file-upload-button {
    min-height: 36px;
    margin: 0 10px 0 0;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #e31e24;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    cursor: pointer;
}

.kfb-field input[type="file"]:hover::file-selector-button,
.kfb-field input[type="file"]:focus::file-selector-button,
.kfb-field input[type="file"]:hover::-webkit-file-upload-button,
.kfb-field input[type="file"]:focus::-webkit-file-upload-button {
    background: #6EB408;
}

.kfb-field input[type="file"]:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.kfb-field textarea:focus,
.kfb-field input[type="text"]:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.kfb-check {
    display: block;
    position: relative;
    margin: 10px 0;
    padding-left: 28px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.kfb-check input {
    position: absolute;
    left: 0;
    top: 2px;
}

.kfb-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.kfb-note {
    margin: 14px 0;
    padding: 11px 12px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    line-height: 1.45;
}

.kfb-status {
    display: none;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    line-height: 1.45;
}

.kfb-status.kfb-show {
    height: 120px;
    font-size: 20px;
    display: block;
}

.kfb-status.kfb-error {
    background: #fef2f2;
    color: #b91c1c;
}

.kfb-status.kfb-success {
    background: #ecfdf5;
    color: #047857;
}

.kfb-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.kfb-submit,
.kfb-cancel {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.kfb-submit {
    border: 0;
    background: #6EB408;
    color: #fff;
}

.kfb-submit:hover,
.kfb-submit:focus {
    background: #6EB418;
    outline: none;
}

.kfb-submit:disabled {
    cursor: wait;
    opacity: .68;
}

.kfb-cancel {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.kfb-cancel:hover,
.kfb-cancel:focus {
    background: #f8fafc;
    outline: none;
}

@media (max-width: 640px) {
    #shop-theme-feedback-widget,
    #shop-theme-feedback-widget.kfb-position-right-bottom {
        right: 12px;
        bottom: 63px;
    }

    #shop-theme-feedback-widget.kfb-position-left-bottom {
        left: 6px;
        bottom: 63px;
    }

    #shop-theme-feedback-widget.kfb-position-right-top {
        right: 12px;
        top: 12px;
    }

    #shop-theme-feedback-widget.kfb-position-left-top {
        left: 12px;
        top: 12px;
    }

    .kfb-open-button {
        min-width: 0;
        min-height: 42px;
        padding: 0 14px;
        line-height: 42px;
        font-size: 13px;
    }

    .kfb-overlay {
        padding: 10px;
    }

    .kfb-dialog {
        margin: 4vh auto 12px;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .kfb-dialog h2 {
        font-size: 20px;
    }

    .kfb-actions {
        display: block;
    }

    .kfb-submit,
    .kfb-cancel {
        display: block;
        width: 100%;
        margin-top: 10px;
    }
}
