/* =========================================================
   GOOGLE SPHERE REVIEW
   Safe for the site's old table-based layout.
   IMPORTANT: this carousel does NOT use a long flex strip.
   Only the currently visible cards are displayed.
   ========================================================= */

.google-sphere-review,
.google-sphere-review * {
    box-sizing: border-box;
}

.google-sphere-review {
    display: block;
    clear: both;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 34px 0;
    padding: 0;
    overflow: hidden;
    color: #191919;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}

.google-sphere-review-inner {
    display: block;
    width: 94%;
    max-width: 1220px;
    min-width: 0;
    margin: 0 auto;
    padding: 18px 0 28px 0;
    overflow: hidden;
}

/* ---------- Header ---------- */

.google-sphere-review-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 20px 0;
    gap: 20px;
}

.google-sphere-review-heading-text {
    min-width: 0;
}

.google-sphere-review-title {
    margin: 0 0 8px 0;
    padding: 0;
    color: #191919;
    font-size: 28px;
    font-weight: normal;
    line-height: 1.25;
}

.google-sphere-review-summary {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.google-sphere-review-rating {
    color: #333333;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
}

.google-sphere-review-stars,
.google-sphere-review-card-stars {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 2px;
    line-height: 1;
}

.google-sphere-review-star {
    display: inline-block;
    font-size: 19px;
    line-height: 1;
}

.google-sphere-review-star.is-active {
    color: #f4b400;
}

.google-sphere-review-star.is-inactive {
    color: #cfcfcf;
}

.google-sphere-review-main-link,
.google-sphere-review-source {
    color: #3568a8;
    text-decoration: none;
}

.google-sphere-review-main-link:hover,
.google-sphere-review-source:hover,
.google-sphere-review-main-link:focus,
.google-sphere-review-source:focus {
    text-decoration: underline;
}

.google-sphere-review-main-link {
    flex: 0 0 auto;
    max-width: 100%;
    white-space: nowrap;
    font-size: 14px;
}

/* ---------- Carousel ---------- */

.google-sphere-review-carousel-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 44px;
    overflow: hidden;
}

.google-sphere-review-carousel {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    outline: none;
    touch-action: pan-y;
}

/*
 * This is intentionally a grid, NOT a long flex row.
 * JS shows only the cards that belong to the current page.
 * Therefore it cannot force the parent TABLE to become wider.
 */
.google-sphere-review-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    gap: 16px;
    overflow: hidden;
}


/* JS-controlled responsive mode. This also works on old mobile layouts
 * where the page viewport may report an unexpectedly large width. */
.google-sphere-review.gsr-view-1 .google-sphere-review-track {
    grid-template-columns: minmax(0, 1fr);
}

.google-sphere-review.gsr-view-2 .google-sphere-review-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.google-sphere-review.gsr-view-3 .google-sphere-review-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.google-sphere-review-card {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 245px;
    margin: 0;
    padding: 20px 20px 18px 20px;
    overflow: hidden;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-direction: column;
}

/* No-JS fallback: show first cards only. */
.google-sphere-review-card:nth-child(1),
.google-sphere-review-card:nth-child(2),
.google-sphere-review-card:nth-child(3) {
    display: flex;
}

/* Once JS is ready it controls visibility itself. */
.google-sphere-review.gsr-ready .google-sphere-review-card {
    display: none;
}

.google-sphere-review.gsr-ready .google-sphere-review-card.is-visible {
    display: flex;
    animation: gsr-card-in 260ms ease-out;
}

@keyframes gsr-card-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.google-sphere-review-card-header {
    min-height: 43px;
    margin: 0 0 7px 0;
}

