/* =========================================================
   EFLC Customer Reviews Hub
   /reviews/
   ========================================================= */

#reviewsDefault.eflc-reviews-hub {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 22px 55px;
    box-sizing: border-box;
    color: #172b4d;
}

/* Header */

.eflc-hub-header {
    margin: 8px 0 26px;
    padding: 0 2px;
}

.eflc-hub-kicker {
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #64748b;
}

.eflc-hub-header h1 {
    margin: 0;
    padding: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #102a43;
}

.eflc-hub-header p {
    max-width: 680px;
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
}

/* Pagination */

.eflc-hub-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 18px 0 24px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}

.eflc-hub-pagination a {
    color: #0b5f8a;
    font-weight: 700;
    text-decoration: none;
}

.eflc-hub-pagination a:hover {
    text-decoration: underline;
}

/* Product grid */

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

/* Card */

.eflc-hub-card {
    position: relative;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 300px;
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 42, 67, .055);
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

.eflc-hub-card:hover {
    transform: translateY(-1px);
    border-color: #d2dce7;
    box-shadow: 0 8px 24px rgba(15, 42, 67, .09);
}

/* Product image */

.eflc-hub-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 24px 18px;
    border-right: 1px solid #edf1f5;
    background: #fff;
    text-decoration: none;
}

.eflc-hub-image img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 155px !important;
    max-height: 190px !important;
    object-fit: contain;
}

/* Content */

.eflc-hub-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 21px 22px 20px;
}

.eflc-hub-card-status {
    min-height: 23px;
    margin-bottom: 7px;
}

.eflc-hub-current,
.eflc-hub-past {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.eflc-hub-current {
    color: #16713c;
    background: #edf9f1;
}

.eflc-hub-past {
    color: #667085;
    background: #f1f3f5;
}

.eflc-hub-card h2 {
    margin: 0 0 9px;
    padding: 0;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 750;
    letter-spacing: -.01em;
}

.eflc-hub-card h2 a {
    color: #123b5d;
    text-decoration: none;
}

.eflc-hub-card h2 a:hover {
    color: #006a9c;
    text-decoration: underline;
}

/* Rating */

.eflc-hub-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
    font-size: 13px;
}

.eflc-hub-stars {
    color: #f59e0b;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

.eflc-hub-rating strong {
    color: #243b53;
    font-size: 14px;
}

.eflc-hub-rating a {
    padding-left: 7px;
    border-left: 1px solid #d9e1e8;
    color: #397493;
    font-weight: 700;
    text-decoration: none;
}

.eflc-hub-rating a:hover {
    text-decoration: underline;
}

/* Review excerpt */

.eflc-hub-quote {
    margin: 0 0 17px;
    padding: 13px 14px;
    border: 0;
    border-radius: 9px;
    background: #f8fafc;
}

.eflc-hub-quote p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 9px;
    padding: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 13px;
    line-height: 1.55;
    font-style: normal;
    color: #475569;
}

.eflc-hub-quote footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 9px;
    font-size: 11px;
    line-height: 1.4;
    color: #7b8794;
}

.eflc-hub-quote footer strong {
    color: #435466;
}

.eflc-hub-verified {
    color: #25834c;
    font-weight: 700;
}

.eflc-hub-quote time {
    margin-left: auto;
}

/* Buttons */

.eflc-hub-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
}

.eflc-hub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    box-sizing: border-box;
    padding: 9px 15px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none !important;
    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.eflc-hub-button-primary {
    border: 1px solid #14733c;
    background: #178443;
    color: #fff !important;
}

.eflc-hub-button-primary:hover {
    border-color: #105f31;
    background: #126d38;
}

.eflc-hub-button-secondary {
    border: 1px solid #cfd9e3;
    background: #fff;
    color: #174f72 !important;
}

.eflc-hub-button-secondary:hover {
    border-color: #9eb4c5;
    background: #f7fafc;
}

/* Past products */

.eflc-hub-card.is-past-product {
    background: #fcfcfd;
}

.eflc-hub-card.is-past-product .eflc-hub-image {
    background: #fcfcfd;
}

.eflc-hub-card.is-past-product .eflc-hub-image img {
    opacity: .88;
}

/* Empty state */

.eflc-hub-empty {
    padding: 50px 25px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
    color: #64748b;
}

/* Tablet */

@media (max-width: 1050px) {
    .eflc-hub-grid {
        grid-template-columns: 1fr;
    }

    .eflc-hub-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }
}

/* Mobile */

@media (max-width: 620px) {
    #reviewsDefault.eflc-reviews-hub {
        padding: 14px 12px 40px;
    }

    .eflc-hub-header {
        margin-bottom: 18px;
    }

    .eflc-hub-header h1 {
        font-size: 30px;
    }

    .eflc-hub-header p {
        font-size: 14px;
    }

    .eflc-hub-pagination {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .eflc-hub-card {
        display: block;
        min-height: 0;
    }

    .eflc-hub-image {
        height: 180px;
        padding: 15px;
        border-right: 0;
        border-bottom: 1px solid #edf1f5;
    }

    .eflc-hub-image img {
        max-width: 170px !important;
        max-height: 150px !important;
    }

    .eflc-hub-card-content {
        padding: 17px 17px 18px;
    }

    .eflc-hub-card h2 {
        font-size: 17px;
    }

    .eflc-hub-quote time {
        width: 100%;
        margin-left: 0;
    }

    .eflc-hub-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .eflc-hub-card.is-past-product .eflc-hub-actions {
        grid-template-columns: 1fr;
    }

    .eflc-hub-button {
        width: 100%;
    }
}
