.review-page {
    padding: 58px 0 82px;
    background: #f8f3e8;
}

.review-page-container {
    max-width: 1120px;
}

.review-page-intro {
    max-width: 760px;
    margin-bottom: 30px;
}

.review-page-intro h1 {
    margin: 10px 0 12px;
    color: var(--olive);
}

.review-page-intro p,
.review-card-intro,
.review-public-empty {
    color: #687067;
    line-height: 1.7;
}

.review-alert {
    margin: 0 0 20px;
    padding: 14px 17px;
    border-radius: 12px;
    font-weight: 700;
}

.review-success {
    background: #e9f5e8;
    color: #285c2b;
}

.review-error {
    background: #fff0ee;
    color: #8a3027;
}

.review-write-card,
.review-login-card,
.review-public-section {
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(49, 75, 31, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(49, 75, 31, .07);
}

.review-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.review-card-heading > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.review-card-heading h2 {
    margin: 0;
    color: var(--olive);
    font-size: 1.35rem;
}

.review-card-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf4e8;
    color: var(--olive);
    font-size: .78rem;
    font-weight: 900;
}

.review-verified-badge {
    padding: 7px 11px;
    border-radius: 999px;
    background: #edf4e8;
    color: #315b28;
    font-size: .78rem;
    font-weight: 800;
}

.review-orders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.review-order-card {
    padding: 20px;
    border: 1px solid #e4e5dc;
    border-radius: 14px;
    background: #fcfcf8;
}

.review-order-card > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.review-order-card > div:first-child small {
    color: #777;
}

.review-order-card > span {
    display: block;
    margin-bottom: 15px;
    color: var(--olive);
    font-weight: 800;
}

.review-form fieldset {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.review-form legend,
.review-form label {
    display: block;
    margin-bottom: 7px;
    color: #35433a;
    font-size: .86rem;
    font-weight: 800;
}

.review-stars-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 3px;
    padding: 2px 0;
}

.review-stars-input label {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.review-stars-input input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.review-stars-input span {
    display: inline-block;
    color: #d4bd75;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color .12s ease, transform .12s ease;
}

.review-stars-input label:hover span,
.review-stars-input label:hover ~ label span,
.review-stars-input label:has(input:checked) span,
.review-stars-input label:has(input:checked) ~ label span {
    color: #c59b39;
}

.review-stars-input label:hover span,
.review-stars-input label:hover ~ label span {
    transform: scale(1.06);
}

.review-stars-input input:focus-visible ~ span {
    outline: 2px solid #c59b39;
    outline-offset: 3px;
    border-radius: 4px;
}

.review-form textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 110px;
    padding: 12px 13px;
    border: 1px solid #dfe2d8;
    border-radius: 10px;
    font: inherit;
}

.review-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: var(--olive);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.review-submit-button:hover {
    background: #243a18;
}

.review-order-status {
    margin-top: 12px;
    color: #647067;
    font-size: .84rem;
    font-weight: 700;
}

.review-empty {
    padding: 18px;
    border-radius: 12px;
    background: #f5f7f0;
}

.review-empty p {
    margin: 6px 0 10px;
}

.review-secondary-link {
    color: var(--olive);
    font-weight: 800;
    text-decoration: none;
}

.review-login-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

.review-login-card > span {
    font-size: 1.7rem;
}

.review-login-card h2 {
    margin: 0 0 5px;
    color: var(--olive);
}

.review-login-card p {
    margin: 0;
    color: #687067;
}

.review-login-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.review-public-card {
    padding: 20px;
    border-radius: 14px;
    background: #f8f6ee;
}

.review-public-stars {
    margin-bottom: 10px;
    color: #c59b39;
    letter-spacing: 1px;
}

.review-public-card p {
    margin: 0 0 14px;
    color: #4f5b52;
    line-height: 1.65;
}

.review-public-card small {
    color: #6d766d;
    font-weight: 700;
}

@media (max-width: 800px) {
    .review-orders-grid,
    .review-public-grid {
        grid-template-columns: 1fr;
    }

    .review-login-card {
        grid-template-columns: 1fr;
    }

    .review-login-actions {
        flex-wrap: wrap;
    }
}
