/* BBD Reviews Plugin Styles */

.bbd-reviews {
    --bbd-star-color: #f1592a;
    --bbd-star-empty: #d4d4d4;
    --bbd-avatar-bg: #1e2a3a;
    --bbd-verified-color: #0e8c7f;
    --bbd-border: #e2e2e2;
    --bbd-bg: #ffffff;
    --bbd-text: #1e2a3a;
    --bbd-text-light: #6b7280;
    --bbd-bar-bg: #eef0f2;
    --bbd-bar-fill: #f1592a;
    --bbd-link: #f1592a;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--bbd-text);
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

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

/* ===== Rating Summary ===== */

.bbd-reviews__summary {
    display: flex;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--bbd-border);
    margin-bottom: 16px;
}

.bbd-reviews__summary-left {
    text-align: center;
    min-width: 140px;
    flex-shrink: 0;
}

.bbd-reviews__average {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.bbd-reviews__summary-stars {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.bbd-reviews__total-count {
    font-size: 14px;
    color: var(--bbd-text-light);
}

.bbd-reviews__summary-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.bbd-reviews__bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 2px 0;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.bbd-reviews__bar-row:hover {
    background-color: #f8f8f8;
}

.bbd-reviews__bar-row--active {
    background-color: #fef3eb;
}

.bbd-reviews__bar-label {
    font-size: 13px;
    color: var(--bbd-text-light);
    min-width: 50px;
    text-align: right;
    white-space: nowrap;
}

.bbd-reviews__bar-track {
    display: block;
    flex: 1;
    height: 10px;
    background: var(--bbd-bar-bg);
    border-radius: 5px;
    overflow: hidden;
}

.bbd-reviews__bar-fill {
    display: block;
    height: 100%;
    background: var(--bbd-bar-fill);
    border-radius: 5px;
    transition: width 0.3s ease;
    min-width: 0;
}

.bbd-reviews__bar-count {
    font-size: 13px;
    color: var(--bbd-text-light);
    min-width: 38px;
    text-align: right;
}

/* ===== Star Rendering ===== */

.bbd-reviews__stars {
    display: inline-flex;
    gap: 1px;
    vertical-align: middle;
}

.bbd-reviews__star {
    color: var(--bbd-star-empty);
    font-size: inherit;
    line-height: 1;
}

.bbd-reviews .bbd-reviews__star--filled {
    color: var(--bbd-star-color);
}

.bbd-reviews__star--half {
    position: relative;
    color: var(--bbd-star-empty);
}

.bbd-reviews__star--half::before {
    content: "\2605";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: var(--bbd-star-color);
}

/* Hero star overrides */
.bbd-reviews__hero .bbd-reviews__star {
    color: rgba(255, 255, 255, 0.25);
}

.bbd-reviews__hero .bbd-reviews__star--filled {
    color: #f1592a;
}

.bbd-reviews__hero .bbd-reviews__star--half::before {
    color: #f1592a;
}

/* ===== Trust Banner ===== */

.bbd-reviews__trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #f8faf8;
    border: 1px solid #e0e8e0;
    border-radius: 8px;
}

.bbd-reviews__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bbd-text);
}

.bbd-reviews__trust-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
}

.bbd-reviews__trust-icon svg {
    width: 20px;
    height: 20px;
}

.bbd-reviews__trust-icon--shield {
    color: var(--bbd-verified-color);
}

.bbd-reviews__trust-icon--star {
    color: var(--bbd-star-color);
}

.bbd-reviews__trust-icon--camera {
    color: var(--bbd-text-light);
}

.bbd-reviews__trust-icon--location {
    color: var(--bbd-text-light);
}

.bbd-reviews__trust-strong {
    font-weight: 700;
}

/* ===== Photo Gallery (Mode 2) ===== */

.bbd-reviews__gallery {
    padding: 16px 0;
    border-bottom: 1px solid var(--bbd-border);
    margin-bottom: 16px;
}

.bbd-reviews__gallery-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bbd-reviews__gallery-icon {
    width: 16px;
    height: 16px;
    color: var(--bbd-text-light);
}

.bbd-reviews__gallery-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--bbd-text);
}

.bbd-reviews__gallery-count {
    font-size: 12px;
    color: var(--bbd-text-light);
    font-weight: 400;
}

.bbd-reviews__gallery-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.bbd-reviews__gallery-grid::-webkit-scrollbar {
    height: 5px;
}

