/* ==========================================================================
   Google Reviews Component (BEM)
   ========================================================================== */

.google-reviews {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #F5F5F7;
    padding: 80px 0;
}

/* --- Header Elements --- */
.google-reviews__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    padding: 24px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 48px;
}

.google-reviews__summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.google-reviews__logo-text {
    font-size: 24px;
    font-weight: 700;
    margin-right: 12px;
}

.google-reviews__color--blue {
    color: #4285F4;
}

.google-reviews__color--red {
    color: #EA4335;
}

.google-reviews__color--yellow {
    color: #FBBC05;
}

.google-reviews__color--green {
    color: #34A853;
}

.google-reviews__score {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.google-reviews__stars {
    color: #FBBC05;
    font-size: 20px;
    display: flex;
    gap: 4px;
}

.google-reviews__count {
    color: #6B7280;
    font-size: 14px;
    margin-left: 8px;
}

.google-reviews__btn {
    background-color: #0F62FE;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.google-reviews__btn:hover {
    background-color: #0050E6;
}

/* --- Interactive Carousel Elements --- */
.google-reviews__carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 64px;
    width: 100%;
    box-sizing: border-box;
}

.google-reviews__viewport {
    overflow: hidden;
    width: 100%;
    padding-bottom: 24px;
    margin-bottom: -24px;
    container-type: inline-size;
}

.google-reviews__track {
    display: flex;
    gap: 24px;
    width: max-content;
    align-items: stretch;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    --card-width: calc((100cqw - 48px) / 3);
    transform: translateX(calc(var(--current-index, 0) * (var(--card-width) + 24px) * -1));
}

/* Navigation Arrows */
.google-reviews__nav-btn {
    position: absolute;
    z-index: 10;
    background-color: #FFFFFF;
    color: #0F62FE;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.google-reviews__nav-btn:hover:not(:disabled) {
    background-color: #F9FAFB;
    transform: scale(1.05);
}

/* Disabled State for Arrows at the start/end of the list */
.google-reviews__nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #F3F4F6;
    color: #9CA3AF;
    border-color: #E5E7EB;
    box-shadow: none;
}

.google-reviews__nav-btn--prev {
    left: 0;
}

.google-reviews__nav-btn--next {
    right: 0;
}

/* --- Review Card Elements --- */
.google-reviews__card {
    display: flex;
    flex-direction: column;
    width: var(--card-width);
    flex-shrink: 0;
}

.google-reviews__bubble {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    margin-bottom: 20px;
    white-space: normal;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

.google-reviews__bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 32px;
    border-width: 12px 12px 0 0;
    border-style: solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.google-reviews__bubble-stars {
    color: #FBBC05;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 2px;
}

.google-reviews__bubble-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
}

.google-reviews__bubble-link {
    color: #0F62FE;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.google-reviews__author {
    margin-left: 32px;
    display: flex;
    flex-direction: column;
}

.google-reviews__author-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.google-reviews__author-name {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
}

.google-reviews__verified-icon {
    color: #0F62FE;
    font-size: 14px;
}

.google-reviews__author-date {
    font-size: 13px;
    color: #6B7280;
}

/* --- Pagination Dots --- */
.google-reviews__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.google-reviews__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #D1D5DB;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.google-reviews__dot--active {
    background-color: #374151;
    transform: scale(1.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .google-reviews__track {
        --card-width: calc((100cqw - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .google-reviews__header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .google-reviews__summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .google-reviews__score,
    .google-reviews__stars {
        margin-left: 0;
    }

    .google-reviews__carousel-wrapper {
        padding: 0 40px;
    }

    .google-reviews__track {
        --card-width: 100cqw;
    }

    .google-reviews__nav-btn {
        width: 36px;
        height: 36px;
    }
}