.kcr-reviews-wrap,
.kcr-review-form,
.kcr-review-summary {
    --kcr-card-bg: var(--wp--preset--color--base, #ffffff);
    --kcr-muted: color-mix(in srgb, currentColor 62%, transparent);
    --kcr-border: color-mix(in srgb, currentColor 18%, transparent);
    --kcr-soft-bg: color-mix(in srgb, currentColor 5%, transparent);
    --kcr-radius: 8px;
    color: inherit;
    font-family: inherit;
}

.kcr-verified-review-page {
    background: var(--wp--preset--color--base, #ffffff);
    color: inherit;
    margin: 0;
}

.kcr-review-page {
    min-height: 100vh;
    padding: 32px 16px;
}

.kcr-review-page-inner {
    margin: 0 auto;
    max-width: min(820px, 100%);
}

.kcr-review-page h1 {
    color: inherit;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
    margin: 0 0 8px;
}

.kcr-review-page-intro {
    color: var(--kcr-muted);
    font-size: 17px;
    margin: 0 0 20px;
}

.kcr-review-form-head {
    margin: 0 0 20px;
}

.kcr-review-form-head h2 {
    color: inherit;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.2;
    margin: 0 0 8px;
}

.kcr-review-form-head p {
    color: var(--kcr-muted);
    font-size: 17px;
    margin: 0;
}

.kcr-review-summary {
    align-items: center;
    background: var(--kcr-soft-bg);
    border: 1px solid var(--kcr-border);
    border-radius: var(--kcr-radius);
    display: flex;
    gap: 16px;
    padding: 18px;
}

.kcr-summary-score {
    color: var(--wp--preset--color--primary, currentColor);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.kcr-summary-count,
.kcr-review-card footer {
    color: var(--kcr-muted);
    font-size: 14px;
}

.kcr-stars {
    color: var(--kcr-star, #d9981e);
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.kcr-review-summary .kcr-stars {
    font-size: 18px;
}

.kcr-reviews-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.kcr-review-card {
    background: var(--kcr-card-bg);
    border: 1px solid var(--kcr-border);
    border-radius: var(--kcr-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: inherit;
    overflow: hidden;
    padding: 18px;
}

.kcr-review-photo {
    margin: -18px -18px 16px;
}

.kcr-review-photo img {
    aspect-ratio: 4 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.kcr-review-topline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.kcr-review-card .kcr-stars {
    font-size: 20px;
}

.kcr-verified {
    align-items: center;
    color: currentColor;
    display: inline-flex;
    font-size: 16px;
    font-weight: 600;
    gap: 6px;
}

.kcr-verified::before {
    color: #59b84d;
    content: "\2713";
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.kcr-service {
    align-items: center;
    color: currentColor;
    display: inline-flex;
    font-size: 16px;
    font-weight: 500;
}

.kcr-service::before {
    color: var(--kcr-muted);
    content: "-";
    margin: 0 8px 0 2px;
}

.kcr-review-card h3 {
    color: inherit;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
}

.kcr-review-content p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 12px;
}

.kcr-review-card footer {
    align-items: center;
    border-top: 0;
    display: flex;
    gap: 18px;
    margin-top: 28px;
    padding-top: 0;
}

.kcr-reviewer-name {
    color: currentColor;
    display: block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
}

.kcr-reviewer-details {
    align-items: center;
    color: var(--kcr-muted);
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 15px;
    gap: 6px;
    line-height: 1.4;
}

.kcr-flag {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    display: inline-block;
    flex: 0 0 auto;
    height: 18px;
    margin: 0;
    object-fit: cover;
    vertical-align: middle;
    width: 24px;
}

.kcr-review-card footer .kcr-country .kcr-flag {
    display: inline-block;
    max-width: 24px;
}

.kcr-review-flag {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
}

.kcr-flag-large {
    border-radius: 999px;
    height: 64px;
    max-width: none;
    width: 64px;
}

.kcr-review-form {
    background: var(--kcr-card-bg);
    border: 1px solid var(--kcr-border);
    border-radius: var(--kcr-radius);
    padding: 20px;
}

.kcr-field-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kcr-review-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 14px;
}

.kcr-review-form input,
.kcr-review-form select,
.kcr-review-form textarea,
.kcr-review-filters select {
    border: 1px solid var(--kcr-border);
    border-radius: 6px;
    box-sizing: border-box;
    color: inherit;
    display: block;
    font: inherit;
    margin-top: 6px;
    min-height: 44px;
    padding: 9px 11px;
    width: 100%;
}

.kcr-review-button,
.kcr-review-filters button {
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 18px;
}

.kcr-hidden-field {
    height: 0;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.kcr-review-note {
    background: var(--kcr-soft-bg);
    border: 1px solid var(--kcr-border);
    border-radius: var(--kcr-radius);
    padding: 16px;
}

.kcr-review-filters {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

@supports not (color: color-mix(in srgb, currentColor 50%, transparent)) {
    .kcr-reviews-wrap,
    .kcr-review-form,
    .kcr-review-summary {
        --kcr-muted: #64727d;
        --kcr-border: #dfe7eb;
        --kcr-soft-bg: #f5f8fa;
    }
}

@media (max-width: 720px) {
    .kcr-review-page {
        padding: 22px 12px;
    }

    .kcr-field-grid,
    .kcr-review-filters {
        grid-template-columns: 1fr;
    }

    .kcr-review-summary {
        align-items: flex-start;
    }

    .kcr-summary-score {
        font-size: 34px;
    }

    .kcr-flag-large {
        height: 54px;
        width: 54px;
    }

    .kcr-review-topline {
        gap: 6px 8px;
    }

    .kcr-service,
    .kcr-verified {
        font-size: 15px;
    }
}
