/* =========================
   REVIEW FORM
========================= */

.brb-review-form {
    max-width: 720px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.brb-review-form h3 {
    margin-bottom: 15px;
}

.brb-review-form p {
    margin-bottom: 18px;
}

.brb-review-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.brb-review-form input[type="text"],
.brb-review-form select,
.brb-review-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
}

.brb-review-form textarea {
    min-height: 160px;
}

.brb-review-form small {
    color: #6b7280;
}

.brb-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}

.brb-submit:hover {
    opacity: .9;
}

/* =========================
   RATING ROW
========================= */

.brb-rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.brb-rating-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}

.brb-star-input {
    display:flex;
    justify-content:center;
    gap:8px;
}

.brb-star-label {
    cursor:pointer;
}

.brb-star-label input {
    display:none;
}

.brb-star-label span {
    font-size:40px;
    color:#d1d5db;
    transition:.2s;
}
.brb-star-label input[type="radio"]:checked + span {
    color: #d97706;
    transform: scale(1.15);
}

/* =========================
   ALERTS
========================= */

.brb-success {
    padding: 16px;
    border: 1px solid #16a34a;
    background: #f0fdf4;
    border-radius: 8px;
}

.brb-error {
    padding: 16px;
    border: 1px solid #dc2626;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* =========================
   HEIGHTS STYLE LAYOUT
========================= */

.brb-reviews-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* =========================
   SUMMARY COLUMN
========================= */
.brb-review-summary h3 {
    margin-bottom: 12px;
}

.brb-average-rating {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.brb-review-count {
    color: #6b7280;
    margin-bottom: 20px;
}

.brb-breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.brb-breakdown-bar {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
}

.brb-breakdown-fill {
    height: 100%;
    background: #111827;
    border-radius: 999px;
}
/* =========================
   REVIEW GRID
========================= */

.brb-review-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================
   LOAD MORE BUTTON
========================= */

.brb-load-more-wrap {
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

#brb-load-more {
    padding: 12px 24px;
    border: 1px solid #111827;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

#brb-load-more:hover {
    background: #111827;
    color: #ffffff;
}

/* =========================
   REVIEW CARD
========================= */

.brb-review-card {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    transition: all .2s ease;
}

.brb-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.brb-review-stars {
    font-size: 20px;
    margin-bottom: 12px;
}

.brb-star-filled {
    color: #f59e0b;
}

.brb-star-empty {
    color: #d1d5db;
}

.brb-review-text {
    line-height: 1.7;
    color: #374151;
}

.brb-read-more {
    background: none;
    border: 0;
    color: #111827;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    font-weight: 600;
}

.brb-read-more:hover {
    text-decoration: underline;
}

/* =========================
   PREMIUM SUMMARY PANEL
========================= */

.brb-review-summary {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.brb-average-rating {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.brb-review-count {
    color: #6b7280;
    margin-bottom: 24px;
}

.brb-breakdown-row {
    margin-bottom: 12px;
}

/* =========================
   REVIEW ROW LAYOUT
========================= */
.brb-review-row {
    display: grid;
    grid-template-columns: minmax(120px,160px) 1fr auto;
    gap: 20px;
    align-items: start;
}

.brb-review-col-author strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
}

.brb-review-recommendation {
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.brb-review-col-content h4 {
    margin: 8px 0 12px;
    font-size: 18px;
    line-height: 1.4;
}

.brb-review-col-content .brb-verified {
    margin-top: 12px;
}

.brb-review-col-content .brb-review-product {
    margin-top: 6px;
}

.brb-review-col-date {
    text-align: right;
}

.brb-review-date-relative {
    font-weight: 600;
    color: #111827;
}

.brb-review-date-exact {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.brb-review-product {
    font-size: 13px;
    color: #6b7280;
}

.brb-verified {
    color: #059669;
    font-size: 14px;
    font-weight: 600;
}

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

@media (max-width: 767px) {

    .brb-review-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .brb-review-col-date {
        text-align: left;
    }

}

/* Lightbox */

#brb-simple-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

#brb-simple-lightbox.active {
    display: flex;
}

#brb-simple-lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 10px;
}




.brb-review-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.brb-review-gallery a {
    display: block;
}

.brb-review-gallery img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: block;
}

.brb-customer-photos {
    margin-bottom: 30px;
}

.brb-customer-photos h3 {
    margin-bottom: 15px;
}

.brb-customer-photos-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.brb-customer-photos-grid img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.brb-customer-since {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}
.brb-helpful {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brb-helpful-button {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}

.brb-helpful-button:hover {
    background: #f9fafb;
}
/* =========================
   Homepage Review Scroller
========================= */

.brb-scroll-reviews {
    margin: 80px auto;
    padding: 40px 0;
    overflow: hidden;
}

.brb-scroll-header {
    text-align: center;
    margin-bottom: 40px;
}

.brb-scroll-header h2 {
    font-size: 38px;
    margin-bottom: 10px;
}

.brb-scroll-rating {
    font-size: 32px;
    font-weight: 700;
    color: #f59e0b;
}

.brb-scroll-header p {
    color: #6b7280;
}

.brb-scroll-wrapper {
    overflow: hidden;
    width: 100%;
}

.brb-scroll-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: brbReviewScroll 45s linear infinite;
}

.brb-scroll-wrapper:hover .brb-scroll-track {
    animation-play-state: paused;
}

@keyframes brbReviewScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}

.brb-scroll-card {
    width: 340px;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    flex-shrink: 0;
}

.brb-scroll-stars {
    color: #f59e0b;
    font-size: 20px;
    margin-bottom: 12px;
}

.brb-scroll-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.brb-scroll-text {
    line-height: 1.7;
    color: #374151;
    min-height: 90px;
}

.brb-scroll-author {
    font-weight: 700;
    margin-top: 20px;
}

.brb-scroll-verified {
    color: #16a34a;
    margin-top: 8px;
    font-size: 14px;
}

.brb-scroll-link {
    text-align: center;
    margin-top: 30px;
}

.brb-scroll-link a {
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 768px) {

    .brb-scroll-header h2 {
        font-size: 28px;
    }

    .brb-scroll-card {
        width: 280px;
    }

}



#brb-rating-text {
    margin-top: 10px;
    font-weight: 600;
    color: #0f766e;
}

.brb-review-gallery {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:15px;
}

.brb-review-thumb {
    width:100px;
    height:100px;
    object-fit:cover;
    border-radius:10px;
    transition:.2s ease;
}

.brb-review-thumb:hover {
    transform:scale(1.05);
}

.brb-customer-photos-grid {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.brb-customer-photo-thumb {
    width:100px;
    height:100px;
    object-fit:cover;
    border-radius:10px;
}

/* Homepage Reviews */

.brb-home-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.brb-home-review-card {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    transition: all .2s ease;
    height: 100%;
}
.brb-home-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

@media (max-width: 767px) {

    .brb-home-review-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .brb-home-review-card {
        width: 100% !important;
        padding: 24px;
    }

}