/* ═══════════════════════════════════════════════════
   Gros Review — Frontend Styles
   Jacqueline theme compatible · All scoped to .gr-*
   ═══════════════════════════════════════════════════ */

:root {
    --gr-primary: #c9956b;
    --gr-primary-dark: #a0785a;
    --gr-accent-bg: #fdf8f4;
}

/* ── Form Container ─────────────────────────────── */
.gr-wrap {
    max-width: 580px;
    margin: 0 auto;
    padding: 16px 16px 48px;
    font-family: 'Lato', sans-serif;
    color: #3a3228;
    box-sizing: border-box;
}

.gr-wrap *,
.gr-wrap *::before,
.gr-wrap *::after {
    box-sizing: border-box;
}

.gr-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(90, 60, 30, .10), 0 1px 4px rgba(90, 60, 30, .06);
    overflow: hidden;
}

.gr-card-bar {
    height: 5px;
    background: linear-gradient(90deg, var(--gr-primary) 0%, #e8c4a0 50%, var(--gr-primary-dark) 100%);
}

/* ── Header ─────────────────────────────────────── */
.gr-header {
    text-align: center;
    padding: 32px 28px 22px;
    background: linear-gradient(160deg, var(--gr-accent-bg) 0%, #fef3e8 100%);
    border-bottom: 1px solid #f5e8da;
}

.gr-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.gr-emoji {
    font-size: 36px;
    line-height: 1;
    display: inline-block;
}

.gr-custom-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(160, 120, 90, .25);
}

.gr-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: #2c1f14;
    margin: 0 0 7px;
    line-height: 1.25;
}

.gr-subtitle {
    font-size: 15px;
    color: #7a6a5a;
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
}

.gr-service-tag {
    display: inline-block;
    margin-top: 10px;
    background: #f5e8da;
    color: #8b5e3c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ── Form Fields ─────────────────────────────────── */
form#gr-form {
    padding: 24px 28px 28px;
}

.gr-field {
    margin-bottom: 20px;
}

.gr-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5a4535;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.gr-req {
    color: var(--gr-primary);
}

.gr-optional {
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: #9a8878;
    font-size: 12px;
}

.gr-input,
.gr-textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #e8d8c8;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #2c1f14;
    background: #fffaf7;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.gr-input::placeholder,
.gr-textarea::placeholder {
    color: #c0aa95;
}

.gr-input:focus,
.gr-textarea:focus {
    border-color: var(--gr-primary);
    box-shadow: 0 0 0 3px rgba(201, 149, 107, .12);
    background: #fff;
}

.gr-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
    font-family: 'Lato', sans-serif;
}

.gr-hint {
    display: block;
    font-size: 12px;
    color: #9a8878;
    margin-top: 4px;
    line-height: 1.4;
}

/* ── Email with domain suggestions ──────────────── */
.gr-email-field {
    position: relative;
}

.gr-email-wrap {
    position: relative;
}

.gr-domain-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8d8c8;
    border-radius: 10px;
    margin-top: 4px;
    max-height: 240px;
    overflow: auto;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(90, 60, 30, .12);
    display: none;
}

.gr-domain-suggestions.visible {
    display: block;
}

.gr-domain-item {
    padding: 10px 14px;
    font-size: 14px;
    color: #2c1f14;
    cursor: pointer;
    transition: background .15s;
}

.gr-domain-item:hover,
.gr-domain-item.highlight {
    background: var(--gr-accent-bg);
    color: var(--gr-primary-dark);
}

/* ── Stars ──────────────────────────────────────── */
.gr-stars-field {
    margin-bottom: 26px;
}

.gr-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 3px;
    margin-bottom: 6px;
}

/* .gr-stars input[type=radio] { display:none; }
.gr-stars label { font-size:36px; cursor:pointer; color:#e0cfc0; transition:color .15s,transform .15s; line-height:1; user-select:none; }
.gr-stars label:hover, .gr-stars label:hover ~ label, .gr-stars input:checked ~ label { color:var(--gr-primary); }
.gr-stars label:hover { transform:scale(1.15); } */
.gr-stars input[type=radio] {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 4px 0 0;
    cursor: pointer;
    accent-color: #FFC107;
    vertical-align: middle;
}

.gr-star-pair {
    display: inline-flex;
    align-items: center;
}

/* Star buttons — large, clearly outlined, obviously clickable */
.gr-stars label {
    font-size: 44px;
    cursor: pointer;
    color: #FFFFFF;
    /* hollow fill */
    -webkit-text-stroke: 2px #d4453a;
    /* bold red outline = "needs your input" */
    text-stroke: 2px #d4453a;
    transition: color .18s, transform .15s, -webkit-text-stroke-color .18s;
    line-height: 1;
    user-select: none;
    padding: 0 2px;
}

