/* HTA3D Customer Reviews 3.3.3 - scoped to avoid Bootstrap and Journal collisions. */
.hta3d-reviews {
    --hta3d-reviews-primary: #0a0a78;
    --hta3d-reviews-accent: #54b6c0;
    --hta3d-reviews-text: #202326;
    --hta3d-reviews-muted: #6b737b;
    --hta3d-reviews-border: #dfe4e7;
    --hta3d-reviews-surface: #ffffff;
    --hta3d-reviews-soft: #f5f7f8;
    --hta3d-reviews-star: #ffd020;
    --hta3d-reviews-star-off: #dfe3e6;
    --hta3d-reviews-radius: 15px;
    position: relative;
    padding: 32px 0 18px;
    color: var(--hta3d-reviews-text);
    font: inherit;
}

.hta3d-reviews *,
.hta3d-reviews *::before,
.hta3d-reviews *::after {
    box-sizing: border-box;
}

/* A neutral div is used instead of <header> because Journal styles bare header elements. */
.hta3d-reviews__intro {
    position: static !important;
    z-index: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 920px;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 23px !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.hta3d-reviews__intro::before,
.hta3d-reviews__intro::after {
    content: none !important;
    display: none !important;
}

.hta3d-reviews__title {
    position: static !important;
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    opacity: 1 !important;
    color: var(--hta3d-reviews-primary) !important;
    font: inherit !important;
    font-size: clamp(27px, 3vw, 38px) !important;
    font-weight: 750 !important;
    letter-spacing: -.025em !important;
    line-height: 1.14 !important;
    text-align: left !important;
    text-indent: 0 !important;
    text-transform: none !important;
    white-space: normal !important;
    transform: none !important;
}

.hta3d-reviews__subtitle {
    position: static !important;
    display: block !important;
    max-width: 860px;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: var(--hta3d-reviews-muted) !important;
    font: inherit !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    text-align: left !important;
    white-space: normal !important;
}

.hta3d-reviews__page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    flex: 0 1 auto;
    color: #0a0a78;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #54b6c0;
}

.hta3d-reviews__page-link:hover { color: #087b85; }
.hta3d-reviews__page-link:focus-visible { outline: 3px solid #54b6c0; outline-offset: 3px; }

.hta3d-reviews__tabs {
    display: none;
    width: max-content;
    max-width: 100%;
    gap: 4px;
    margin: 0 0 22px;
    padding: 4px;
    border: 1px solid var(--hta3d-reviews-border);
    border-radius: 11px;
    background: var(--hta3d-reviews-soft);
}

.hta3d-reviews.is-enhanced .hta3d-reviews__tabs {
    display: flex;
}

.hta3d-reviews__tab {
    min-height: 39px;
    padding: 8px 17px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hta3d-reviews-muted);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.hta3d-reviews__tab[aria-selected="true"] {
    background: var(--hta3d-reviews-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(10, 10, 120, .16);
}

.hta3d-reviews__tab:focus-visible,
.hta3d-reviews__control:focus-visible,
.hta3d-reviews a:focus-visible {
    outline: 3px solid rgba(84, 182, 192, .52);
    outline-offset: 2px;
}

.hta3d-reviews__panel + .hta3d-reviews__panel {
    margin-top: 34px;
}

.hta3d-reviews.is-enhanced .hta3d-reviews__panel[hidden] {
    display: none;
}

.hta3d-reviews.is-enhanced .hta3d-reviews__panel + .hta3d-reviews__panel {
    margin-top: 0;
}

.hta3d-reviews__source-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 44px;
    gap: 20px;
    margin-bottom: 17px;
}

.hta3d-reviews__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
    color: var(--hta3d-reviews-primary);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .01em;
}

.hta3d-reviews__eyebrow::before {
    width: 26px;
    height: 3px;
    flex: 0 0 26px;
    border-radius: 2px;
    background: var(--hta3d-reviews-accent);
    content: "";
}

.hta3d-reviews__summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 22px;
    gap: 8px;
    color: var(--hta3d-reviews-muted);
    font-size: 14px;
}