.bbd-reviews__gallery-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.bbd-reviews__gallery-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    scroll-snap-align: start;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bbd-reviews__gallery-thumb:hover {
    border-color: var(--bbd-star-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bbd-reviews__gallery-more {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--bbd-bar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--bbd-text-light);
    cursor: pointer;
    scroll-snap-align: start;
    transition: background 0.15s;
}

.bbd-reviews__gallery-more:hover {
    background: #dde0e3;
}

/* ===== Toolbar (sort + active filter) ===== */

.bbd-reviews__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 8px;
}

.bbd-reviews__showing {
    font-size: 14px;
    color: var(--bbd-text-light);
}

.bbd-reviews__filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3eb;
    border: 1px solid var(--bbd-star-color);
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 13px;
    margin-left: 8px;
}

.bbd-reviews__filter-tag-close {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--bbd-text-light);
    margin-left: 4px;
}

.bbd-reviews__filter-tag-close:hover {
    color: var(--bbd-text);
}

.bbd-reviews__sort {
    position: relative;
}

.bbd-reviews__sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bbd-bg);
    border: 1px solid var(--bbd-border);
    border-radius: 6px;
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    color: var(--bbd-text);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23777'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.bbd-reviews__sort-select:focus {
    outline: 2px solid var(--bbd-link);
    outline-offset: 1px;
}

/* ===== Review Cards ===== */

.bbd-reviews__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbd-reviews__card {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--bbd-border);
}

.bbd-reviews__card:last-child {
    border-bottom: none;
}

.bbd-reviews__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bbd-avatar-bg);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}

.bbd-reviews__card-content {
    flex: 1;
    min-width: 0;
}

.bbd-reviews__card-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.bbd-reviews__card-stars {
    font-size: 14px;
}

.bbd-reviews__card-date {
    font-size: 13px;
    color: var(--bbd-text-light);
    margin-left: auto;
}

.bbd-reviews__card-reviewer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.bbd-reviews__reviewer-name {
    font-size: 14px;
    font-weight: 600;
}

.bbd-reviews__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--bbd-verified-color);
    background: #edf8f6;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bbd-reviews__verified-icon {
    width: 13px;
    height: 13px;
}

.bbd-reviews__card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.bbd-reviews__card-body {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px 0;
    word-wrap: break-word;
}

.bbd-reviews__read-more {
    color: var(--bbd-link);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.bbd-reviews__read-more:hover {
    color: #034a82;
    text-decoration: none;
}

.bbd-reviews__card-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.bbd-reviews__card-img {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bbd-reviews__card-img:hover {
    transform: scale(1.04);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.bbd-reviews__card-product {
    font-size: 13px;
    color: var(--bbd-text-light);
}

.bbd-reviews__card-product a {
    color: var(--bbd-link);
    text-decoration: none;
}

.bbd-reviews__card-product a:hover {
    text-decoration: underline;
}

.bbd-reviews__card-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--bbd-text-light);
    margin-top: 4px;
}

.bbd-reviews__location-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ===== Empty State ===== */

.bbd-reviews__empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--bbd-text-light);
    font-size: 16px;
}

/* ===== Pagination ===== */

.bbd-reviews__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.bbd-reviews__page-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bbd-border);
    border-radius: 6px;
    background: var(--bbd-bg);
    color: var(--bbd-text);
    font-size: 14px;
    cursor: pointer;
    padding: 0 8px;
    transition: background-color 0.15s, border-color 0.15s;
}

.bbd-reviews__page-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.bbd-reviews__page-btn--active {
    background: #f1592a;
    color: #ffffff;
    border-color: #f1592a;
}

.bbd-reviews__page-btn--active:hover {
    background: #d94d22;
}

.bbd-reviews__page-btn--disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.bbd-reviews__page-ellipsis {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--bbd-text-light);
}

/* ===== Lightbox ===== */

.bbd-reviews__lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.bbd-reviews__lightbox--open {
    opacity: 1;
    visibility: visible;
}

.bbd-reviews__lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

.bbd-reviews__lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.bbd-reviews__lightbox-close:hover {
    opacity: 1;
}

.bbd-reviews__lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.15s, background 0.15s;
}

.bbd-reviews__lightbox-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}

.bbd-reviews__lightbox-prev {
    left: 16px;
}

.bbd-reviews__lightbox-next {
    right: 16px;
}

.bbd-reviews__lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ===== Cards Layout - Full Page Experience ===== */

/* Widen container for cards mode */
.bbd-reviews--cards {
    max-width: 1100px;
}

