/* =========================================================
   EFLC PRODUCT REVIEWS
   ========================================================= */

#reviewsDefault.eflc-reviews-page {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #17243a;
}

#reviewsDefault *,
#reviewsDefault *::before,
#reviewsDefault *::after {
    box-sizing: border-box;
}

.eflc-reviews-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 20px 0 34px;
}

.eflc-reviews-kicker {
    color: #667386;
    font-size: 13px;
    font-weight: 700;
}

.eflc-review-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 6px;
}

a.eflc-review-back {
    color: #1764a5;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

a.eflc-review-back:hover {
    text-decoration: underline;
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.eflc-reviews-heading {
    margin: 0 0 15px;
}

.eflc-reviews-heading h1 {
    margin: 0;
    color: #17243a;
    font-size: clamp(25px, 2.6vw, 34px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.025em;
}

.eflc-review-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 6px;
    color: #697587;
    font-size: 13px;
    font-weight: 650;
}

.eflc-review-meta span {
    display: inline-flex;
    align-items: center;
}

.eflc-review-meta span + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 13px;
    margin: 0 10px;
    background: #b8c0ca;
}


/* =========================================================
   TOP GRID
   ========================================================= */

.eflc-review-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 18px;
}


/* =========================================================
   PRODUCT HERO
   ========================================================= */

.eflc-review-product-card {
    display: grid;
    grid-template-columns: minmax(280px, 47%) minmax(0, 1fr);
    gap: 27px;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 22px;

    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 9px;
    box-shadow: none;
}

.eflc-review-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 270px;
    padding: 5px;
}

.eflc-review-product-image img {
    display: block;
    max-width: 100%;
    max-height: 270px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.eflc-review-product-info {
    min-width: 0;
}

.eflc-review-hero-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 4px;
}

.eflc-review-hero-rating strong {
    color: #17243a;
    font-size: 18px;
    line-height: 1.2;
}

.eflc-review-hero-count {
    margin-bottom: 17px;
    color: #647185;
    font-size: 13px;
}

.eflc-review-stars {
    display: inline-flex;
    gap: 1px;
    color: #d7dce2;
    font-size: 21px;
    line-height: 1;
    white-space: nowrap;
}

.eflc-review-stars span.is-filled {
    color: #f58b00;
}

.eflc-review-product-copy {
    max-width: 430px;
    margin: 0 0 16px;
    color: #44546a;
    font-size: 14px;
    line-height: 1.48;
}

.eflc-review-history-copy {
    margin: 8px 0 0;
    color: #667386;
    font-size: 13px;
    line-height: 1.5;
}

.eflc-review-unavailable {
    display: inline-block;
    padding: 7px 10px;
    color: #9b2929;
    background: #fff0f0;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 750;
}


/* =========================================================
   BUTTON
   ========================================================= */

a.eflc-review-primary-btn {
    display: inline-flex;
    min-height: 44px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;

    background: #39a935;
    border: 1px solid #31952e;
    border-radius: 5px;

    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

a.eflc-review-primary-btn:hover {
    background: #31982e;
    color: #fff !important;
    box-shadow: 0 4px 11px rgba(40, 125, 42, .16);
    transform: translateY(-1px);
}

.eflc-review-benefits {
    display: grid;
    gap: 5px;
    margin-top: 15px;
    color: #34455a;
    font-size: 12.5px;
    line-height: 1.35;
}

.eflc-review-benefits b {
    display: inline-block;
    width: 19px;
    color: #15943a;
    font-size: 16px;
}


/* =========================================================
   RATING BREAKDOWN CARD
   ========================================================= */

.eflc-review-rating-card {
    min-width: 0;
    padding: 18px;

    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 9px;
}

.eflc-review-rating-card h2 {
    margin: 0 0 15px;
    color: #17243a;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.eflc-review-rating-scoreline {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.eflc-review-rating-scoreline > strong {
    color: #17243a;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.04em;
}

.eflc-review-rating-scoreline > div {
    display: grid;
    gap: 5px;
}

.eflc-review-rating-scoreline .eflc-review-stars {
    font-size: 19px;
}

.eflc-review-rating-scoreline > div > span:last-child {
    color: #697587;
    font-size: 12px;
}

.eflc-review-breakdown {
    display: grid;
    gap: 7px;
}

.eflc-review-breakdown-row {
    display: grid;
    grid-template-columns: 31px minmax(60px, 1fr) 20px;
    gap: 8px;
    align-items: center;
}

.eflc-review-breakdown-label,
.eflc-review-breakdown-count {
    color: #35465b;
    font-size: 12px;
    font-weight: 650;
}

.eflc-review-breakdown-count {
    text-align: right;
}

.eflc-review-breakdown-track {
    height: 9px;
    overflow: hidden;
    background: #e4e9ee;
    border-radius: 10px;
}

.eflc-review-breakdown-track span {
    display: block;
    height: 100%;
    background: #1784c3;
    border-radius: inherit;
}

.eflc-review-teaser {
    margin-top: 19px;
    padding-top: 16px;
    border-top: 1px solid #e3e7eb;

    color: #405065;
    font-size: 12.5px;
    line-height: 1.45;
    font-style: italic;
}


/* =========================================================
   MAIN CONTENT + RIGHT RAIL
   ========================================================= */

.eflc-review-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: start;
}