.hta3d-reviews__rating {
    color: var(--hta3d-reviews-text);
    font-size: 15px;
}

.hta3d-reviews__main-link,
.hta3d-reviews__card-link,
.hta3d-reviews__author-name,
.hta3d-reviews__product-name {
    color: var(--hta3d-reviews-primary);
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.hta3d-reviews__main-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid var(--hta3d-reviews-border);
    border-radius: 9px;
    background: var(--hta3d-reviews-surface);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.hta3d-reviews__main-link:hover,
.hta3d-reviews__card-link:hover,
.hta3d-reviews__author-name:hover,
.hta3d-reviews__product-name:hover {
    color: var(--hta3d-reviews-accent);
}

.hta3d-reviews__carousel {
    margin: -8px -12px -18px;
    padding: 8px 12px 18px;
    overflow: hidden;
}

.hta3d-reviews__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    align-items: stretch;
    padding: 2px 2px 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hta3d-reviews__track::-webkit-scrollbar {
    display: none;
}

.hta3d-reviews__card {
    display: flex;
    min-width: 0;
    min-height: 210px;
    flex-direction: column;
    padding: 19px;
    overflow: hidden;
    border: 1px solid var(--hta3d-reviews-border);
    border-top: 3px solid var(--hta3d-reviews-primary);
    border-radius: var(--hta3d-reviews-radius);
    background: var(--hta3d-reviews-surface);
    box-shadow: 0 7px 18px rgba(23, 29, 34, .07);
    scroll-snap-align: start;
}

.hta3d-reviews__card--google {
    border-top-color: #4285f4;
}

.hta3d-reviews__card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
    margin-bottom: 13px;
}