/* Hero banner replaces summary + trust in cards mode */
.bbd-reviews__hero {
    background: linear-gradient(135deg, #034a82 0%, #045a9e 60%, #0567b3 100%);
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 28px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 36px;
    position: relative;
    overflow: hidden;
}

/* Subtle orange accent stripe */
.bbd-reviews__hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f1592a 0%, #f77d4f 100%);
}

.bbd-reviews__hero-rating {
    text-align: center;
    flex-shrink: 0;
    min-width: 150px;
}

.bbd-reviews__hero-number {
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.bbd-reviews__hero-stars-wrap {
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.bbd-reviews__hero-count {
    font-size: 14px;
    opacity: 0.7;
}

.bbd-reviews__hero-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.bbd-reviews__hero-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bbd-reviews__hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    transition: background 0.15s;
}

.bbd-reviews__hero-stat:hover {
    background: rgba(255, 255, 255, 0.12);
}

.bbd-reviews__hero-stat-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbd-reviews__hero-stat-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.bbd-reviews__hero-stat-icon--verified {
    background: rgba(14, 140, 127, 0.2);
    color: #4ade80;
}
.bbd-reviews__hero-stat-icon--star {
    background: rgba(241, 89, 42, 0.2);
    color: #f1592a;
}
.bbd-reviews__hero-stat-icon--photo {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}
.bbd-reviews__hero-stat-icon--location {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.bbd-reviews__hero-stat-text {
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.7);
}

.bbd-reviews__hero-stat-value {
    font-size: 18px;
    font-weight: 700;
    display: block;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1px;
}

/* Featured reviews with photos - horizontal scroll */
.bbd-reviews__featured {
    margin-bottom: 24px;
}

.bbd-reviews__featured-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbd-reviews__featured-title svg {
    width: 20px;
    height: 20px;
    color: var(--bbd-star-color);
    stroke-width: 2;
}

.bbd-reviews__featured-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.bbd-reviews__featured-scroll::-webkit-scrollbar {
    height: 6px;
}

.bbd-reviews__featured-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.bbd-reviews__featured-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--bbd-border);
    background: var(--bbd-bg);
    transition: box-shadow 0.2s, transform 0.2s;
}

.bbd-reviews__featured-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.bbd-reviews__featured-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.bbd-reviews__featured-body {
    padding: 16px;
}

.bbd-reviews__featured-body .bbd-reviews__card-header {
    margin-bottom: 6px;
}

.bbd-reviews__featured-body .bbd-reviews__card-reviewer {
    margin-bottom: 8px;
}

.bbd-reviews__featured-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--bbd-text);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bbd-reviews__featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--bbd-text-light);
    padding-top: 8px;
    border-top: 1px solid var(--bbd-border);
}

/* Section divider */
.bbd-reviews__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bbd-border);
}

.bbd-reviews__section-title {
    font-size: 18px;
    font-weight: 700;
}

.bbd-reviews__section-count {
    font-size: 14px;
    color: var(--bbd-text-light);
}

/* Cards masonry grid */
.bbd-reviews__cards-grid {
    column-count: 2;
    column-gap: 16px;
    margin: 0;
    padding: 0;
    /* Prevents mobile WebKit/Blink paint bug with column-count layouts */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.bbd-reviews__card-tile {
    break-inside: avoid;
    background: var(--bbd-bg);
    border: 1px solid var(--bbd-border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.bbd-reviews__card-tile:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.bbd-reviews__card-tile .bbd-reviews__card-header {
    margin-bottom: 10px;
}

.bbd-reviews__card-tile .bbd-reviews__card-reviewer {
    margin-bottom: 10px;
}

.bbd-reviews__card-tile .bbd-reviews__reviewer-name {
    font-size: 15px;
}

.bbd-reviews__card-tile .bbd-reviews__card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--bbd-text);
}

.bbd-reviews__card-tile .bbd-reviews__card-body {
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.bbd-reviews__card-tile .bbd-reviews__card-images {
    margin: 10px 0;
    gap: 8px;
}

.bbd-reviews__card-tile .bbd-reviews__card-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.bbd-reviews__card-tile .bbd-reviews__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--bbd-border);
}

.bbd-reviews__card-tile .bbd-reviews__card-product {
    font-size: 12px;
}

.bbd-reviews__card-tile .bbd-reviews__card-product a {
    font-weight: 600;
}

.bbd-reviews__card-tile .bbd-reviews__card-location {
    margin-top: 0;
    font-size: 12px;
}

