.product-feedback-trigger {
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 4px;
}

.product-feedback-trigger:hover {
    color: #5b1499;
    text-decoration: underline;
}

.product-feedback-modal {
    align-items: center;
    background: rgba(15, 23, 42, .56);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 100000;
}

.product-feedback-modal.is-open {
    display: flex;
}

.product-feedback-dialog {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(0, 0, 0, .25);
    max-height: calc(100vh - 40px);
    max-width: 540px;
    overflow-y: auto;
    padding: 0;
    width: 100%;
}

.product-feedback-head {
    align-items: center;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    margin: 0;
    min-height: 62px;
    padding: 0 62px 0 0;
    position: relative;
}

.product-feedback-head h4 {
    background: #fff;
    border-radius: 4px 0 0 0;
    border-right: 1px solid #e0e0e0;
    color: #6d01be;
    font-size: 16px;
    font-weight: 600;
    height: 62px;
    line-height: 62px;
    margin: 0;
    padding: 0 30px;
    position: relative;
}

.product-feedback-head h4::after {
    background: #fff;
    bottom: -1px;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.product-feedback-intro {
    margin-bottom: 28px;
    text-align: center;
}

.product-feedback-intro h3 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    line-height: 27px;
    margin: 0;
}

.product-feedback-intro p,
.product-feedback-help {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 0;
}

.product-feedback-close {
    align-items: center;
    background: #f8f8f7;
    border: 0;
    border-left: 1px solid #e0e0e0;
    border-radius: 0 4px 0 0;
    color: #667085;
    cursor: pointer;
    display: flex;
    font-size: 24px;
    height: 61px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 62px;
}

.product-feedback-close:hover {
    background: #f2f2f2;
    color: #333;
}

[data-product-feedback-form] {
    padding: 32px 24px 30px;
}

.product-feedback-reasons {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
}

.product-feedback-option.checkbox,
.product-feedback-consent.checkbox {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}

.product-feedback-option.checkbox label,
.product-feedback-consent.checkbox label {
    color: #374151;
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    min-height: 22px;
    padding-left: 30px;
}

.product-feedback-option.checkbox label span.checkbox-icon,
.product-feedback-consent.checkbox label span.checkbox-icon {
    border-color: #b4b4b4;
    top: 1px;
}

.product-feedback-option.checkbox label:hover span.checkbox-icon,
.product-feedback-consent.checkbox label:hover span.checkbox-icon {
    border-color: #6d01be;
}

.product-feedback-option.checkbox input:focus-visible + label span.checkbox-icon,
.product-feedback-consent.checkbox input:focus-visible + label span.checkbox-icon {
    outline: 3px solid rgba(109, 1, 190, .18);
    outline-offset: 2px;
}

.product-feedback-option.checkbox input:checked + label span.checkbox-icon,
.product-feedback-consent.checkbox input:checked + label span.checkbox-icon {
    background-color: #6d01be;
    border-color: #6d01be;
}

.product-feedback-option .checkbox-text,
.product-feedback-consent .checkbox-text {
    display: block;
}

.product-feedback-consent.checkbox {
    margin-top: 2px;
}

.product-feedback-consent.checkbox label {
    color: #666;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
}

.product-feedback-consent.checkbox label span.checkbox-icon {
    top: 0;
}

.content-feedback-reporter {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.content-feedback-reporter label {
    color: #333;
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.content-feedback-reporter input {
    margin: 7px 0 0;
    width: 100%;
}

.content-feedback-turnstile {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.product-feedback-comment {
    display: block;
    margin-bottom: 16px;
}

.product-feedback-comment span {
    color: #374151;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-feedback-comment textarea {
    border: 1px solid #d8dde6;
    border-radius: 8px;
    min-height: 90px;
    padding: 10px 12px;
    resize: vertical;
    width: 100%;
}

.product-feedback-message {
    border-radius: 8px;
    display: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    margin-top: 14px;
    padding: 10px 12px;
}

.product-feedback-message.is-error {
    background: #fef2f2;
    color: #b91c1c;
    display: block;
}

.product-feedback-message.is-success {
    background: #ecfdf3;
    color: #167456;
    display: block;
}

.product-feedback-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.product-feedback-actions .button {
    flex: 1 1 0;
    height: 48px;
    margin: 0;
}

.product-feedback-actions button[disabled] {
    cursor: wait;
    opacity: .7;
}

[data-product-feedback-form].is-submitted .product-feedback-actions button[type="submit"] {
    background: #d8dde6;
    color: #7b8794;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

[data-product-feedback-form].is-submitted,
[data-product-feedback-form].is-submitted label {
    cursor: default;
}

body.product-feedback-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .product-feedback-modal {
        align-items: flex-end;
        padding: 0;
    }

    .product-feedback-dialog {
        border-radius: 4px 4px 0 0;
        max-height: 88vh;
        max-width: none;
    }

    .product-feedback-head {
        padding-right: 62px;
    }

    .product-feedback-head h4 {
        padding-left: 20px;
        padding-right: 20px;
    }

    [data-product-feedback-form] {
        padding: 22px 20px 24px;
    }

    .product-feedback-intro {
        margin-bottom: 22px;
    }

    .product-feedback-intro h3 {
        font-size: 21px;
    }

    .content-feedback-reporter {
        grid-template-columns: 1fr;
    }
}