/* Hover + selected = solid Google-yellow with darker yellow outline.
   .gr-stars is row-reverse (DOM is 5..1, displayed 1..5), so the ~ sibling
   selector reaches visually-earlier pairs on hover.
   .gr-checked is toggled by JS (front.js) on change/init — avoids relying
   on :has(), which is unsupported in older Safari/Firefox. */
.gr-star-pair:hover label,
.gr-star-pair:hover~.gr-star-pair label,
.gr-star-pair.gr-checked label {
    color: #FFC107;
    -webkit-text-stroke: 1.5px #E0A800;
    text-stroke: 1.5px #E0A800;
}

.gr-star-pair:hover label {
    transform: scale(1.2);
}

.gr-rating-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gr-primary);
    letter-spacing: .05em;
    text-transform: uppercase;
    min-height: 16px;
}





/* ── Photo Upload ───────────────────────────────── */
.gr-photo-drop {
    position: relative;
    border: 2px dashed #e0cfc0;
    border-radius: 12px;
    background: #fffaf7;
    transition: .2s;
    cursor: pointer;
}

.gr-photo-drop:hover,
.gr-photo-drop.drag-over {
    border-color: var(--gr-primary);
    background: #fdf4ec;
}

.gr-photo-circle {
    border-radius: 50%;
    aspect-ratio: 1;
    max-width: 140px;
    margin: 0 auto;
}

.gr-photo-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.gr-photo-inner {
    padding: 22px;
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.gr-photo-icon {
    font-size: 26px;
    margin-bottom: 5px;
}

.gr-photo-text {
    font-size: 13px;
    color: #7a6a5a;
}

.gr-photo-hint {
    font-size: 11px;
    color: #b0a090;
    margin-top: 3px;
}

.gr-link {
    color: var(--gr-primary);
    font-weight: 600;
}

.gr-photo-preview {
    max-width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.gr-photo-drop.gr-photo-circle .gr-photo-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* ── Checkbox Fields (Anon, Google, Consent) ───── */
.gr-anon-field,
.gr-google-field {
    background: #f9f3ee;
    border: 1px solid #f0e0d0;
    border-radius: 10px;
    padding: 12px 14px;
}

.gr-consent-field {
    background: #fdf6f0;
    border: 1.5px solid var(--gr-primary);
    border-radius: 10px;
    padding: 14px;
}

.gr-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.gr-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.gr-check-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gr-primary);
    border-radius: 5px;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    margin-top: 1px;
}

.gr-check:checked+.gr-check-box {
    background: var(--gr-primary);
}

.gr-check:checked+.gr-check-box::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.gr-check-label {
    font-size: 13px;
    color: #5a4535;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
    line-height: 1.5;
}

.gr-consent-label {
    font-size: 13px;
    color: #4a3525;
    line-height: 1.5;
    display: inline;
}

.gr-google-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #4285f4;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Submit Button ──────────────────────────────── */
.gr-submit-field {
    margin-top: 24px;
    margin-bottom: 0;
}

.gr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--gr-primary) 0%, var(--gr-primary-dark) 100%);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(160, 120, 90, .28);
}

.gr-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(160, 120, 90, .36);
    color: #fff;
}

.gr-btn:active {
    transform: translateY(0);
}

.gr-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.gr-btn-google {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    box-shadow: 0 4px 16px rgba(66, 133, 244, .28);
    margin-top: 14px;
}

/* ── Error ──────────────────────────────────────── */
.gr-error {
    background: #fdf0ee;
    border: 1px solid #f5ccc7;
    color: #c0392b;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
}

/* ── Thank You ──────────────────────────────────── */
.gr-thankyou .gr-header {
    padding: 44px 28px 32px;
}

.gr-google-prompt {
    padding: 0 28px 28px;
}

.gr-google-box {
    background: #f0f7ff;
    border: 1px solid #d0e4ff;
    border-radius: 12px;
    padding: 18px;
}

.gr-google-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: #1a3a6b;
    margin-bottom: 7px;
}

.gr-google-logo-lg {
    width: 26px;
    height: 26px;
    background: #4285f4;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.gr-google-desc {
    font-size: 13px;
    color: #4a5a7a;
    margin: 0 0 10px;
    line-height: 1.5;
}