.google-sphere-review-author {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.google-sphere-review-author strong,
.google-sphere-review-author span {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.google-sphere-review-author strong {
    color: #222222;
    font-size: 15px;
    line-height: 1.3;
}

.google-sphere-review-author span {
    margin-top: 4px;
    color: #888888;
    font-size: 12px;
    line-height: 1.3;
}

.google-sphere-review-card-stars {
    margin: 5px 0 12px 0;
}

.google-sphere-review-card-stars .google-sphere-review-star {
    font-size: 18px;
}

.google-sphere-review-text {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 16px 0;
    color: #333333;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.google-sphere-review-source {
    align-self: flex-start;
    max-width: 100%;
    font-size: 12px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ---------- Arrows ---------- */

.google-sphere-review-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 0;
    padding: 0;
    border: 1px solid #dddddd;
    border-radius: 50%;
    background: #ffffff;
    color: #555555;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.google-sphere-review-arrow:hover,
.google-sphere-review-arrow:focus {
    background: #f7f7f7;
}

.google-sphere-review-arrow:disabled {
    color: #bdbdbd;
    cursor: default;
    opacity: 0.5;
}

.google-sphere-review-prev {
    left: 2px;
}

.google-sphere-review-next {
    right: 2px;
}

/* ---------- Dots ---------- */

.google-sphere-review-dots {
    width: 100%;
    min-height: 17px;
    margin: 15px 0 0 0;
    text-align: center;
}

.google-sphere-review-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d6d6d6;
    vertical-align: middle;
    cursor: pointer;
}

.google-sphere-review-dot.is-active {
    width: 10px;
    height: 10px;
    background: #777777;
}

/* =========================================================
   TABLET
   ========================================================= */

@media only screen and (max-width: 900px) {
    .google-sphere-review-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .google-sphere-review-card:nth-child(3) {
        display: none;
    }

    .google-sphere-review.gsr-ready .google-sphere-review-card:nth-child(3) {
        display: none;
    }

    .google-sphere-review.gsr-ready .google-sphere-review-card.is-visible {
        display: flex;
    }
}

/* =========================================================
   PHONE
   ========================================================= */

@media only screen and (max-width: 650px) {
    .google-sphere-review {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 24px 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .google-sphere-review-inner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 16px 10px 26px 10px !important;
        overflow: hidden !important;
    }

    .google-sphere-review-heading {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 18px;
    }

    .google-sphere-review-title {
        margin-bottom: 8px;
        font-size: 23px;
    }

    .google-sphere-review-main-link {
        display: inline-block;
        max-width: 100%;
        margin-top: 11px;
        white-space: normal;
        font-size: 13px;
    }

    .google-sphere-review-carousel-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 36px !important;
        overflow: hidden !important;
    }

    .google-sphere-review-carousel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .google-sphere-review-track {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    .google-sphere-review-card,
    .google-sphere-review-card:nth-child(1),
    .google-sphere-review-card:nth-child(2),
    .google-sphere-review-card:nth-child(3) {
        display: none;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0;
        margin: 0 !important;
        padding: 18px 16px 16px 16px !important;
        overflow: hidden !important;
    }

    /* No-JS fallback on phone: only first card. */
    .google-sphere-review:not(.gsr-ready) .google-sphere-review-card:first-child {
        display: flex;
    }

    .google-sphere-review.gsr-ready .google-sphere-review-card.is-visible {
        display: flex !important;
    }

    .google-sphere-review-card-header {
        min-height: 0;
        margin-bottom: 6px;
    }

    .google-sphere-review-author strong {
        font-size: 16px;
    }

    .google-sphere-review-author span {
        font-size: 12px;
    }

    .google-sphere-review-card-stars {
        margin: 7px 0 11px 0;
    }

    .google-sphere-review-card-stars .google-sphere-review-star {
        font-size: 18px;
    }

    .google-sphere-review-text {
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.5;
    }

    .google-sphere-review-arrow {
        width: 30px;
        height: 30px;
        margin-top: -15px;
        font-size: 17px;
        line-height: 27px;
    }

    .google-sphere-review-prev {
        left: 2px;
    }

    .google-sphere-review-next {
        right: 2px;
    }

    .google-sphere-review-dots {
        margin-top: 13px;
    }
}

@media only screen and (max-width: 380px) {
    .google-sphere-review-inner {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .google-sphere-review-carousel-wrap {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .google-sphere-review-title {
        font-size: 21px;
    }

    .google-sphere-review-card {
        padding: 16px 13px 14px 13px !important;
    }
}

/* Respect reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
    .google-sphere-review.gsr-ready .google-sphere-review-card.is-visible {
        animation: none;
    }
}