.eflc-review-list-section {
    min-width: 0;
    margin: 0;
}

.eflc-review-list-heading {
    margin: 0 0 10px;
}

.eflc-review-list-heading h2 {
    margin: 0;
    color: #17243a;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
}


/* =========================================================
   REVIEW CARDS
   ========================================================= */

.eflc-review-list {
    display: grid;
    gap: 10px;
}

.eflc-review-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 18px;

    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 7px;
}

.eflc-review-avatar {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;

    background: #e4e9ee;
    border-radius: 50%;

    color: #334458;
    font-size: 12px;
    font-weight: 800;
}

.eflc-review-card-body {
    min-width: 0;
}

.eflc-review-card-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin: 0 0 4px;
}

.eflc-review-card-top .eflc-review-stars {
    font-size: 17px;
}

.eflc-review-date {
    flex: 0 0 auto;
    color: #748092;
    font-size: 11.5px;
}

.eflc-review-author-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.eflc-review-author-line strong {
    color: #26364b;
    font-size: 12.5px;
}

.eflc-review-verified {
    color: #17943c;
    font-size: 11.5px;
    font-weight: 750;
}

.eflc-review-text {
    color: #44546a;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.eflc-review-empty {
    padding: 25px;
    color: #667386;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 7px;
    text-align: center;
}


/* =========================================================
   RIGHT RAIL
   ========================================================= */

.eflc-review-side-rail {
    display: grid;
    gap: 12px;
}

.eflc-review-trust-card,
.eflc-review-mini-product {
    padding: 18px;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
}

.eflc-review-trust-card h2 {
    margin: 0 0 15px;
    color: #17243a;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.eflc-review-trust-item {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin-bottom: 13px;
}

.eflc-review-trust-item:last-child {
    margin-bottom: 0;
}

.eflc-trust-icon {
    display: flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;

    border: 2px solid #25374c;
    border-radius: 50%;

    color: #25374c;
    font-size: 12px;
    font-weight: 900;
}

.eflc-review-trust-item strong {
    display: block;
    margin-bottom: 2px;
    color: #27374c;
    font-size: 12.5px;
    line-height: 1.25;
}

.eflc-review-trust-item div span {
    display: block;
    color: #788394;
    font-size: 11px;
    line-height: 1.3;
}


/* ---------- Mini product ---------- */

.eflc-review-mini-top {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    margin-bottom: 13px;
}

.eflc-review-mini-image {
    display: flex;
    min-height: 75px;
    align-items: center;
    justify-content: center;
}

.eflc-review-mini-image img {
    display: block;
    max-width: 100%;
    max-height: 78px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.eflc-review-mini-info {
    min-width: 0;
}

.eflc-review-mini-info strong {
    display: block;
    color: #26364b;
    font-size: 11.5px;
    line-height: 1.3;
}

.eflc-review-mini-price {
    margin-top: 8px;
    color: #d31c18;
    font-size: 21px;
    line-height: 1;
    font-weight: 850;
}

.eflc-review-mini-product .eflc-review-primary-btn {
    width: 100%;
}


/* =========================================================
   CURRENT OPTIONS
   ========================================================= */

.eflc-review-current-options {
    margin-bottom: 18px;
    padding: 20px;

    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
}

.eflc-review-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-end;
    margin-bottom: 15px;
}

.eflc-review-section-heading h2 {
    margin: 2px 0 0;
    color: #17243a;
    font-size: 20px;
}

.eflc-review-section-heading p {
    max-width: 450px;
    margin: 0;
    color: #697587;
    font-size: 12px;
    line-height: 1.45;
}

.eflc-review-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

a.eflc-review-option-card {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;

    border: 1px solid #dfe5eb;
    border-radius: 7px;

    color: inherit !important;
    text-decoration: none !important;
}

a.eflc-review-option-card:hover {
    border-color: #b8c5d1;
    box-shadow: 0 4px 12px rgba(20, 38, 65, .07);
}

.eflc-review-option-image {
    display: flex;
    height: 85px;
    align-items: center;
    justify-content: center;
}

