/* Starline Shop - Customer Reviews v12.6
 * Isolated modern styles for Screenshot Reviews and Custom Review Cards.
 */
.starline-customer-reviews-section {
    box-sizing: border-box;
    width: 100%;
    margin-top: var(--sl-review-mt-d);
    margin-bottom: var(--sl-review-mb-d);
    padding-top: var(--sl-review-pt-d);
    padding-bottom: var(--sl-review-pb-d);
    background: var(--sl-review-bg);
}

.starline-customer-reviews-section *,
.starline-customer-reviews-section *::before,
.starline-customer-reviews-section *::after {
    box-sizing: border-box;
}

.starline-customer-reviews-section > .starline-container {
    width: min(var(--sl-review-container), calc(100% - 32px)) !important;
    max-width: var(--sl-review-container) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.starline-review-heading {
    margin: 0 0 var(--sl-review-heading-gap);
}

.review-heading-left .starline-review-heading { text-align: left; }
.review-heading-center .starline-review-heading { text-align: center; }
.review-heading-right .starline-review-heading { text-align: right; }

.starline-review-title {
    max-width: 100%;
    margin: 0;
    color: var(--sl-review-title);
    font-size: var(--sl-review-title-d);
    font-weight: var(--sl-review-title-weight);
    line-height: 1.18;
    letter-spacing: -.025em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.starline-review-subtitle {
    max-width: 720px;
    margin: 9px auto 0;
    color: var(--sl-review-sub);
    font-size: var(--sl-review-sub-d);
    line-height: 1.65;
}
.review-heading-left .starline-review-subtitle { margin-left: 0; }
.review-heading-right .starline-review-subtitle { margin-right: 0; margin-left: auto; }

.starline-review-system {
    position: relative;
    width: 100%;
}

.starline-review-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    outline: none;
}

.review-layout-slider .starline-review-viewport,
.review-layout-carousel .starline-review-viewport {
    touch-action: pan-y pinch-zoom;
}

.starline-review-track {
    min-width: 0;
}

.review-layout-grid .starline-review-track {
    display: grid;
    grid-template-columns: repeat(var(--sl-review-cols-d), minmax(0, 1fr));
    gap: var(--sl-review-gap-d);
}

.review-layout-slider .starline-review-track,
.review-layout-carousel .starline-review-track {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    gap: var(--sl-review-gap-d);
    width: max-content;
    will-change: transform;
    transition-property: transform;
    transition-timing-function: cubic-bezier(.22,.61,.36,1);
}

.starline-review-card {
    min-width: 0;
    border: var(--sl-review-border-w) var(--sl-review-border-style) var(--sl-review-border);
    border-radius: var(--sl-review-rtl) var(--sl-review-rtr) var(--sl-review-rbr) var(--sl-review-rbl);
    background: var(--sl-review-card-bg);
    overflow: hidden;
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.review-layout-slider .starline-review-card,
.review-layout-carousel .starline-review-card {
    flex: 0 0 auto;
}

.starline-review-custom-card {
    min-height: var(--sl-review-card-h-d);
}

.starline-review-card-inner {
    width: 100%;
    height: 100%;
}

.starline-review-custom-card .starline-review-card-inner {
    display: flex;
    min-height: var(--sl-review-card-h-d);
    flex-direction: column;
    padding: var(--sl-review-card-pad-d);
}

.has-review-card-shadow .starline-review-card {
    box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
}

.review-hover-border .starline-review-card:hover,
.review-hover-border .starline-review-card:focus-within,
.review-hover-border-shadow .starline-review-card:hover,
.review-hover-border-shadow .starline-review-card:focus-within,
.review-hover-lift .starline-review-card:hover,
.review-hover-lift .starline-review-card:focus-within {
    border-color: var(--sl-review-hover-border);
    background: var(--sl-review-hover-bg);
}

.review-hover-shadow .starline-review-card:hover,
.review-hover-shadow .starline-review-card:focus-within,
.review-hover-border-shadow .starline-review-card:hover,
.review-hover-border-shadow .starline-review-card:focus-within,
.review-hover-lift .starline-review-card:hover,
.review-hover-lift .starline-review-card:focus-within {
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.review-hover-lift .starline-review-card:hover,
.review-hover-lift .starline-review-card:focus-within {
    transform: translateY(-4px);
}

/* Custom testimonial card. */
.starline-review-person-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.starline-review-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.starline-review-avatar {
    display: inline-flex;
    width: var(--sl-review-avatar-d);
    height: var(--sl-review-avatar-d);
    flex: 0 0 var(--sl-review-avatar-d);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: var(--sl-review-avatar-border-w) solid var(--sl-review-avatar-border);
    border-radius: var(--sl-review-avatar-radius);
    background: #f1f5f9;
    color: var(--sl-review-name);
    font-size: calc(var(--sl-review-avatar-d) * .4);
    font-weight: 800;
}

.starline-review-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.starline-review-person-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.starline-review-name {
    overflow: hidden;
    color: var(--sl-review-name);
    font-size: var(--sl-review-name-d);
    font-weight: var(--sl-review-name-weight);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.starline-review-meta {
    overflow: hidden;
    color: var(--sl-review-meta);
    font-size: var(--sl-review-meta-size);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.starline-review-card-icons {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 8px;
}

.starline-review-source-icon {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: var(--sl-review-source);
    text-decoration: none;
}

.starline-review-source-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.starline-review-source-icon.source-facebook svg,
.starline-review-source-icon.source-google svg { fill: currentColor; stroke: none; }

.starline-review-quote {
    display: inline-flex;
    height: 28px;
    align-items: flex-start;
    color: var(--sl-review-quote);
    font-family: Georgia, serif;
    font-size: var(--sl-review-quote-size);
    font-weight: 800;
    line-height: .78;
}

.starline-review-text {
    margin: 20px 0 18px;
    color: var(--sl-review-text);
    font-size: var(--sl-review-text-d);
    line-height: var(--sl-review-text-lh);
}

.starline-review-rating {
    display: flex;
    margin-top: auto;
    justify-content: flex-end;
}

.starline-review-stars {
    display: inline-flex;
    gap: 2px;
    font-size: var(--sl-review-star-d);
    line-height: 1;
    letter-spacing: .01em;
}
.starline-review-star { color: var(--sl-review-star-empty); }
.starline-review-star.is-full { color: var(--sl-review-star); }
.starline-review-star.is-half {
    color: transparent;
    background: linear-gradient(90deg, var(--sl-review-star) 50%, var(--sl-review-star-empty) 50%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Social-media screenshots. */
.starline-review-screenshot-card {
    background: var(--sl-review-card-bg);
}

.starline-review-screenshot-card .starline-review-card-inner {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    padding: var(--sl-review-shot-pad);
}

.starline-review-screenshot-open {
    display: block;
    width: 100%;
    height: var(--sl-review-shot-h-d);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--sl-review-shot-radius);
    background: var(--sl-review-shot-bg);
    cursor: zoom-in;
}

div.starline-review-screenshot-open { cursor: default; }

.starline-review-screenshot-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--sl-review-shot-fit);
    object-position: center;
    transition: transform .28s ease;
}

.starline-review-screenshot-card:hover .starline-review-screenshot-image {
    transform: scale(1.015);
}

.starline-review-screenshot-meta {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 4px 0;
    color: var(--sl-review-meta);
    font-size: 11px;
    line-height: 1.3;
}
.starline-review-screenshot-meta a {
    color: var(--sl-review-source);
    font-weight: 700;
    text-decoration: none;
}
.starline-review-screenshot-meta a:hover,
.starline-review-screenshot-meta a:focus-visible { text-decoration: underline; }

/* Arrows and dots. */
.review-arrows-outside .starline-review-system {
    padding-right: calc(var(--sl-review-arrow-size) + 14px);
    padding-left: calc(var(--sl-review-arrow-size) + 14px);
}
.review-arrows-inside .starline-review-system {
    padding-right: 0;
    padding-left: 0;
}

.starline-review-arrow {
    position: absolute;
    z-index: 8;
    top: 50%;
    display: inline-flex;
    width: var(--sl-review-arrow-size);
    height: var(--sl-review-arrow-size);
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: var(--sl-review-arrow-border-w) solid var(--sl-review-arrow-border);
    border-radius: var(--sl-review-arrow-radius);
    background: var(--sl-review-arrow-bg);
    color: var(--sl-review-arrow);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.starline-review-arrow:hover,
.starline-review-arrow:focus-visible {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
    outline: none;
}
.starline-review-arrow[disabled] { opacity: .35; cursor: default; }
.review-arrows-outside .starline-review-prev { left: 0; }
.review-arrows-outside .starline-review-next { right: 0; }
.review-arrows-inside .starline-review-prev { left: 8px; }
.review-arrows-inside .starline-review-next { right: 8px; }

.starline-review-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
}
.starline-review-dot {
    width: 7px;
    height: 7px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--sl-review-dot);
    cursor: pointer;
    transition: width .18s ease, background-color .18s ease;
}
.starline-review-dot.is-active {
    width: 22px;
    background: var(--sl-review-dot-active);
}

.starline-review-empty {
    padding: 28px;
    border: 1px dashed var(--sl-review-border);
    border-radius: 10px;
    background: var(--sl-review-card-bg);
    color: var(--sl-review-sub);
    text-align: center;
}

/* Screenshot lightbox. */
.starline-review-lightbox[hidden] { display: none !important; }
.starline-review-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(3, 7, 18, .86);
    backdrop-filter: blur(6px);
}
.starline-review-lightbox img {
    display: block;
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .34);
    object-fit: contain;
}
.starline-review-lightbox-close {
    position: fixed;
    z-index: 2;
    top: 18px;
    right: 20px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
html.starline-review-lightbox-open { overflow: hidden; }

@media (max-width: 991px) {
    .starline-customer-reviews-section {
        margin-top: var(--sl-review-mt-t);
        margin-bottom: var(--sl-review-mb-t);
        padding-top: var(--sl-review-pt-t);
        padding-bottom: var(--sl-review-pb-t);
    }
    .starline-review-title { font-size: var(--sl-review-title-t); }
    .starline-review-subtitle { font-size: var(--sl-review-sub-t); }
    .review-layout-grid .starline-review-track { grid-template-columns: repeat(var(--sl-review-cols-t), minmax(0, 1fr)); gap: var(--sl-review-gap-t); }
    .review-layout-slider .starline-review-track,
    .review-layout-carousel .starline-review-track { gap: var(--sl-review-gap-t); }
    .starline-review-custom-card,
    .starline-review-custom-card .starline-review-card-inner { min-height: var(--sl-review-card-h-t); }
    .starline-review-custom-card .starline-review-card-inner { padding: var(--sl-review-card-pad-t); }
    .starline-review-avatar { width: var(--sl-review-avatar-t); height: var(--sl-review-avatar-t); flex-basis: var(--sl-review-avatar-t); font-size: calc(var(--sl-review-avatar-t) * .4); }
    .starline-review-name { font-size: var(--sl-review-name-t); }
    .starline-review-text { font-size: var(--sl-review-text-t); }
    .starline-review-stars { font-size: var(--sl-review-star-t); }
    .starline-review-screenshot-open { height: var(--sl-review-shot-h-t); }
}

@media (max-width: 767px) {
    .starline-customer-reviews-section {
        margin-top: var(--sl-review-mt-m);
        margin-bottom: var(--sl-review-mb-m);
        padding-top: var(--sl-review-pt-m);
        padding-bottom: var(--sl-review-pb-m);
    }
    .starline-customer-reviews-section > .starline-container {
        width: min(var(--sl-review-container), calc(100% - 20px)) !important;
    }
    .starline-review-heading { margin-bottom: max(18px, calc(var(--sl-review-heading-gap) * .75)); }
    .starline-review-title { font-size: var(--sl-review-title-m); }
    .starline-review-subtitle { margin-top: 7px; font-size: var(--sl-review-sub-m); }
    .review-layout-grid .starline-review-track { grid-template-columns: repeat(var(--sl-review-cols-m), minmax(0, 1fr)); gap: var(--sl-review-gap-m); }
    .review-layout-slider .starline-review-track,
    .review-layout-carousel .starline-review-track { gap: var(--sl-review-gap-m); }
    .starline-review-custom-card,
    .starline-review-custom-card .starline-review-card-inner { min-height: var(--sl-review-card-h-m); }
    .starline-review-custom-card .starline-review-card-inner { padding: var(--sl-review-card-pad-m); }
    .starline-review-avatar { width: var(--sl-review-avatar-m); height: var(--sl-review-avatar-m); flex-basis: var(--sl-review-avatar-m); font-size: calc(var(--sl-review-avatar-m) * .4); }
    .starline-review-name { font-size: var(--sl-review-name-m); }
    .starline-review-text { margin-top: 16px; margin-bottom: 14px; font-size: var(--sl-review-text-m); }
    .starline-review-stars { font-size: var(--sl-review-star-m); }
    .starline-review-screenshot-open { height: var(--sl-review-shot-h-m); }
    .review-arrows-outside .starline-review-system {
        padding-right: calc(var(--sl-review-arrow-size) + 7px);
        padding-left: calc(var(--sl-review-arrow-size) + 7px);
    }
    .starline-review-arrow { font-size: 17px; }
    .starline-review-screenshot-meta { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .starline-review-track,
    .starline-review-card,
    .starline-review-screenshot-image,
    .starline-review-arrow,
    .starline-review-dot {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
    .review-hover-lift .starline-review-card:hover,
    .review-hover-lift .starline-review-card:focus-within { transform: none; }
}

/* =========================================================
   v12.1 Single-row / exact-fit reliability overrides
   - Slider and Carousel are always one horizontal row.
   - Stronger selectors beat legacy homepage review rules.
   - Grid remains a normal wrapping grid by design.
========================================================= */
.starline-customer-reviews-section.review-layout-slider .starline-review-viewport,
.starline-customer-reviews-section.review-layout-carousel .starline-review-viewport {
    overflow: hidden !important;
    width: 100% !important;
}

.starline-customer-reviews-section.review-layout-slider .starline-review-track,
.starline-customer-reviews-section.review-layout-carousel .starline-review-track,
.starline-customer-reviews-section.review-mode-screenshots.review-layout-slider .starline-review-track,
.starline-customer-reviews-section.review-mode-screenshots.review-layout-carousel .starline-review-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    overflow: visible !important;
    gap: var(--sl-review-gap-d) !important;
}

.starline-customer-reviews-section.review-layout-slider .starline-review-card,
.starline-customer-reviews-section.review-layout-carousel .starline-review-card {
    display: block !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

.starline-customer-reviews-section.review-mode-screenshots.review-layout-slider .starline-review-screenshot-card,
.starline-customer-reviews-section.review-mode-screenshots.review-layout-carousel .starline-review-screenshot-card {
    align-self: stretch;
}

@media (max-width: 991px) {
    .starline-customer-reviews-section.review-layout-slider .starline-review-track,
    .starline-customer-reviews-section.review-layout-carousel .starline-review-track {
        gap: var(--sl-review-gap-t) !important;
    }
}

@media (max-width: 767px) {
    .starline-customer-reviews-section.review-layout-slider .starline-review-track,
    .starline-customer-reviews-section.review-layout-carousel .starline-review-track {
        gap: var(--sl-review-gap-m) !important;
    }
}

/* =========================================================
   v12.3 Premium Custom Review Card Layout Polish
   - Additive CSS only: no PHP/JS/Customizer behavior changed.
   - Keeps Grid / Slider / Carousel / autoplay / swipe / dots.
   - Improves avatar, identity, source icon, quote, text, rating,
     card spacing, arrows and responsive balance.
========================================================= */

.starline-customer-reviews-section.review-mode-custom .starline-review-card {
    isolation: isolate;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-custom-card .starline-review-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--sl-review-card-pad-d);
}

/* Header: avatar/name on the left, source + quote in a clean right cluster. */
.starline-customer-reviews-section.review-mode-custom .starline-review-person-row {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-person {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-avatar {
    position: relative;
    width: var(--sl-review-avatar-d);
    height: var(--sl-review-avatar-d);
    flex: 0 0 var(--sl-review-avatar-d);
    border-radius: var(--sl-review-avatar-radius);
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, .10);
}

.starline-customer-reviews-section.review-mode-custom .starline-review-person-copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-name {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.28;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-card-icons {
    display: inline-flex;
    min-width: max-content;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-source-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--sl-review-source);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.starline-customer-reviews-section.review-mode-custom a.starline-review-source-icon:hover,
.starline-customer-reviews-section.review-mode-custom a.starline-review-source-icon:focus-visible {
    transform: translateY(-1px);
    border-color: currentColor;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .10);
    outline: none;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-source-icon svg {
    width: 18px;
    height: 18px;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-quote {
    display: inline-flex;
    width: 24px;
    height: 30px;
    flex: 0 0 24px;
    align-items: flex-start;
    justify-content: center;
    color: var(--sl-review-quote);
    font-size: min(var(--sl-review-quote-size), 34px);
    line-height: .78;
    opacity: .78;
    transform: translateY(2px);
}

/* Review body: clear breathing room without the current top-heavy look. */
.starline-customer-reviews-section.review-mode-custom .starline-review-text {
    flex: 1 1 auto;
    margin: 18px 0 0;
    padding: 0;
    color: var(--sl-review-text);
    line-height: var(--sl-review-text-lh);
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

/* Rating stays consistently aligned at the bottom of equal-height cards. */
.starline-customer-reviews-section.review-mode-custom .starline-review-rating {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--sl-review-border) 30%, transparent);
}

@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
    .starline-customer-reviews-section.review-mode-custom .starline-review-rating {
        border-top-color: rgba(148, 163, 184, .18);
    }
}

.starline-customer-reviews-section.review-mode-custom .starline-review-stars {
    align-items: center;
    gap: 2px;
}

/* Softer premium depth while still respecting Customizer border style/color. */
.starline-customer-reviews-section.review-mode-custom.has-review-card-shadow .starline-review-card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, .065);
}

.starline-customer-reviews-section.review-mode-custom.review-hover-border-shadow .starline-review-card:hover,
.starline-customer-reviews-section.review-mode-custom.review-hover-border-shadow .starline-review-card:focus-within,
.starline-customer-reviews-section.review-mode-custom.review-hover-lift .starline-review-card:hover,
.starline-customer-reviews-section.review-mode-custom.review-hover-lift .starline-review-card:focus-within {
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

/* Keep navigation clear of review content in both arrow positions. */
.starline-customer-reviews-section.review-arrows-outside .starline-review-system {
    padding-inline: calc(var(--sl-review-arrow-size) + 16px);
}

.starline-customer-reviews-section.review-arrows-outside .starline-review-prev { left: 2px; }
.starline-customer-reviews-section.review-arrows-outside .starline-review-next { right: 2px; }

.starline-customer-reviews-section.review-arrows-inside .starline-review-system {
    padding-inline: calc((var(--sl-review-arrow-size) / 2) + 8px);
}

.starline-customer-reviews-section.review-arrows-inside .starline-review-prev { left: 4px; }
.starline-customer-reviews-section.review-arrows-inside .starline-review-next { right: 4px; }

.starline-customer-reviews-section .starline-review-arrow {
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
    backdrop-filter: blur(6px);
}

.starline-customer-reviews-section .starline-review-arrow:hover,
.starline-customer-reviews-section .starline-review-arrow:focus-visible {
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

/* Dots: cleaner active state and slightly tighter vertical rhythm. */
.starline-customer-reviews-section .starline-review-dots {
    gap: 6px;
    margin-top: 16px;
}

.starline-customer-reviews-section .starline-review-dot {
    width: 7px;
    height: 7px;
}

.starline-customer-reviews-section .starline-review-dot.is-active {
    width: 24px;
}

@media (max-width: 991px) {
    .starline-customer-reviews-section.review-mode-custom .starline-review-custom-card .starline-review-card-inner {
        padding: var(--sl-review-card-pad-t);
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-avatar {
        width: var(--sl-review-avatar-t);
        height: var(--sl-review-avatar-t);
        flex-basis: var(--sl-review-avatar-t);
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-person-row { gap: 12px; }
    .starline-customer-reviews-section.review-mode-custom .starline-review-person { gap: 10px; }
    .starline-customer-reviews-section.review-mode-custom .starline-review-text { margin-top: 16px; }
}

@media (max-width: 767px) {
    .starline-customer-reviews-section.review-mode-custom .starline-review-custom-card .starline-review-card-inner {
        padding: var(--sl-review-card-pad-m);
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-avatar {
        width: var(--sl-review-avatar-m);
        height: var(--sl-review-avatar-m);
        flex-basis: var(--sl-review-avatar-m);
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-person-row {
        align-items: flex-start;
        gap: 10px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-person { gap: 9px; }

    .starline-customer-reviews-section.review-mode-custom .starline-review-source-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        padding: 5px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-source-icon svg {
        width: 16px;
        height: 16px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-quote {
        width: 20px;
        height: 27px;
        flex-basis: 20px;
        font-size: min(var(--sl-review-quote-size), 30px);
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-text {
        margin-top: 15px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-rating {
        margin-top: 14px;
        padding-top: 10px;
    }

    .starline-customer-reviews-section.review-arrows-outside .starline-review-system,
    .starline-customer-reviews-section.review-arrows-inside .starline-review-system {
        padding-inline: calc((var(--sl-review-arrow-size) / 2) + 6px);
    }
}

@media (max-width: 479px) {
    .starline-customer-reviews-section.review-mode-custom .starline-review-card-icons {
        gap: 5px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-person-copy {
        gap: 2px;
    }
}

/* =========================================================
   v12.6 Customer Review Card Structure
   Header: image + customer name + location.
   Body: opening quote + review text + closing quote.
   Footer: divider + source icon + stars pinned to the bottom-right.
   Existing Grid / Slider / Carousel / autoplay / loop / swipe /
   lightbox behavior is intentionally untouched.
========================================================= */
.starline-customer-reviews-section.review-mode-custom .starline-review-card-inner {
    display: flex;
    flex-direction: column;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-person-row {
    align-items: flex-start;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-person {
    align-items: center;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-person-copy {
    align-self: center;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-person-row {
    justify-content: flex-start;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-body {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    margin-top: 18px;
    padding: 4px 4px 0;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-body .starline-review-quote {
    display: block;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    color: var(--sl-review-quote);
    font-family: Georgia, "Times New Roman", serif;
    font-size: min(var(--sl-review-quote-size), 34px);
    font-weight: 800;
    line-height: .72;
    opacity: .72;
    transform: none;
    pointer-events: none;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-quote-open {
    align-self: flex-start;
    margin: 0 0 8px;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-quote-close {
    align-self: flex-end;
    margin: 9px 0 0;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-body .starline-review-text {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 0 5px;
    overflow: visible;
    color: var(--sl-review-text);
    line-height: var(--sl-review-text-lh);
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    text-wrap: pretty;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-rating {
    display: flex;
    flex: 0 0 auto;
    min-height: 28px;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, .22);
}

.starline-customer-reviews-section.review-mode-custom .starline-review-rating .starline-review-source-icon-bottom {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    margin: 0;
    padding: 4px;
}

.starline-customer-reviews-section.review-mode-custom .starline-review-rating .starline-review-source-icon-bottom svg {
    width: 16px;
    height: 16px;
}

@supports (color: color-mix(in srgb, #000 50%, transparent)) {
    .starline-customer-reviews-section.review-mode-custom .starline-review-rating {
        border-top-color: color-mix(in srgb, var(--sl-review-border) 34%, transparent);
    }
}

@media (max-width: 991px) {
    .starline-customer-reviews-section.review-mode-custom .starline-review-body {
        margin-top: 16px;
        padding-inline: 3px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-body .starline-review-text {
        padding-inline: 4px;
    }
}

@media (max-width: 767px) {
    .starline-customer-reviews-section.review-mode-custom .starline-review-body {
        margin-top: 14px;
        padding-inline: 2px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-body .starline-review-quote {
        font-size: min(var(--sl-review-quote-size), 29px);
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-quote-open {
        margin-bottom: 7px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-quote-close {
        margin-top: 8px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-body .starline-review-text {
        padding-inline: 3px;
    }
    .starline-customer-reviews-section.review-mode-custom .starline-review-rating {
        gap: 8px;
        margin-top: 12px;
        padding-top: 10px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-rating .starline-review-source-icon-bottom {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        padding: 4px;
    }

    .starline-customer-reviews-section.review-mode-custom .starline-review-rating .starline-review-source-icon-bottom svg {
        width: 15px;
        height: 15px;
    }
}
