/* WKSS Display Custom: verified-review form and coupon completion card. */
.wkdc-verified-review-form {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    background: #fff;
    color: #1f2933;
    line-height: 1.7;
    color-scheme: light;
}

.wkdc-verified-review-form input[type="text"],
.wkdc-verified-review-form select,
.wkdc-verified-review-form textarea {
    width: 100%;
    max-width: 560px;
}

.wkdc-review-submit-box {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.wkdc-review-form-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #1f2933;
}

.wkdc-review-form-notice--success {
    border: 1px solid #9dcda6;
    background: #f2fff2;
}

.wkdc-review-form-notice--error {
    border: 1px solid #e3b1b1;
    background: #fff6f6;
}

.wkdc-review-coupon-notice {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #77b987;
    border-radius: 10px;
    background: #f8fff8;
    color: #18221b !important;
    color-scheme: light;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

.wkdc-review-coupon-notice,
.wkdc-review-coupon-notice p,
.wkdc-review-coupon-notice span,
.wkdc-review-coupon-notice dt,
.wkdc-review-coupon-notice dd {
    color: #18221b !important;
}

.wkdc-review-coupon-heading {
    margin: 0 0 8px !important;
    font-size: 1.08em;
}

.wkdc-review-coupon-intro {
    margin: 0 0 16px !important;
}

.wkdc-review-coupon-code-box {
    margin: 16px 0;
    padding: 16px;
    border: 2px solid #21863d;
    border-radius: 9px;
    background: #fff;
    text-align: center;
}

.wkdc-review-coupon-code-label {
    display: block;
    margin-bottom: 7px;
    color: #166b30 !important;
    font-size: .86em;
    font-weight: 700;
    letter-spacing: .08em;
}

.wkdc-review-coupon-code {
    display: block;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #0d6f2b !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: clamp(1.55rem, 7vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .06em;
    overflow-wrap: anywhere;
    user-select: all;
    -webkit-user-select: all;
}

.wkdc-review-coupon-code-help {
    display: block;
    margin-top: 8px;
    color: #44524a !important;
    font-size: .82em;
    line-height: 1.55;
}

.wkdc-review-coupon-details {
    margin: 14px 0 0;
}

.wkdc-review-coupon-detail-row {
    display: grid;
    grid-template-columns: 6em minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #dce9df;
}

.wkdc-review-coupon-detail-row dt {
    font-weight: 700;
}

.wkdc-review-coupon-detail-row dd {
    margin: 0;
    font-weight: 700;
}

.wkdc-review-coupon-description {
    margin: 14px 0 0 !important;
}

.wkdc-review-coupon-reminder {
    margin: 12px 0;
    padding: 10px 12px;
    border-left: 4px solid #dba617;
    border-radius: 6px;
    background: #fff8e5;
    color: #5f4300 !important;
    font-weight: 700;
}

/* Keep WDC's light coupon card readable even when the OS or theme is dark. */
@media (prefers-color-scheme: dark) {
    .wkdc-verified-review-form {
        background: #fff !important;
        color: #1f2933 !important;
        border-color: #d7dce2 !important;
    }

    .wkdc-review-form-notice--success {
        background: #f2fff2 !important;
        color: #18221b !important;
        border-color: #9dcda6 !important;
    }

    .wkdc-review-coupon-notice {
        background: #f8fff8 !important;
        color: #18221b !important;
        border-color: #77b987 !important;
    }

    .wkdc-review-coupon-code-box {
        background: #fff !important;
        border-color: #21863d !important;
    }
}

/* Common class/data-attribute based dark-mode implementations. */
html.dark .wkdc-review-coupon-notice,
html.dark-mode .wkdc-review-coupon-notice,
html[data-theme="dark"] .wkdc-review-coupon-notice,
body.dark .wkdc-review-coupon-notice,
body.dark-mode .wkdc-review-coupon-notice {
    background: #f8fff8 !important;
    color: #18221b !important;
}

@media (max-width: 480px) {
    .wkdc-review-coupon-notice {
        padding: 14px;
    }

    .wkdc-review-coupon-code-box {
        padding: 14px 10px;
    }

    .wkdc-review-coupon-detail-row {
        grid-template-columns: 1fr;
        gap: 1px;
    }
}