.gr-google-comment {
    background: #fff;
    border: 1px solid #c8d8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #2c3e50;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════
   SUMMARY WIDGET (master-detail)
   ═══════════════════════════════════════════════════ */
.gr-summary-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 16px;
    font-family: 'Lato', sans-serif;
}

.gr-summary-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.gr-summary-left,
.gr-summary-right {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(90, 60, 30, .08);
    min-width: 0;
}

.gr-summary-header {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #f5e8da;
    margin-bottom: 16px;
}

.gr-summary-avg {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: #2c1f14;
    line-height: 1;
}

.gr-summary-stars {
    color: var(--gr-primary);
    font-size: 22px;
    letter-spacing: 3px;
    margin: 6px 0 4px;
}

.gr-summary-count {
    font-size: 12px;
    color: #7a6a5a;
}

.gr-summary-bars {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.gr-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.gr-bar-label {
    color: #7a6a5a;
    width: 24px;
    font-weight: 600;
}

.gr-bar-track {
    flex: 1;
    height: 8px;
    background: #f5e8da;
    border-radius: 4px;
    overflow: hidden;
}

.gr-bar-fill {
    height: 100%;
    background: var(--gr-primary);
    border-radius: 4px;
    transition: width .4s;
}

.gr-bar-count {
    color: #9a8878;
    min-width: 24px;
    text-align: right;
}

.gr-summary-recent {
    border-top: 1px solid #f5e8da;
    padding-top: 14px;
}

.gr-summary-recent-label {
    font-size: 11px;
    font-weight: 600;
    color: #9a8878;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.gr-summary-preview {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    margin-bottom: 4px;
}

.gr-summary-preview:hover {
    background: var(--gr-accent-bg);
}

.gr-summary-preview.active {
    background: var(--gr-accent-bg);
    border-left: 3px solid var(--gr-primary);
    padding-left: 9px;
}

.gr-summary-preview-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    overflow: hidden;
}

.gr-summary-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gr-summary-preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.gr-summary-preview-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c1f14;
}

.gr-summary-preview-stars {
    color: var(--gr-primary);
    font-size: 12px;
    letter-spacing: 1px;
}

.gr-summary-preview-text {
    font-size: 12px;
    color: #7a6a5a;
    font-style: italic;
    line-height: 1.4;
}

.gr-summary-right {
    min-height: 300px;
}

.gr-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    text-align: center;
    color: #9a8878;
}

.gr-detail-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
    opacity: .5;
}

.gr-detail-empty-text {
    font-size: 14px;
    max-width: 240px;
}

.gr-detail-card {
    animation: gr-fade-in .3s ease-out;
}

@keyframes gr-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gr-detail-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5e8da;
}

.gr-detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.gr-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gr-detail-name-box {
    flex: 1;
}

.gr-detail-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #2c1f14;
}

.gr-detail-sub {
    font-size: 13px;
    color: #7a6a5a;
    margin-top: 3px;
}

.gr-detail-stars {
    color: var(--gr-primary);
    font-size: 22px;
    letter-spacing: 2px;
}

.gr-detail-comment {
    font-size: 15px;
    color: #3a3228;
    font-style: italic;
    line-height: 1.7;
    padding: 14px 18px;
    background: var(--gr-accent-bg);
    border-left: 3px solid var(--gr-primary);
    border-radius: 0 8px 8px 0;
    margin-bottom: 14px;
}

.gr-detail-photo {
    margin-top: 14px;
    border-radius: 10px;
    overflow: hidden;
}

.gr-detail-photo img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.gr-summary-empty {
    text-align: center;
    padding: 30px 20px;
    color: #9a8878;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════
   FULL TESTIMONIAL WALL
   ═══════════════════════════════════════════════════ */
.gr-wall-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px;
    font-family: 'Lato', sans-serif;
}

.gr-wall-header {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(90, 60, 30, .08);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
}

.gr-wall-avg-box {
    text-align: center;
}

.gr-wall-avg-num {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 600;
    color: #2c1f14;
    line-height: 1;
}

.gr-wall-avg-stars {
    color: var(--gr-primary);
    font-size: 24px;
    letter-spacing: 3px;
    margin: 8px 0 5px;
}

.gr-wall-avg-count {
    font-size: 13px;
    color: #7a6a5a;
}

.gr-wall-bars {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.gr-wall-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.gr-wall-filter {
    padding: 7px 16px;
    border: 1.5px solid #e8d8c8;
    border-radius: 24px;
    background: #fff;
    font-size: 13px;
    color: #7a6a5a;
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
}

.gr-wall-filter:hover {
    border-color: var(--gr-primary);
    color: var(--gr-primary);
}

.gr-wall-filter.active {
    background: var(--gr-primary);
    border-color: var(--gr-primary);
    color: #fff;
}

.gr-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.gr-wall-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(90, 60, 30, .07);
    transition: transform .15s, box-shadow .15s;
}