/* Hero image for cards with photos */
.bbd-reviews__card-hero-img {
    width: calc(100% + 44px);
    margin: -22px -22px 14px -22px;
    height: 200px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    cursor: pointer;
    display: block;
    transition: opacity 0.15s;
}

.bbd-reviews__card-hero-img:hover {
    opacity: 0.92;
}

.bbd-reviews__card-tile .bbd-reviews__card-images--extra {
    display: flex;
    gap: 6px;
    margin: 0 0 10px;
}

.bbd-reviews__card-tile .bbd-reviews__card-images--extra .bbd-reviews__card-img {
    width: 52px;
    height: 52px;
    border-radius: 6px;
}

/* Quote styling for card bodies */
.bbd-reviews__card-tile .bbd-reviews__card-body::before {
    content: "\201C";
    font-size: 28px;
    font-weight: 700;
    color: var(--bbd-star-color);
    line-height: 0;
    position: relative;
    top: 8px;
    margin-right: 2px;
    opacity: 0.6;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .bbd-reviews__summary {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .bbd-reviews__summary-left {
        min-width: auto;
    }

    .bbd-reviews__summary-right {
        width: 100%;
    }

    .bbd-reviews__card-date {
        margin-left: 0;
    }

    .bbd-reviews__trust {
        flex-wrap: wrap;
        gap: 12px 24px;
        justify-content: flex-start;
    }

    .bbd-reviews__hero {
        flex-direction: column;
        padding: 28px 24px;
        gap: 20px;
        text-align: center;
    }

    .bbd-reviews__hero-divider {
        width: 100%;
        height: 1px;
        align-self: auto;
    }

    .bbd-reviews__hero-stats {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .bbd-reviews__featured-card {
        flex: 0 0 280px;
    }

    .bbd-reviews__cards-grid {
        column-count: 2;
    }

    .bbd-reviews__lightbox-nav {
        padding: 8px 12px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .bbd-reviews {
        padding: 0 8px;
    }

    .bbd-reviews__average {
        font-size: 36px;
    }

    .bbd-reviews__card {
        gap: 10px;
    }

    .bbd-reviews__avatar {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .bbd-reviews__card-img {
        width: 80px;
        height: 80px;
    }

    .bbd-reviews__hero {
        padding: 24px 20px;
        gap: 16px;
    }

    .bbd-reviews__hero-number {
        font-size: 48px;
    }

    .bbd-reviews__hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .bbd-reviews__hero-stat {
        padding: 10px 12px;
        gap: 8px;
    }

    .bbd-reviews__hero-stat-value {
        font-size: 16px;
    }

    .bbd-reviews__hero-stat-text {
        font-size: 11px;
    }

    .bbd-reviews__featured-card {
        flex: 0 0 260px;
    }

    .bbd-reviews__featured-img {
        height: 160px;
    }

    .bbd-reviews__cards-grid {
        column-count: 1;
    }

    .bbd-reviews__card-hero-img {
        height: 180px;
    }

    .bbd-reviews__trust {
        flex-direction: column;
        gap: 8px;
    }

    .bbd-reviews__toolbar {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .bbd-reviews__lightbox-prev {
        left: 4px;
    }

    .bbd-reviews__lightbox-next {
        right: 4px;
    }
}

/* ===== WooCommerce Inline Star Summary ===== */

.bbd-reviews-inline {
    margin: 4px 0 8px;
    line-height: 1;
}

.bbd-reviews-inline__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

.bbd-reviews-inline__link:hover {
    opacity: 0.8;
}

.bbd-reviews-inline__stars {
    display: inline-flex;
    gap: 1px;
    font-size: 16px;
    line-height: 1;
}

.bbd-reviews-inline__stars .bbd-reviews__star {
    color: #d4d4d4;
    font-size: 16px;
}

.bbd-reviews-inline__stars .bbd-reviews__star--filled {
    color: #f1592a;
}

.bbd-reviews-inline__stars .bbd-reviews__star--half {
    color: #d4d4d4;
}

.bbd-reviews-inline__stars .bbd-reviews__star--half::before {
    color: #f1592a;
}

.bbd-reviews-inline__average {
    font-size: 14px;
    font-weight: 600;
    color: #1e2a3a;
}

.bbd-reviews-inline__count {
    font-size: 14px;
    color: #f1592a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bbd-reviews-inline__link:hover .bbd-reviews-inline__count {
    text-decoration: none;
}

/* ===== WooCommerce Section Wrapper ===== */

.bbd-reviews-woo-section {
    clear: both;
    width: 100%;
    margin: 32px 0 0;
    scroll-margin-top: 80px;
}