.eflc-review-option-image img {
    max-width: 100%;
    max-height: 85px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.eflc-review-option-name {
    color: #17243a;
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 750;
}

.eflc-review-option-model {
    margin-top: 4px;
    color: #7a8595;
    font-size: 10.5px;
}

.eflc-review-option-cta {
    display: block;
    margin-top: 8px;
    color: #1764a5;
    font-size: 11.5px;
    font-weight: 750;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.eflc-review-pagination {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    margin-top: 13px;
    color: #697587;
    font-size: 12px;
}

.eflc-review-pagination-links a {
    display: inline-block;
    margin-left: 3px;
    padding: 4px 7px;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 4px;
    color: #1764a5;
    text-decoration: none;
}


/* =========================================================
   BOTTOM CTA
   ========================================================= */

.eflc-review-bottom-cta {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;

    margin-top: 15px;
    padding: 12px 18px;

    background: #edf5fb;
    border: 1px solid #d6e5f0;
    border-radius: 7px;
}

.eflc-review-bottom-image {
    display: flex;
    height: 65px;
    align-items: center;
    justify-content: center;
}

.eflc-review-bottom-image img {
    display: block;
    max-width: 100%;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.eflc-review-bottom-copy strong {
    display: block;
    margin-bottom: 3px;
    color: #17243a;
    font-size: 14px;
}

.eflc-review-bottom-copy span {
    color: #637083;
    font-size: 11.5px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .eflc-review-top-grid,
    .eflc-review-content-grid {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

    .eflc-review-product-card {
        grid-template-columns: 42% minmax(0, 1fr);
        gap: 20px;
    }

    .eflc-review-product-image {
        min-height: 220px;
    }

    .eflc-review-product-image img {
        max-height: 220px;
    }

    .eflc-review-option-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .eflc-reviews-shell {
        width: calc(100% - 22px);
        padding: 15px 0 28px;
    }

    .eflc-review-topline {
        align-items: flex-start;
    }

    .eflc-reviews-heading h1 {
        font-size: 24px;
    }

    .eflc-review-meta {
        line-height: 1.5;
    }

    .eflc-review-top-grid,
    .eflc-review-content-grid {
        display: block;
    }

    .eflc-review-product-card {
        display: block;
        padding: 17px;
    }

    .eflc-review-product-image {
        min-height: 0;
        height: 220px;
        margin-bottom: 12px;
    }

    .eflc-review-product-image img {
        max-height: 215px;
    }

    .eflc-review-rating-card {
        margin-top: 11px;
    }

    .eflc-review-list-section {
        margin-top: 17px;
    }

    .eflc-review-side-rail {
        margin-top: 14px;
    }

    .eflc-review-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }

    .eflc-review-avatar {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }

    .eflc-review-card-top {
        display: block;
    }

    .eflc-review-date {
        display: block;
        margin-top: 5px;
    }

    .eflc-review-author-line {
        display: block;
    }

    .eflc-review-verified {
        display: block;
        margin-top: 3px;
    }

    .eflc-review-section-heading {
        display: block;
    }

    .eflc-review-section-heading p {
        margin-top: 6px;
    }

    .eflc-review-option-grid {
        grid-template-columns: 1fr;
    }

    .eflc-review-bottom-cta {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .eflc-review-bottom-cta > a {
        grid-column: 1 / -1;
        width: 100%;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 440px) {

    .eflc-review-topline {
        display: block;
    }

    .eflc-review-back {
        display: inline-block;
        margin-top: 5px;
    }

    .eflc-review-meta span {
        display: block;
        width: 100%;
    }

    .eflc-review-meta span + span::before {
        display: none;
    }

    .eflc-review-primary-btn {
        width: 100%;
    }

    .eflc-review-rating-scoreline > strong {
        font-size: 36px;
    }

    .eflc-review-bottom-cta {
        display: block;
    }

    .eflc-review-bottom-image {
        display: none;
    }

    .eflc-review-bottom-cta > a {
        margin-top: 12px;
    }
}


/* =========================================================
   REVIEW HERO GALLERY - COMPACT 4-UP THUMBNAILS
   ========================================================= */

.eflc-review-product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.eflc-review-product-gallery .eflc-review-product-image {
    width: 100%;
    height: 230px;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 8px 4px;
}

.eflc-review-product-gallery .eflc-review-product-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 215px;
    object-fit: contain;
}

.eflc-review-thumbs {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 4px 0 8px;
    padding: 0 5px;
    overflow: hidden;
}

button.eflc-review-thumb {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 3px;
    margin: 0;
    background: #fff;
    border: 1px solid #cbd3dc;
    border-radius: 4px;
}

button.eflc-review-thumb.is-active {
    border: 2px solid #17314f;
    padding: 2px;
}

button.eflc-review-thumb img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 720px) {

    .eflc-review-product-gallery .eflc-review-product-image {
        height: 205px;
        min-height: 205px;
    }

    .eflc-review-product-gallery .eflc-review-product-image img {
        max-height: 195px;
    }

    .eflc-review-thumbs {
        justify-content: center;
        overflow: visible;
    }

    button.eflc-review-thumb {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}
