/* BN1 Google Reviews frontend
 * Mirrors the existing Banya No.1 reviews card system while remaining usable
 * when the shortcode is rendered outside the theme reviews section.
 */
.bn1gr {
    width: 100%;
    min-width: 0;
}

.bn1gr .bn1gr-swiper {
    width: 100%;
    overflow: visible;
}

.bn1gr .swiper-wrapper {
    align-items: flex-start;
}

/* Keep Swiper in auto-width mode and preserve the dimensions used by the
 * existing Google/Tripadvisor cards in the GeneratePress theme. */
.bn1gr .bn1gr-slide {
    box-sizing: border-box;
    width: 100%;
    height: 256px;
    max-width: 256px;
    flex: 0 0 auto;
    display: block;
    padding: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.05);
    color: var(--Banya-Graphite-500, #868686);
    font-family: Geologica, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 250;
    line-height: 1.5;
}

.bn1gr-card,
.bn1gr-summary {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
}

.bn1gr-card {
    display: flex;
    flex-direction: column;
}

.bn1gr .topReview {
    display: flex;
    min-width: 0;
}

.bn1gr .bn1gr-avatar {
    width: 32px;
    min-width: 32px;
    height: 32px;
}

.bn1gr .bn1gr-avatar img,
.bn1gr .bn1gr-avatar > span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.bn1gr .bn1gr-avatar img {
    display: block;
    object-fit: cover;
}

.bn1gr .bn1gr-avatar > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f4;
    color: #3c4043;
    font-weight: 600;
}

.bn1gr .topData {
    width: 100%;
    min-width: 0;
    padding-left: 16px;
}

.bn1gr .nameRev {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    color: var(--Banya-Graphite-800, #4b4b4b);
    text-overflow: ellipsis;
    font-family: Jeferson, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bn1gr .nameRevPad {
    margin-bottom: 5px;
}

.bn1gr .ratingDateBox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.bn1gr-stars {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2px;
    line-height: 1;
    white-space: nowrap;
}

.bn1gr-star {
    color: #d5d9dd;
    font-size: 12px;
    line-height: 1;
}

.bn1gr-star.is-filled {
    color: #fbbc04;
}

.bn1gr .dateRev {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    margin-left: 6px;
    color: inherit;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
}

.bn1gr .bn1gr-content {
    margin: 16px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    text-overflow: ellipsis;
    white-space: normal;
}

.bn1gr .bottomRev {
    display: flex;
    flex-grow: 1;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 24px;
}

.bn1gr .innerBottomRev {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.bn1gr-google-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.bn1gr-google-badge img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bn1gr-google-badge > span {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border: 1px solid #dadce0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #4285f4;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.bn1gr .linkMoreRev {
    display: inline-flex;
    align-items: center;
    color: var(--Banya-Graphite-600, #727272);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: .12px;
    text-transform: uppercase;
}

.bn1gr .linkMoreRev a,
.bn1gr .allLinkRated a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bn1gr .linkMoreRev img,
.bn1gr .allLinkRated img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.bn1gr .innerBoxRating {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bn1gr .titleRated {
    overflow: hidden;
    color: var(--Banya-Graphite-800, #4b4b4b);
    text-align: center;
    text-overflow: ellipsis;
    font-family: Jeferson, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bn1gr .detailRated {
    text-align: center;
}

.bn1gr .ratingRated {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
    color: #958464;
    font-family: Jeferson, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bn1gr .bn1gr-summary-stars {
    justify-content: center;
    margin: 2px 0 8px;
}

.bn1gr .infoRated {
    text-align: center;
    color: #958464;
}

.bn1gr .allLinkRated a {
    justify-content: center;
    color: var(--Banya-Graphite-700, #5e5e5e);
    font-family: Geologica, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bn1gr-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.bn1gr-nav .nav-slider__scrollbar-wrapper {
    flex: 1 1 auto;
}

.bn1gr-empty {
    padding: 12px;
    border: 1px dashed #b8bdc4;
}

/* Graceful fallback if Swiper is unavailable. */
.bn1gr-no-swiper .bn1gr-swiper {
    overflow-x: auto;
    overflow-y: hidden;
}

.bn1gr-no-swiper .swiper-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bn1gr-no-swiper .bn1gr-slide {
    flex: 0 0 256px;
}

@media (min-width: 1280px) {
    .bn1gr .bn1gr-slide {
        height: 276px;
        max-width: 276px;
        padding: 32px;
        border-radius: 24px;
    }

    .bn1gr-no-swiper .bn1gr-slide {
        flex-basis: 276px;
    }
}