.gr-wall-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 60, 30, .12);
}

.gr-wall-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gr-wall-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.gr-wall-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gr-wall-name-box {
    flex: 1;
    min-width: 0;
}

.gr-wall-name {
    font-size: 15px;
    font-weight: 600;
    color: #2c1f14;
}

.gr-wall-sub {
    font-size: 12px;
    color: #7a6a5a;
    margin-top: 1px;
}

.gr-wall-stars {
    color: var(--gr-primary);
    font-size: 15px;
    letter-spacing: 1.5px;
    flex-shrink: 0;
}

.gr-wall-comment {
    font-size: 14px;
    color: #3a3228;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 12px;
}

.gr-wall-comment-full {
    color: #3a3228;
}

.gr-wall-toggle {
    background: none;
    border: none;
    color: var(--gr-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
}

.gr-wall-toggle:hover {
    text-decoration: underline;
}

.gr-wall-photo {
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.gr-wall-photo img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.gr-wall-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9a8878;
    background: #fff;
    border-radius: 14px;
}

.gr-wall-card.hidden-by-filter {
    display: none;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width:880px) {
    .gr-summary-grid {
        grid-template-columns: 1fr;
    }

    .gr-summary-right {
        min-height: auto;
    }

    .gr-wall-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width:600px) {

    form#gr-form,
    .gr-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .gr-title {
        font-size: 21px;
    }

    .gr-stars label {
        font-size: 30px;
    }

    .gr-stars input[type=radio] {
        width: 22px;
        height: 22px;
    }

    .gr-wall-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion:reduce) {

    .gr-btn,
    .gr-input,
    .gr-stars label,
    .gr-wall-card,
    .gr-detail-card {
        transition: none;
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════
   v1.1.0 — Language toggle + autofill-decoy hiding
   ═══════════════════════════════════════════════════════ */
.gr-card {
    position: relative;
}

.gr-lang-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e8d8c8;
    border-radius: 999px;
    padding: 3px;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.gr-lang-btn {
    border: none;
    background: transparent;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #9a8878;
    cursor: pointer;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.05em;
    transition: all 0.18s ease;
    min-width: 36px;
}

.gr-lang-btn:hover {
    color: var(--gr-primary, #c9956b);
}

.gr-lang-btn.active {
    background: var(--gr-primary, #c9956b);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hide autofill decoy inputs */
.gr-decoy-wrap {
    position: absolute !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════
   v1.2.0 — Summary widget: clickable filters + paginated
   reviews list + read-more + profile avatar
   ═══════════════════════════════════════════════════════ */

/* Left column — convert rating bars into clickable filter buttons */
.gr-filter-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gr-filter-bars .gr-bar-row {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-family: 'Lato', sans-serif;
    color: #5a4a3a;
    transition: all 0.15s ease;
    text-align: left;
}

.gr-filter-bars .gr-bar-row:hover:not(:disabled) {
    background: var(--gr-accent-bg, #fdf8f4);
    border-color: #f0e0d0;
}

.gr-filter-bars .gr-bar-row.active {
    background: var(--gr-accent-bg, #fdf8f4);
    border-color: var(--gr-primary, #c9956b);
    color: #2c1f14;
    font-weight: 600;
}

.gr-filter-bars .gr-bar-row:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gr-filter-bars .gr-bar-label {
    min-width: 32px;
    font-weight: 500;
}

.gr-filter-bars .gr-bar-track {
    flex: 1;
    height: 6px;
    background: #f0e0d0;
    border-radius: 3px;
    overflow: hidden;
}

.gr-filter-bars .gr-bar-fill {
    height: 100%;
    background: var(--gr-primary, #c9956b);
    border-radius: 3px;
}

.gr-filter-bars .gr-bar-count {
    min-width: 24px;
    text-align: right;
    font-size: 11px;
    color: #9a8878;
    font-weight: 500;
}

.gr-filter-bars .gr-bar-row-all {
    border-bottom: 1px solid #f0e0d0;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-radius: 8px 8px 0 0;
}

.gr-filter-bars .gr-bar-row-all .gr-bar-label {
    min-width: auto;
    flex: 1;
}

/* Right column — paginated review list with profile avatar */
.gr-rlist {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gr-rlist-item {
    padding: 14px 0;
    border-bottom: 1px solid #f5e8da;
}

.gr-rlist-item:last-child {
    border-bottom: none;
}

.gr-rlist-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.gr-rlist-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.gr-rlist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gr-rlist-meta {
    flex: 1;
    min-width: 0;
}

.gr-rlist-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.gr-rlist-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c1f14;
}

.gr-rlist-stars {
    color: var(--gr-primary, #c9956b);
    font-size: 13px;
    letter-spacing: 1.5px;
}

.gr-rlist-sub {
    font-size: 12px;
    color: #9a8878;
}

.gr-rlist-comment {
    font-size: 14px;
    color: #3a3228;
    line-height: 1.55;
    padding-left: 56px;
    /* Container is a stack: text, then button below */
    display: block;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.gr-rlist-comment-text {
    /* Force any long word/URL to wrap inside the column */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    max-width: 100%;
}

.gr-rlist-comment.expanded .gr-rlist-comment-text {
    /* Slight transition so the height change feels natural */
    animation: gr-fade-in 0.15s ease;
}

@keyframes gr-fade-in {
    from {
        opacity: 0.6
    }

    to {
        opacity: 1
    }
}

.gr-rlist-more {
    background: none;
    border: none;
    color: var(--gr-primary, #c9956b);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0 0;
    /* spacing below the text, no horizontal padding */
    margin: 0;
    display: block;
    /* OWN LINE — no longer inline next to text */
    font-family: 'Lato', sans-serif;
    text-align: left;
}

.gr-rlist-more:hover {
    text-decoration: underline;
}

.gr-rlist-noresults {
    text-align: center;
    padding: 40px 20px;
    color: #9a8878;
    font-size: 14px;
    font-style: italic;
}

/* Pagination */
.gr-rpagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f5e8da;
}

.gr-rpage-btn {
    border: 1px solid #e8d8c8;
    background: #fff;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    color: #5a4a3a;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: all 0.15s;
}

.gr-rpage-btn:hover:not(:disabled) {
    border-color: var(--gr-primary, #c9956b);
    color: var(--gr-primary, #c9956b);
}

.gr-rpage-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gr-rpage-info {
    font-size: 13px;
    color: #9a8878;
}

/* Mobile */
@media (max-width: 768px) {
    .gr-summary-grid {
        grid-template-columns: 1fr;
    }

    .gr-rlist-comment {
        padding-left: 0;
        margin-left: 56px;
    }
}

/* ═══════════════════════════════════════════════════════
   v1.3.0 — Half-star rendering + improved inactive stars
   ═══════════════════════════════════════════════════════ */

/* Half-star display (display only, not interactive) */
.gr-star-row {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
    vertical-align: middle;
}

.gr-star {
    font-size: inherit;
    line-height: 1;
    display: inline-block;
    position: relative;
}

.gr-star.full {
    color: var(--gr-primary, #c9956b);
}

.gr-star.empty {
    color: #d4c5b3;
    /* subtle text-shadow for depth */
    text-shadow: 0 0 1px rgba(201, 149, 107, 0.15);
}

.gr-star.half {
    color: #d4c5b3;
    display: inline-block;
    position: relative;
    width: 1em;
    height: 1em;
}

.gr-star.half .gr-star-bg {
    position: absolute;
    inset: 0;
    color: #d4c5b3;
}

.gr-star.half .gr-star-fg {
    position: absolute;
    inset: 0;
    color: var(--gr-primary, #c9956b);
    overflow: hidden;
    width: 50%;
}

/* Improve INACTIVE stars in the interactive rating selector */
.gr-stars label {
    color: #e8dccd;
    /* Outline effect using text-stroke-like approach */
    -webkit-text-stroke: 0.6px #c9956b;
    text-stroke: 0.6px #c9956b;
    transition: color .18s, transform .15s, -webkit-text-stroke-color .15s;
}

.gr-star-pair:hover label,
.gr-star-pair:hover~.gr-star-pair label,
.gr-star-pair.gr-checked label {
    color: var(--gr-primary, #c9956b);
    -webkit-text-stroke: 0.6px var(--gr-primary, #a07449);
}

/* Summary widget stars use the half-star helper */
.gr-summary-stars {
    font-size: 24px;
    letter-spacing: 2px;
    margin: 8px 0 4px;
    line-height: 1;
}

.gr-summary-stars .gr-star-row {
    gap: 2px;
}

.gr-rlist-stars {
    font-size: 14px;
    line-height: 1;
}

.gr-wall-avg-stars {
    font-size: 22px;
}