.hta3d-reviews__reviewer {
    min-width: 0;
    overflow: hidden;
    color: var(--hta3d-reviews-text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hta3d-reviews__date {
    grid-column: -1;
    color: var(--hta3d-reviews-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hta3d-reviews__text {
    display: -webkit-box;
    flex: 1;
    width: 100%;
    min-height: 3.1em;
    margin: 0 0 16px;
    overflow: hidden;
    color: var(--hta3d-reviews-text);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.hta3d-reviews__text--empty {
    color: var(--hta3d-reviews-muted);
    font-style: italic;
}

/* A div is intentional: Journal also styles bare footer elements globally. */
.hta3d-reviews__card-footer {
    position: static !important;
    z-index: auto !important;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    margin: 0 !important;
    padding: 13px 0 0 !important;
    border: 0;
    border-top: 1px solid var(--hta3d-reviews-border);
    background: transparent !important;
    box-shadow: none !important;
}

.hta3d-reviews__author-block,
.hta3d-reviews__product {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.hta3d-reviews__avatar,
.hta3d-reviews__product-image {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--hta3d-reviews-soft);
}

.hta3d-reviews__product-image {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border: 1px solid #edf0f2;
    border-radius: 9px;
}

.hta3d-reviews__avatar img,
.hta3d-reviews__product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hta3d-reviews__avatar-fallback {
    color: var(--hta3d-reviews-muted);
    font-size: 12px;
    font-weight: 700;
}

.hta3d-reviews__author-info,
.hta3d-reviews__product-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.hta3d-reviews__author-name,
.hta3d-reviews__product-name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hta3d-reviews__author,
.hta3d-reviews__source {
    max-width: 100%;
    margin-top: 4px;
    overflow: hidden;
    color: var(--hta3d-reviews-primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hta3d-reviews__source {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(84, 182, 192, .13);
}

.hta3d-reviews__card-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.hta3d-reviews__stars {
    position: relative;
    display: inline-block;
    width: 94px;
    height: 20px;
    overflow: hidden;
    font-size: 19px;
    line-height: 20px;
    letter-spacing: 0;
    vertical-align: middle;
    white-space: nowrap;
}

.hta3d-reviews__stars--compact {
    width: 78px;
    height: 17px;
    font-size: 16px;
    line-height: 17px;
}

.hta3d-reviews__stars-back,
.hta3d-reviews__stars-fill {
    position: absolute;
    top: 0;
    left: 0;
}

.hta3d-reviews__stars-back {
    color: var(--hta3d-reviews-star-off);
}

.hta3d-reviews__stars-fill {
    overflow: hidden;
    color: var(--hta3d-reviews-star);
    white-space: nowrap;
}

.hta3d-reviews__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
}

.hta3d-reviews__actions:empty {
    display: none;
}

.hta3d-reviews__controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.hta3d-reviews__control {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    border: 1px solid rgba(10, 10, 120, .2);
    border-radius: 50%;
    background: var(--hta3d-reviews-surface);
    color: var(--hta3d-reviews-primary);
    cursor: pointer;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.hta3d-reviews__control:hover {
    border-color: var(--hta3d-reviews-primary);
    background: var(--hta3d-reviews-primary);
    color: #fff;
    transform: translateY(-1px);
}

.hta3d-reviews__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 11px;
    color: var(--hta3d-reviews-muted);
    font-size: 11px;
    line-height: 1.45;
}

.hta3d-reviews__attribution {
    color: #5e5e5e;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    white-space: nowrap;
}

.hta3d-reviews__provider {
    color: inherit;
    text-decoration: underline;
}

.hta3d-reviews__order-note::before {
    content: "· ";
}

.hta3d-reviews__loading,
.hta3d-reviews__error,
.hta3d-reviews__empty {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--hta3d-reviews-border);
    border-radius: 12px;
    background: var(--hta3d-reviews-soft);
    color: var(--hta3d-reviews-muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 991px) {
    .hta3d-reviews__track {
        grid-auto-columns: calc((100% - 16px) / 2);
    }
}

@media (max-width: 640px) {
    .hta3d-reviews__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hta3d-reviews__page-link {
        align-self: flex-start;
    }

    .hta3d-reviews__controls {
        align-self: flex-end;
        margin-left: 0;
    }

    .hta3d-reviews {
        padding-top: 24px;
    }

    .hta3d-reviews__intro {
        margin-bottom: 20px !important;
    }

    .hta3d-reviews__title {
        font-size: 27px !important;
    }

    .hta3d-reviews__subtitle {
        font-size: 14px !important;
    }

    .hta3d-reviews__tabs {
        width: 100%;
    }

    .hta3d-reviews__tab {
        flex: 1 1 50%;
    }

    .hta3d-reviews__source-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .hta3d-reviews__main-link {
        min-height: 38px;
        padding: 8px 12px;
    }

    .hta3d-reviews__track {
        grid-auto-columns: 100%;
        gap: 12px;
    }

    .hta3d-reviews__card {
        min-height: 206px;
        padding: 17px;
    }

    .hta3d-reviews__card--product .hta3d-reviews__card-top {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .hta3d-reviews__card--product .hta3d-reviews__reviewer {
        grid-column: 1;
        grid-row: 1;
    }

    .hta3d-reviews__card--product .hta3d-reviews__stars {
        grid-column: 1;
        grid-row: 2;
    }

    .hta3d-reviews__card--product .hta3d-reviews__date {
        grid-column: 2;
        grid-row: 1;
    }

    .hta3d-reviews__card-footer {
        align-items: center;
    }

    .hta3d-reviews__product-image {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .hta3d-reviews__order-note::before {
        content: "";
    }
}

@media (max-width: 390px) {
    .hta3d-reviews__card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hta3d-reviews__card-link {
        align-self: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hta3d-reviews__track {
        scroll-behavior: auto;
    }

    .hta3d-reviews__tab,
    .hta3d-reviews__main-link,
    .hta3d-reviews__card-link,
    .hta3d-reviews__control {
        transition: none;
    }
}
