/* =========================================================
   NYMM Google Reviews
   ========================================================= */

.nymm-google-reviews {
    width: 100%;
    box-sizing: border-box;
    padding-inline: 24px;
}


/* =========================================================
   Horizontal Google Reviews Summary
   ========================================================= */

.google-reviews-summary-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    width: 100%;
    max-width: 760px;

    margin: 0 auto 18px;
    padding: 16px 24px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 14px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.035);

    text-align: left;
}

.google-reviews-summary-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin: 0;
    object-fit: contain;
}

.google-reviews-summary-title {
    margin: 0;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;

    color: #202124;
    white-space: nowrap;
}

.google-reviews-summary-rating {
    margin: 0;

    font-size: 30px;
    font-weight: 700;
    line-height: 1;

    color: #111827;
}

.google-reviews-summary-stars {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 1px;
    color: #f9ab00;
    white-space: nowrap;
}

.google-reviews-summary-count {
    margin: 0;
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.6;
    color: #5f6368;
    white-space: nowrap;
}

.nymm-location-reviews-summary {
    margin-bottom: 22px;
}


/* =========================================================
   Shared Review Card
   ========================================================= */

.google-review {
    position: relative;
    min-width: 0;
    box-sizing: border-box;

    padding: 22px 20px 18px;
    overflow: hidden;

    background: #fff;

    border: 1px solid #e3e6ea;
    border-top: 0;
    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.025);
}

.google-review::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #4285f4 0 25%,
        #ea4335 25% 50%,
        #fbbc05 50% 75%,
        #34a853 75% 100%
    );
}


/* =========================================================
   Reviewer Header
   ========================================================= */

.google-review-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-right: 34px;
    margin-bottom: 10px;
}

.google-review-photo {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    border-radius: 50%;
    object-fit: cover;
}

.nymm-google-reviews .google-review-person {
    min-width: 0;
    flex: 1;
}

.nymm-google-reviews .google-review-name {
    display: block;
    margin: 0;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;

    color: #111827;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nymm-google-reviews .google-review-date {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.3;
    color: #777;
    display: block;
}


.nymm-google-reviews .google-review-location {
    color: #5f6368;
    font-weight: 400 !important;
}


/* =========================================================
   Google G Inside Card
   ========================================================= */

.nymm-google-reviews .google-review > .google-review-card-google {
    position: absolute !important;

    top: 22px !important;
    right: 18px !important;
    left: auto !important;

    display: block;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
    margin: 0 !important;

    object-fit: contain;
    z-index: 2;
}


/* =========================================================
   Stars + Blue Badge
   ========================================================= */

.nymm-google-reviews .google-review-stars-row {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 2px 0 10px;
}

.nymm-google-reviews .google-review-stars {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    color: #f9ab00;
}

.nymm-google-reviews .google-review-trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;

    flex: 0 0 16px;
    aspect-ratio: 1 / 1;

    margin-left: 2px;
    margin-top: 4px;

    padding: 0;

    background: #4f83f1;
    color: #fff;

    font-size: 9px;
    font-weight: 700;
    line-height: 1;

    box-sizing: border-box;

    transform: translateY(-1px);

    clip-path: polygon(
        50% 0%,
        61% 8%,
        75% 5%,
        82% 17%,
        95% 20%,
        94% 34%,
        100% 45%,
        91% 55%,
        94% 69%,
        81% 74%,
        76% 88%,
        62% 86%,
        50% 100%,
        39% 89%,
        24% 92%,
        19% 77%,
        5% 73%,
        8% 58%,
        0% 48%,
        9% 37%,
        6% 23%,
        21% 18%,
        25% 5%,
        40% 8%
    );
}


/* =========================================================
   Review Text
   ========================================================= */

.google-review-text {
    margin: 0;
}

.google-review-comment {
    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--nymm-review-lines, 5);

    overflow: hidden;

    font-size: 15px;
    line-height: 1.45;

    color: #111827;
}

.nymm-google-reviews .google-review-comment p {
    margin: 0;
    padding: 0;

    font: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.google-review-rating-only {
    color: #5f6368;
    font-style: italic;
}


/* =========================================================
   Expanded Review Text
   ========================================================= */

.google-review.is-expanded .google-review-comment {
    display: block;
    overflow: visible;
}


/* =========================================================
   Read More
   ========================================================= */

.google-review-more {
    display: inline-block;

    appearance: none;
    -webkit-appearance: none;

    margin: 8px 0 0;
    padding: 0;

    border: 0;
    background: transparent;

    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    color: #5f6368;

    cursor: pointer;
    text-decoration: none;
}

.google-review-more:hover {
    color: #202124;
}

.google-review-more:focus-visible {
    outline: 2px solid #202124;
    outline-offset: 3px;
    border-radius: 2px;
}


/* =========================================================
   SHORT VERSION — Carousel
   ========================================================= */

.nymm-google-reviews--short .google-reviews-carousel {
    position: relative;
    width: 100%;

    /*
     * Confirmed fix for left border clipping.
     */
    padding-left: 6px;

    box-sizing: border-box;
}

.nymm-google-reviews--short .google-reviews {
    display: flex;
    gap: 18px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;

    scrollbar-width: none;
    -ms-overflow-style: none;

    padding: 6px 0 8px;
    margin: 0;

    box-sizing: border-box;

    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.nymm-google-reviews--short .google-reviews::-webkit-scrollbar {
    display: none;
}

.nymm-google-reviews--short .google-review {
    flex: 0 0 calc((100% - 54px) / 4);

    scroll-snap-align: start;
    scroll-snap-stop: always;
}


/*
 * A single filtered review should not remain at the normal
 * four-column desktop width. Give it a comfortable reading width.
 */
.nymm-google-reviews--short .google-review:only-child {
    flex-basis: min(100%, 500px);
    width: min(100%, 500px);
    max-width: 500px;
}


/* =========================================================
   Carousel Arrows — Desktop / Tablet
   ========================================================= */

.google-reviews-arrow {
    position: absolute;

    top: 50%;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid #e3e6ea;
    border-radius: 50%;

    background: #fff;
    color: #202124;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12);

    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.google-reviews-arrow:hover {
    background: #f8f9fa;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.18);
}

.google-reviews-arrow:focus-visible {
    outline: 2px solid #202124;
    outline-offset: 3px;
}

.google-reviews-arrow:active {
    transform:
        translateY(-50%)
        scale(.95);
}

/*
 * Confirmed desktop alignment.
 */
.google-reviews-prev {
    left: -15px;
}

.google-reviews-next {
    right: -19px;
}


/* =========================================================
   Carousel Pagination Dots
   Standard review carousels show the same compact active-pill
   pagination used elsewhere in the plugin.
   ========================================================= */

.nymm-reviews-dots {
    display: none;
}

.nymm-google-reviews--short .nymm-reviews-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 14px;
    padding: 0 8px;
}

.nymm-google-reviews--short .nymm-review-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #d2d6db;

    cursor: pointer;

    transition:
        width .2s ease,
        flex-basis .2s ease,
        background .2s ease;
}

.nymm-google-reviews--short .nymm-review-dot.is-active {
    width: 18px;
    flex-basis: 18px;

    border-radius: 999px;

    background: #5f6368;
}

.nymm-google-reviews--short .nymm-review-dot:focus-visible {
    outline: 2px solid #202124;
    outline-offset: 3px;
}


/* =========================================================
   CARDS VERSION
   ========================================================= */

.nymm-google-reviews--cards .google-reviews {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
    margin: 0;
}

.nymm-google-reviews--cards .google-review {
    height: 100%;
}


.nymm-google-reviews--cards .google-review:only-child {
    width: min(100%, 500px);
    max-width: 500px;
}


/* =========================================================
   Hidden Cards for Load More
   ========================================================= */

.nymm-review-hidden {
    display: none;
}


/* =========================================================
   Load More
   ========================================================= */

.nymm-reviews-load-more-wrap {
    display: flex;
    justify-content: center;

    margin-top: 28px;
}

.nymm-reviews-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 24px;

    border: 1px solid #202124;
    border-radius: 6px;

    background: #fff;
    color: #202124;

    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.nymm-reviews-load-more:hover {
    background: #202124;
    color: #fff;
}

.nymm-reviews-load-more:focus-visible {
    outline: 2px solid #202124;
    outline-offset: 3px;
}

.nymm-google-reviews .google-review-meta {
    margin-top: 3px;
}

.nymm-google-reviews .google-review-date,
.nymm-google-reviews .google-review-location {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif !important;

    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.nymm-google-reviews .google-review-date {
    color: #777 !important;
}

.nymm-google-reviews .google-review-location {
    margin-top: 1px;
    color: #8a8a8a !important;
}


/* =========================================================
   Summary Location Toggle
   ========================================================= */

.nymm-google-reviews .google-reviews-summary-locations-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;

    margin: 0;
    padding: 0;

    color: #5f6368;

    font: inherit;
    font-weight: 400;
    line-height: inherit;

    text-decoration: none;

    cursor: pointer;
    vertical-align: baseline;
}

.nymm-google-reviews .google-reviews-summary-locations-toggle:hover {
    color: #202124;
}

.nymm-google-reviews .google-reviews-summary-locations-toggle:focus-visible {
    outline: 1px dotted #5f6368;
    outline-offset: 2px;
    border-radius: 2px;
}

.nymm-google-reviews .google-reviews-summary-arrow {
    display: inline-block;

    margin-left: 0;

    font-size: 11px;
    line-height: 1;

    text-decoration: none;

    transform: translateY(-1px);
    transition: transform .18s ease;
}

.nymm-google-reviews
.google-reviews-summary-locations-toggle[aria-expanded="true"]
.google-reviews-summary-arrow {
    transform: translateY(-1px) rotate(180deg);
}

.nymm-google-reviews .google-reviews-summary-locations-list {
    display: block;
    margin-top: 4px;

    font-size: 11px;
    line-height: 1.35;
    color: #777;

    letter-spacing: 0.01em;
    white-space: normal;
}

.nymm-google-reviews .google-reviews-summary-locations-list[hidden] {
    display: none;
}

.nymm-google-reviews .google-reviews-summary-locations-list {
    margin-top: 5px;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1200px) {

    .nymm-google-reviews {
        padding-inline: 20px;
    }

    .nymm-google-reviews--short .google-review {
        flex: 0 0 calc((100% - 18px) / 2);
    }

    .nymm-google-reviews--cards .google-reviews {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   Summary — Tablet
   ========================================================= */

@media (max-width: 900px) {

    .google-reviews-summary-card {
        gap: 14px;
        padding: 14px 18px;
    }

    .google-reviews-summary-rating {
        font-size: 26px;
    }

    .google-reviews-summary-title {
        font-size: 16px;
    }

    .google-reviews-summary-stars {
        font-size: 17px;
    }

    .google-reviews-summary-count {
        font-size: 13px;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {

    .nymm-google-reviews {
        padding-inline: 15px;
    }


    /* -----------------------------------------------------
       Mobile Summary
       ----------------------------------------------------- */

    .google-reviews-summary-card {
        display: grid;
    
        grid-template-columns: auto 1fr auto;
    
        grid-template-areas:
            "logo title rating"
            "logo stars stars"
            "logo count count";
    
        column-gap: 12px;
        row-gap: 5px;
    
        padding: 14px 16px;
    
        text-align: left;
    }
    
    .google-reviews-summary-logo {
        grid-area: logo;
    
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    
        align-self: start;
    }
    
    .google-reviews-summary-title {
        grid-area: title;
    
        font-size: 15px;
    
        align-self: center;
    }
    
    .google-reviews-summary-rating {
        grid-area: rating;
    
        font-size: 24px;
    
        align-self: center;
    }
    
    .google-reviews-summary-stars {
        grid-area: stars;
        font-size: 20px;
        margin-top: -2px;
    }
    
    .google-reviews-summary-count {
        grid-area: count;
        font-size: 12px;
        white-space: normal;
        margin-top: -2px;
    }


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

    .nymm-google-reviews--short .google-reviews-carousel {
        padding-left: 6px;
        padding-right: 6px;
    }

    .nymm-google-reviews--short .google-reviews {
        gap: 14px;

        padding: 2px 0 6px;

        scroll-snap-type: x mandatory;
    }

    .nymm-google-reviews--short .google-review {
        flex: 0 0 100%;
    }


    /* -----------------------------------------------------
       Hide arrows on mobile.
       Users swipe instead.
       ----------------------------------------------------- */

    .nymm-google-reviews--short .google-reviews-prev,
    .nymm-google-reviews--short .google-reviews-next {
        display: none;
    }


    /* -----------------------------------------------------
       Mobile Pagination Dots
       ----------------------------------------------------- */

    .nymm-google-reviews--short .nymm-reviews-dots,
    .nymm-location-summary--carousel .nymm-reviews-dots,
    .nymm-location-summary[data-layout="carousel"] .nymm-reviews-dots,
    .nymm-location-summary--grid .nymm-reviews-dots,
    .nymm-location-summary[data-layout="grid"] .nymm-reviews-dots {
        display: flex;

        justify-content: center;
        align-items: center;
        flex-wrap: wrap;

        gap: 7px;

        margin-top: 12px;

        padding: 0 8px;
    }

    .nymm-review-dot {
        width: 7px;
        height: 7px;

        flex: 0 0 7px;

        padding: 0;

        border: 0;
        border-radius: 50%;

        background: #d2d6db;

        cursor: pointer;

        transition:
            width .2s ease,
            flex-basis .2s ease,
            background .2s ease;
    }

    .nymm-review-dot.is-active {
        width: 18px;
        flex-basis: 18px;

        border-radius: 999px;

        background: #5f6368;
    }

    .nymm-review-dot:focus-visible {
        outline: 2px solid #202124;
        outline-offset: 3px;
    }


    /* -----------------------------------------------------
       Mobile Cards
       ----------------------------------------------------- */

    .nymm-google-reviews--cards .google-reviews {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .google-review {
        padding: 16px 18px;
    }

    .nymm-google-reviews .google-review > .google-review-card-google {
        top: 16px !important;
        right: 16px !important;
    }

    .google-review-header {
        padding-right: 32px;
    }

    .google-review-photo {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .google-review-name {
        font-size: 14px;
    }

    .google-review-comment {
        font-size: 14px;
    }
}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .nymm-google-reviews--short .google-reviews {
        scroll-behavior: auto;
    }

    .google-reviews-arrow,
    .nymm-review-dot,
    .nymm-reviews-load-more {
        transition: none;
    }
}

/* =========================================================
   Location Review Summary Widget
   ========================================================= */

.nymm-location-summary {
    position: relative;
    width: 100%;
    margin: 24px 0;
    box-sizing: border-box;
}

.nymm-location-summary-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.nymm-location-summary[data-count="1"] .nymm-location-summary-track {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
}

.nymm-location-summary[data-count="2"] .nymm-location-summary-track {
    grid-template-columns: repeat(2, minmax(0, 520px));
    justify-content: center;
}

.nymm-location-summary[data-count="3"] .nymm-location-summary-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
}

.nymm-location-summary .nymm-location-summary-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #e3e6ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.055);
    box-sizing: border-box;
}

.nymm-location-summary .nymm-location-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #4285f4 0 25%,
        #ea4335 25% 50%,
        #fbbc05 50% 75%,
        #34a853 75% 100%
    );
}

.nymm-location-summary-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 3px 0 18px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.nymm-location-summary .nymm-location-summary-google {
    display: block !important;
    flex: 0 0 22px;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    max-width: 22px;
    margin: 0 !important;
    object-fit: contain;
}

.nymm-location-summary-top {
    display: block;
    margin: 0;
}

.nymm-location-summary .nymm-location-summary-title {
    margin: 0 0 7px !important;
    padding: 0 !important;
    color: #111827 !important;
    font-size: 23px !important;
    font-weight: 750 !important;
    line-height: 1.18 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.nymm-location-summary .nymm-location-summary-address {
    display: block;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    color: #667085 !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.48 !important;
}

.nymm-location-summary-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
}

.nymm-location-summary .nymm-location-summary-rating {
    color: #111827 !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
}

.nymm-location-summary-stars,
.nymm-location-featured-stars {
    color: #f9ab00 !important;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nymm-location-summary-stars {
    font-size: 20px;
    line-height: 1;
}

.nymm-location-summary-count {
    flex-basis: 100%;
    margin-top: 2px;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
}

.nymm-location-summary .nymm-location-summary-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 15px 0 0 !important;
    padding: 10px 16px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #1d4ed8 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.nymm-location-summary .nymm-location-summary-button:hover,
.nymm-location-summary .nymm-location-summary-button:focus {
    border-color: #aab4c3 !important;
    background: #f8fafc !important;
    color: #1e40af !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06) !important;
}

.nymm-location-featured-review {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e9edf2;
}

.nymm-location-featured-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
}

.nymm-location-featured-avatar {
    display: block !important;
    flex: 0 0 38px;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    max-width: 38px;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: cover;
}

.nymm-location-featured-avatar--initial {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #5b6fc7;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.nymm-location-featured-person {
    min-width: 0;
    flex: 1 1 auto;
}

.nymm-location-featured-name {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nymm-location-featured-person time {
    display: block;
    margin-top: 2px;
    color: #8a94a3;
    font-size: 11px;
    line-height: 1.3;
}

.nymm-location-featured-stars {
    flex: 0 0 auto;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.3;
}

.nymm-location-featured-text {
    display: -webkit-box;
    overflow: hidden;
    color: #475467;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--nymm-location-review-lines, 5);
}

.nymm-location-featured-text p {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
}

.nymm-location-featured-more[hidden] {
    display: none !important;
}

.nymm-location-featured-review.is-expanded .nymm-location-featured-text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.nymm-location-review-slider {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.nymm-location-review-track {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.nymm-location-review-slide {
    width: 100%;
}

.nymm-location-review-track {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.nymm-location-review-slide {
    display: none;
    width: 100%;
}

.nymm-location-review-slide.is-active {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

.nymm-location-featured-review {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100%;
}

.nymm-location-featured-more {
    align-self: flex-start;
    margin: 8px 0 0 !important;
}

.nymm-location-review-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.nymm-location-review-prev,
.nymm-location-review-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #d0d5dd !important;
    border-radius: 50%;
    background: #fff !important;
    color: #475467 !important;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
}

.nymm-location-review-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nymm-location-review-dot {
    display: block;
    width: 7px;
    height: 7px;
    min-width: 7px;
    padding: 0;
    border: 0 !important;
    border-radius: 50%;
    background: #d0d5dd !important;
    cursor: pointer;
    box-shadow: none !important;
}

.nymm-location-review-dot.is-active {
    width: 18px;
    border-radius: 999px;
    background: #667085 !important;
}

.nymm-location-summary--carousel,
.nymm-location-summary[data-layout="carousel"] {
    padding: 0;
}

.nymm-location-summary--carousel .nymm-location-summary-track,
.nymm-location-summary[data-layout="carousel"] .nymm-location-summary-track {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 22px;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 6px;
    padding-bottom: 1px;
    padding-right: 11%;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    box-sizing: border-box;
}

.nymm-location-summary--carousel .nymm-location-summary-track::-webkit-scrollbar,
.nymm-location-summary[data-layout="carousel"] .nymm-location-summary-track::-webkit-scrollbar {
    display: none;
}

.nymm-location-summary--carousel .nymm-location-summary-card,
.nymm-location-summary[data-layout="carousel"] .nymm-location-summary-card {
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 250px !important;
    max-width: 300px !important;
    scroll-snap-align: start;
}

.nymm-location-summary-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #d0d5dd;
    border-radius: 50%;
    background: #fff;
    color: #344054;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}



.nymm-location-summary-arrow,
.nymm-location-summary-arrow:hover,
.nymm-location-summary-arrow:focus,
.nymm-location-summary-arrow:active,
.nymm-location-summary-arrow:focus-visible {
    border: 1px solid #d0d5dd !important;
    background: #fff !important;
    color: #344054 !important;
    outline: none !important;
}

.nymm-location-summary-arrow:focus-visible {
    box-shadow:
        0 0 0 3px rgba(66, 133, 244, 0.18),
        0 4px 14px rgba(15, 23, 42, 0.12) !important;
}

.nymm-location-summary-prev {
    left: -19px;
}

.nymm-location-summary-next {
    right: -19px;
}

.nymm-location-summary--grid .nymm-location-summary-arrow,
.nymm-location-summary[data-layout="grid"] .nymm-location-summary-arrow,
.nymm-location-summary--grid .nymm-reviews-dots,
.nymm-location-summary[data-layout="grid"] .nymm-reviews-dots {
    display: none;
}

@media (max-width: 1199px) {
    .nymm-location-summary-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nymm-location-summary[data-count="3"] .nymm-location-summary-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: initial;
    }

    .nymm-location-summary--carousel .nymm-location-summary-card,
    .nymm-location-summary[data-layout="carousel"] .nymm-location-summary-card {
        flex-basis: 300px !important;
        width: 300px !important;
        min-width: 250px !important;
        max-width: 300px !important;
    }
}

@media (max-width: 699px) {
    .nymm-location-summary-track,
    .nymm-location-summary[data-count="1"] .nymm-location-summary-track,
    .nymm-location-summary[data-count="2"] .nymm-location-summary-track {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 22px;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 12%;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        box-sizing: border-box;
    }

    .nymm-location-summary-track::-webkit-scrollbar {
        display: none;
    }

    .nymm-location-summary .nymm-location-summary-card {
        padding: 20px;
    }

    .nymm-location-summary .nymm-location-summary-title {
        font-size: 20px !important;
    }

    .nymm-location-summary .nymm-location-summary-rating {
        font-size: 30px !important;
    }

    .nymm-location-summary--carousel,
    .nymm-location-summary[data-layout="carousel"] {
        padding: 0;
    }

    .nymm-location-summary--carousel .nymm-location-summary-track,
    .nymm-location-summary[data-layout="carousel"] .nymm-location-summary-track {
        padding-top: 6px;
        padding-right: 10%;
    }

    /*
     * Mobile location cards intentionally leave 10% of the next
     * card visible after the 22px gap. This makes horizontal
     * swiping obvious even when pagination dots are below the fold.
     */
    .nymm-location-summary:not([data-count="1"]) .nymm-location-summary-card {
        flex: 0 0 calc(90% - 22px) !important;
        width: calc(90% - 22px) !important;
        min-width: 0 !important;
        max-width: none !important;
        scroll-snap-align: start;
    }

    .nymm-location-summary[data-count="1"] .nymm-location-summary-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        scroll-snap-align: start;
    }

    .nymm-location-summary-arrow {
        display: none;
    }

    .nymm-location-summary--carousel .nymm-reviews-dots,
    .nymm-location-summary[data-layout="carousel"] .nymm-reviews-dots,
    .nymm-location-summary--grid .nymm-reviews-dots,
    .nymm-location-summary[data-layout="grid"] .nymm-reviews-dots {
        display: flex;
        width: 100%;
        flex-basis: 100%;
    }
}

/* =========================================================
   Carousel — No Overflow
   ========================================================= */

.nymm-carousel-no-overflow .nymm-location-summary-arrow,
.nymm-carousel-no-overflow .google-reviews-prev,
.nymm-carousel-no-overflow .google-reviews-next,
.nymm-carousel-no-overflow .nymm-reviews-dots {
    display: none !important;
}

.nymm-location-summary.nymm-carousel-no-overflow .nymm-location-summary-track,
.nymm-google-reviews.nymm-carousel-no-overflow .google-reviews {
    padding-right: 0 !important;
    overflow-x: hidden !important;
    scroll-snap-type: none !important;
}

.nymm-location-summary--carousel.nymm-carousel-no-overflow .nymm-location-summary-track,
.nymm-location-summary[data-layout="carousel"].nymm-carousel-no-overflow .nymm-location-summary-track {
    justify-content: center !important;
}

/*
 * Four desktop location cards form a complete row. Keep that row fluid and
 * non-scrollable in CSS as well as JavaScript so a restored horizontal scroll
 * position or delayed script cannot expose the decorative preview padding.
 */
@media (min-width: 1200px) {
    .nymm-location-summary--carousel[data-count="4"] .nymm-location-summary-track,
    .nymm-location-summary[data-layout="carousel"][data-count="4"] .nymm-location-summary-track {
        justify-content: center !important;
        overflow-x: hidden !important;
        padding-right: 0 !important;
        scroll-snap-type: none !important;
    }

    .nymm-location-summary--carousel[data-count="4"] .nymm-location-summary-card,
    .nymm-location-summary[data-layout="carousel"][data-count="4"] .nymm-location-summary-card {
        flex: 0 0 calc((100% - 66px) / 4) !important;
        width: calc((100% - 66px) / 4) !important;
        min-width: 0 !important;
        max-width: 300px !important;
    }

    .nymm-location-summary--carousel[data-count="4"] > .nymm-location-summary-arrow,
    .nymm-location-summary[data-layout="carousel"][data-count="4"] > .nymm-location-summary-arrow,
    .nymm-location-summary--carousel[data-count="4"] > .nymm-reviews-dots,
    .nymm-location-summary[data-layout="carousel"][data-count="4"] > .nymm-reviews-dots {
        display: none !important;
    }
}

/* =========================================================
   Theme Compatibility — Location Card Headings
   ========================================================= */

.nymm-location-summary h3::before,
.nymm-location-summary h3::after {
    content: none !important;
    display: none !important;
}

/* Keep desktop location ratings aligned despite varying title/address length. */
@media (min-width: 1200px) {
    .nymm-location-summary-top {
        min-height: 108px;
    }
}


/* =========================================================
   Location Review Slider — Pin Navigation to Card Bottom
   ========================================================= */

.nymm-location-summary-card--review-slider {
    padding-bottom: 24px !important;
}

.nymm-location-summary-card--review-slider .nymm-location-review-nav {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2;
    margin-top: auto !important;
    padding-top: 18px !important;
}

@media (max-width: 699px) {
    .nymm-location-summary-card--review-slider {
        padding-bottom: 20px !important;
    }

    .nymm-location-summary-card--review-slider .nymm-location-review-nav {
        padding-top: 16px !important;
    }
}

/* =========================================================
   Location Widget — Theme-Safe Typography
   ========================================================= */

.nymm-location-summary,
.nymm-location-summary button,
.nymm-location-summary a,
.nymm-location-summary address,
.nymm-location-summary time,
.nymm-location-summary h3,
.nymm-location-summary p,
.nymm-location-summary span,
.nymm-location-summary div {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif !important;
}

.nymm-location-summary-brand {
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.nymm-location-summary .nymm-location-summary-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.nymm-location-summary .nymm-location-summary-address,
.nymm-location-summary-count,
.nymm-location-featured-person time,
.nymm-location-featured-text,
.nymm-location-featured-text p {
    font-weight: 400 !important;
}

.nymm-location-summary-count {
    line-height: 1.4 !important;
}

.nymm-location-featured-name {
    font-weight: 700 !important;
}

.nymm-location-featured-text {
    line-height: 1.5 !important;
}

.nymm-location-featured-more {
    color: #667085 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.nymm-location-review-prev,
.nymm-location-review-next,
.nymm-location-review-dot {
    margin: 0 !important;
    text-transform: none !important;
}

.nymm-location-review-prev::before,
.nymm-location-review-prev::after,
.nymm-location-review-next::before,
.nymm-location-review-next::after,
.nymm-location-review-dot::before,
.nymm-location-review-dot::after {
    content: none !important;
    display: none !important;
}

/* =========================================================
   Location Widget — Typography Isolation
   ========================================================= */

.nymm-location-summary .nymm-location-summary-brand,
.nymm-location-summary .nymm-location-summary-title,
.nymm-location-summary .nymm-location-summary-address,
.nymm-location-summary .nymm-location-summary-rating,
.nymm-location-summary .nymm-location-summary-stars,
.nymm-location-summary .nymm-location-summary-count,
.nymm-location-summary .nymm-location-summary-button,
.nymm-location-summary .nymm-location-featured-name,
.nymm-location-summary .nymm-location-featured-person time,
.nymm-location-summary .nymm-location-featured-stars,
.nymm-location-summary .nymm-location-featured-text,
.nymm-location-summary .nymm-location-featured-text p,
.nymm-location-summary .nymm-location-featured-more,
.nymm-location-summary .nymm-location-review-prev,
.nymm-location-summary .nymm-location-review-next {
    text-transform: none !important;
    letter-spacing: normal !important;
}

.nymm-location-summary .nymm-location-featured-text,
.nymm-location-summary .nymm-location-featured-text p,
.nymm-location-summary .nymm-location-summary-address,
.nymm-location-summary .nymm-location-summary-count,
.nymm-location-summary .nymm-location-featured-person time {
    font-style: normal !important;
    font-weight: 400 !important;
}

.nymm-location-summary .nymm-location-summary-brand {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.nymm-location-summary .nymm-location-featured-name {
    font-size: 13px !important;
    font-weight: 700 !important;
}

.nymm-location-summary .nymm-location-summary-button {
    font-size: 14px !important;
    font-weight: 700 !important;
}

.nymm-location-summary .nymm-location-featured-more {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* =========================================================
   Google Reviews Summary — Typography Isolation
   ========================================================= */

.google-reviews-summary-card,
.google-reviews-summary-card *,
.google-reviews-summary-card button,
.google-reviews-summary-card a {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif !important;
    text-transform: none !important;
}

.google-reviews-summary-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}

.google-reviews-summary-rating {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
}

.google-reviews-summary-stars {
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 1px !important;
}

.google-reviews-summary-count,
.google-reviews-summary-locations-toggle,
.google-reviews-summary-locations-list {
    font-style: normal !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}

/* =========================================================
   Location Widget — UI/UX Polish v10.2
   ========================================================= */

.nymm-location-summary .nymm-location-summary-card {
    padding: 22px !important;
}

.nymm-location-summary-brand {
    margin-bottom: 14px !important;
}

.nymm-location-summary .nymm-location-summary-title {
    margin-bottom: 6px !important;
}

.nymm-location-summary-rating-row {
    gap: 5px 8px !important;
    margin-top: 14px !important;
}

.nymm-location-summary-count {
    margin-top: 0 !important;
}

.nymm-location-summary .nymm-location-summary-button {
    min-height: 40px !important;
    margin-top: 12px !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
}

.nymm-location-featured-review {
    margin-top: 16px !important;
    padding-top: 15px !important;
}

.nymm-location-featured-header {
    gap: 9px !important;
    margin-bottom: 9px !important;
}

.nymm-location-featured-stars {
    margin-top: 1px !important;
}

.nymm-location-featured-text {
    min-height: calc(1.5em * 4);
}

.nymm-location-featured-more {
    margin-top: 6px !important;
}

.nymm-location-summary-card--review-slider {
    padding-bottom: 66px !important;
}

.nymm-location-summary-card--review-slider .nymm-location-review-nav {
    right: 22px !important;
    bottom: 20px !important;
    left: 22px !important;
}

.nymm-location-review-nav {
    padding-top: 10px !important;
}

@media (max-width: 699px) {

    .nymm-location-summary .nymm-location-summary-card {
        padding: 18px !important;
    }

    .nymm-location-summary-card--review-slider {
        padding-bottom: 62px !important;
    }

    .nymm-location-summary-card--review-slider .nymm-location-review-nav {
        right: 18px !important;
        bottom: 18px !important;
        left: 18px !important;
    }

    .nymm-location-summary .nymm-location-summary-button {
        min-height: 40px !important;
    }
}

/* =========================================================
   Location Widget — Bottom Spacing / Read More v10.3
   ========================================================= */

.nymm-location-summary-card--review-slider {
    padding-bottom: 78px !important;
}

.nymm-location-summary-card--review-slider .nymm-location-review-nav {
    bottom: 20px !important;
}

.nymm-location-featured-review {
    padding-bottom: 8px;
}

.nymm-location-featured-more {
    display: inline-block;
    margin: 10px 0 6px !important;
}

.nymm-location-review-slide.is-active {
    padding-bottom: 6px;
}

@media (max-width: 699px) {

    .nymm-location-summary-card--review-slider {
        padding-bottom: 74px !important;
    }

    .nymm-location-summary-card--review-slider .nymm-location-review-nav {
        bottom: 18px !important;
    }

    .nymm-location-featured-more {
        margin-bottom: 8px !important;
    }
}

/* =========================================================
   Location Widget — Balanced Spacing v10.4
   ========================================================= */

.nymm-location-summary .nymm-location-summary-card {
    padding: 24px !important;
}

.nymm-location-summary-brand {
    margin-bottom: 16px !important;
}

.nymm-location-summary .nymm-location-summary-title {
    margin-bottom: 7px !important;
}

.nymm-location-summary-rating-row {
    gap: 6px 9px !important;
    margin-top: 16px !important;
}

.nymm-location-summary-count {
    margin-top: 1px !important;
}

.nymm-location-summary .nymm-location-summary-button {
    min-height: 42px !important;
    margin-top: 14px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
}

.nymm-location-featured-review {
    margin-top: 18px !important;
    padding-top: 17px !important;
    padding-bottom: 8px !important;
}

.nymm-location-featured-header {
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.nymm-location-featured-text {
    min-height: calc(1.5em * 4);
}

.nymm-location-featured-more {
    margin: 10px 0 8px !important;
}

.nymm-location-summary-card--review-slider {
    padding-bottom: 78px !important;
}

.nymm-location-summary-card--review-slider .nymm-location-review-nav {
    right: 24px !important;
    bottom: 20px !important;
    left: 24px !important;
}

@media (max-width: 699px) {

    .nymm-location-summary .nymm-location-summary-card {
        padding: 20px !important;
    }

    .nymm-location-summary-brand {
        margin-bottom: 15px !important;
    }

    .nymm-location-summary-rating-row {
        margin-top: 15px !important;
    }

    .nymm-location-summary .nymm-location-summary-button {
        min-height: 42px !important;
        margin-top: 13px !important;
    }

    .nymm-location-featured-review {
        margin-top: 17px !important;
        padding-top: 16px !important;
    }

    .nymm-location-summary-card--review-slider {
        padding-bottom: 74px !important;
    }

    .nymm-location-summary-card--review-slider .nymm-location-review-nav {
        right: 20px !important;
        bottom: 18px !important;
        left: 20px !important;
    }
}

/* =========================================================
   Location Widget — Read More / Slider Clearance v10.5
   ========================================================= */

.nymm-location-summary-card--review-slider {
    padding-bottom: 86px !important;
}

.nymm-location-featured-more {
    margin: 10px 0 16px !important;
}

.nymm-location-review-slide.is-active {
    padding-bottom: 8px;
}

.nymm-location-summary-card--review-slider .nymm-location-review-nav {
    bottom: 20px !important;
}

@media (max-width: 699px) {

    .nymm-location-summary-card--review-slider {
        padding-bottom: 82px !important;
    }

    .nymm-location-featured-more {
        margin-bottom: 14px !important;
    }

    .nymm-location-review-slide.is-active {
        padding-bottom: 6px;
    }
}

/* =========================================================
   Authorization Message
   ========================================================= */

.nymm-google-reviews-auth-message {
    box-sizing: border-box;
    max-width: 720px;
    margin: 12px auto;
    padding: 14px 16px;

    border: 1px solid #d9dde3;
    border-radius: 8px;

    background: #fff;

    color: #4b5563 !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-align: center !important;
    text-transform: none !important;
}



/* Standard review card — narrower avatar/header */
@media (min-width: 768px) and (max-width: 1320px) {
    .nymm-google-reviews .google-review-avatar {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
    }

    .nymm-google-reviews .google-review-header {
        align-items: flex-start !important;
        min-height: 38px;
    }

    .nymm-google-reviews .google-review-person {
        min-width: 0;
    }

    .nymm-google-reviews .google-review-name {
        max-width: none !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}

/* Aggregate Google Reviews summary card height */
.nymm-google-reviews-summary {
    min-height: 68px !important;
    height: 68px !important;
    box-sizing: border-box;
}

/* Correct standard review avatar selector */
.nymm-google-reviews .google-review-photo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
}

/* Correct aggregate summary selector */
.nymm-google-reviews .google-reviews-summary-card {
    height: 68px !important;
    min-height: 68px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Standard review card — top-align reviewer avatar/header */
.nymm-google-reviews .google-review-header {
    align-items: flex-start !important;
}

.nymm-google-reviews .google-review-photo {
    align-self: flex-start !important;
}

/* Standard review card — neutralize theme margin on reviewer avatar */
.nymm-google-reviews .google-review-photo {
    align-self: flex-start !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Aggregate summary — linked location dropdown */
.nymm-google-reviews .google-reviews-summary-locations-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 14px;
    width: min(620px, 100%);
    max-width: 620px;
    margin-top: 7px;
}

.nymm-google-reviews .google-reviews-summary-locations-list[hidden] {
    display: none;
}

.nymm-google-reviews .google-reviews-summary-location-link,
.nymm-google-reviews .google-reviews-summary-location-text {
    min-width: 0;
    color: inherit !important;
    font: inherit !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.nymm-google-reviews .google-reviews-summary-location-link:hover,
.nymm-google-reviews .google-reviews-summary-location-link:focus-visible {
    color: #202124 !important;
    text-decoration: underline !important;
}

@media (max-width: 900px) {
    .nymm-google-reviews .google-reviews-summary-locations-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(460px, 100%);
    }
}

@media (max-width: 560px) {
    .nymm-google-reviews .google-reviews-summary-locations-list {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* Aggregate summary — stable dropdown UX */
.nymm-google-reviews .google-reviews-summary-card {
    overflow: visible !important;
}

.nymm-google-reviews .google-reviews-summary-count {
    position: relative;
    z-index: 20;
}

.nymm-google-reviews .google-reviews-summary-locations-list {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;

    width: min(620px, 82vw);
    max-width: 620px;
    margin-top: 0 !important;
    padding: 12px 14px;

    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.12);

    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;

    transition:
        opacity 160ms ease,
        transform 160ms ease;

    z-index: 30;
}

.nymm-google-reviews .google-reviews-summary-locations-list.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nymm-google-reviews .google-reviews-summary-locations-list[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .nymm-google-reviews .google-reviews-summary-locations-list {
        right: auto;
        left: 0;
        width: min(460px, 84vw);
    }
}

@media (max-width: 560px) {
    .nymm-google-reviews .google-reviews-summary-locations-list {
        left: 50%;
        right: auto;
        width: min(92vw, 360px);
        transform: translate(-50%, -4px);
    }

    .nymm-google-reviews .google-reviews-summary-locations-list.is-open {
        transform: translate(-50%, 0);
    }
}

/* Mobile aggregate summary — allow wrapped content to breathe */
@media (max-width: 700px) {
    .nymm-google-reviews .google-reviews-summary-card {
        height: auto !important;
        min-height: 86px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* Aggregate summary — refined location dropdown UI */
.nymm-google-reviews .google-reviews-summary-locations-list {
    gap: 7px 10px !important;
    padding: 14px !important;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        ) !important;

    border: 1px solid #dfe3e8 !important;
    border-radius: 12px !important;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.12),
        0 2px 8px rgba(15, 23, 42, 0.05) !important;

    font-size: 12px !important;
    line-height: 1.35 !important;
}

.nymm-google-reviews .google-reviews-summary-location-link,
.nymm-google-reviews .google-reviews-summary-location-text {
    display: flex !important;
    align-items: center !important;

    min-height: 34px;
    padding: 7px 9px !important;

    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #edf0f3;
    border-radius: 8px;

    color: #5f6368 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;

    transition:
        background 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease,
        color 140ms ease,
        transform 140ms ease;
}

.nymm-google-reviews .google-reviews-summary-location-link:hover,
.nymm-google-reviews .google-reviews-summary-location-link:focus-visible {
    background: #fff !important;
    border-color: #d7dce2 !important;

    color: #202124 !important;

    box-shadow:
        0 3px 10px rgba(15, 23, 42, 0.08);

    text-decoration: none !important;
    transform: translateY(-1px);
}

.nymm-google-reviews .google-reviews-summary-location-link:focus-visible {
    outline: 2px solid rgba(66, 133, 244, 0.28) !important;
    outline-offset: 1px;
}

@media (max-width: 560px) {
    .nymm-google-reviews .google-reviews-summary-locations-list {
        padding: 12px !important;
    }

    .nymm-google-reviews .google-reviews-summary-location-link,
    .nymm-google-reviews .google-reviews-summary-location-text {
        min-height: 36px;
        padding: 8px 10px !important;
    }
}

/* Aggregate summary — cleaner location dropdown */
.nymm-google-reviews .google-reviews-summary-locations-list {
    gap: 3px 18px !important;
    padding: 12px 14px !important;

    background: #fff !important;
    border: 1px solid #e3e6ea !important;
    border-radius: 10px !important;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.11) !important;

    font-size: 12px !important;
}

.nymm-google-reviews .google-reviews-summary-location-link,
.nymm-google-reviews .google-reviews-summary-location-text {
    display: flex !important;
    align-items: center !important;

    min-height: 28px;
    padding: 4px 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: #5f6368 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;

    transform: none !important;
}

.nymm-google-reviews .google-reviews-summary-location-link {
    cursor: pointer;
}

.nymm-google-reviews .google-reviews-summary-location-link:hover,
.nymm-google-reviews .google-reviews-summary-location-link:focus-visible {
    color: #202124 !important;
    text-decoration: underline !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.nymm-google-reviews .google-reviews-summary-location-link:focus-visible {
    outline: 1px dotted #5f6368 !important;
    outline-offset: 2px;
}

@media (max-width: 560px) {
    .nymm-google-reviews .google-reviews-summary-locations-list {
        gap: 2px !important;
        padding: 10px 12px !important;
    }

    .nymm-google-reviews .google-reviews-summary-location-link,
    .nymm-google-reviews .google-reviews-summary-location-text {
        min-height: 30px;
        padding: 5px 0 !important;
    }
}

/* Mobile summary location dropdown — more compact vertical rhythm */
@media (max-width: 560px) {
    .nymm-google-reviews .google-reviews-summary-locations-list {
        gap: 0 !important;
        padding: 7px 12px !important;
    }

    .nymm-google-reviews .google-reviews-summary-location-link,
    .nymm-google-reviews .google-reviews-summary-location-text {
        min-height: 24px !important;
        padding: 3px 0 !important;
        line-height: 1.2 !important;
    }
}

/* Standard reviews carousel — enhanced bottom navigation */
.nymm-google-reviews--short .nymm-reviews-dots {
    flex-wrap: nowrap !important;
    gap: 7px !important;
}

.nymm-google-reviews--short .nymm-review-dot-list {
    display: contents;
}

.nymm-google-reviews--short .nymm-review-dot.is-neighbor:not(.is-active) {
    width: 9px;
    height: 9px;
    flex-basis: 9px;
    background: #b8bdc4;
}

.nymm-google-reviews--short .nymm-reviews-bottom-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;
    flex: 0 0 20px;

    margin: 0;
    padding: 0;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #5f6368 !important;
    font-family: Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer;

    transition:
        color 140ms ease,
        transform 140ms ease;
}

.nymm-google-reviews--short .nymm-reviews-bottom-arrow:hover,
.nymm-google-reviews--short .nymm-reviews-bottom-arrow:focus-visible {
    color: #202124 !important;
    transform: scale(1.08);
}

.nymm-google-reviews--short .nymm-reviews-bottom-arrow:focus-visible {
    outline: 1px dotted #5f6368 !important;
    outline-offset: 2px;
}

/* Keep the primary side arrows available on mobile as well. */
@media (max-width: 700px) {
    .nymm-google-reviews--short .google-reviews-prev,
    .nymm-google-reviews--short .google-reviews-next {
        display: flex !important;
    }

    .nymm-google-reviews--short .google-reviews-prev {
        left: -10px;
    }

    .nymm-google-reviews--short .google-reviews-next {
        right: -10px;
    }

    .nymm-google-reviews--short .nymm-reviews-dots {
        gap: 5px !important;
        padding: 0 4px !important;
    }

    .nymm-google-reviews--short .nymm-review-dot {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
    }

    .nymm-google-reviews--short .nymm-review-dot.is-neighbor:not(.is-active) {
        width: 8px;
        height: 8px;
        flex-basis: 8px;
    }

    .nymm-google-reviews--short .nymm-review-dot.is-active {
        width: 22px;
        flex-basis: 22px;
    }

    .nymm-google-reviews--short .nymm-reviews-bottom-arrow {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        font-size: 20px !important;
    }
}

/* Standard reviews carousel — refined dot hierarchy and larger bottom arrows */
.nymm-google-reviews--short .nymm-reviews-dots {
    gap: 5px !important;
}

.nymm-google-reviews--short .nymm-review-dot {
    width: 6px !important;
    height: 6px !important;
    flex: 0 0 6px !important;
}

.nymm-google-reviews--short .nymm-review-dot.is-neighbor:not(.is-active) {
    width: 8px !important;
    height: 8px !important;
    flex: 0 0 8px !important;
}

.nymm-google-reviews--short .nymm-review-dot.is-active {
    width: 24px !important;
    height: 8px !important;
    flex: 0 0 24px !important;
    border-radius: 999px !important;
}

.nymm-google-reviews--short .nymm-reviews-bottom-arrow {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;

    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

@media (max-width: 700px) {
    .nymm-google-reviews--short .nymm-reviews-dots {
        gap: 4px !important;
        padding: 0 3px !important;
    }

    .nymm-google-reviews--short .nymm-review-dot {
        width: 5px !important;
        height: 5px !important;
        flex: 0 0 5px !important;
    }

    .nymm-google-reviews--short .nymm-review-dot.is-neighbor:not(.is-active) {
        width: 8px !important;
        height: 8px !important;
        flex: 0 0 8px !important;
    }

    .nymm-google-reviews--short .nymm-review-dot.is-active {
        width: 24px !important;
        height: 8px !important;
        flex: 0 0 24px !important;
    }

    .nymm-google-reviews--short .nymm-reviews-bottom-arrow {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;

        font-size: 26px !important;
    }
}

/* Standard reviews carousel — centered CSS chevrons for bottom navigation */
.nymm-google-reviews--short .nymm-reviews-bottom-arrow {
    position: relative !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #5f6368 !important;

    font-size: 0 !important;
    line-height: 1 !important;

    vertical-align: middle !important;
    top: 0 !important;
    transform: none !important;
}

.nymm-google-reviews--short .nymm-reviews-bottom-arrow::before {
    content: "";

    display: block;

    width: 9px;
    height: 9px;

    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;

    box-sizing: border-box;
}

.nymm-google-reviews--short .nymm-reviews-bottom-prev::before {
    transform: rotate(-135deg);
}

.nymm-google-reviews--short .nymm-reviews-bottom-next::before {
    transform: rotate(45deg);
}

.nymm-google-reviews--short .nymm-reviews-bottom-arrow:hover,
.nymm-google-reviews--short .nymm-reviews-bottom-arrow:focus-visible {
    color: #202124 !important;
    transform: none !important;
}

.nymm-google-reviews--short .nymm-reviews-dots {
    align-items: center !important;
}

@media (max-width: 700px) {
    .nymm-google-reviews--short .nymm-reviews-bottom-arrow {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    .nymm-google-reviews--short .nymm-reviews-bottom-arrow::before {
        width: 8px;
        height: 8px;
        border-top-width: 2px;
        border-right-width: 2px;
    }
}

/* Location card inner reviews — slow visible scroll only */
.nymm-location-review-slider--multiple .nymm-location-review-track {
    overflow: hidden !important;
}

.nymm-location-review-slider--multiple .nymm-location-review-track.is-nymm-review-scrolling {
    position: relative !important;
    isolation: isolate;
    background: #fff;
}

.nymm-location-review-slider--multiple .nymm-location-review-slide.is-nymm-animating {
    flex-direction: column !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    transform: translateX(0);
    will-change: transform;
    overflow: hidden;
    contain: paint;
    background: #fff;
}

/* Review interaction polish */
.nymm-google-reviews .google-review,
.nymm-location-summary .nymm-location-summary-card {
    transition:
        transform 420ms cubic-bezier(.22, .61, .36, 1),
        box-shadow 420ms ease !important;
    will-change: transform;
}

.nymm-google-reviews .google-review:hover,
.nymm-location-summary .nymm-location-summary-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.09) !important;
}

.nymm-google-reviews .google-review-more,
.nymm-location-summary .nymm-location-featured-more {
    transition:
        color 250ms ease,
        opacity 250ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .nymm-google-reviews .google-review,
    .nymm-location-summary .nymm-location-summary-card {
        transition: none !important;
        transform: none !important;
    }
}

/* Location widget aggregate summary — linked GMB dropdown */
.nymm-location-reviews-summary {
    overflow: visible !important;
}

.nymm-location-reviews-summary .google-reviews-summary-count {
    position: relative;
    z-index: 20;
}

.nymm-location-reviews-summary .google-reviews-summary-locations-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;

    margin: 0;
    padding: 0;

    color: #5f6368;

    font: inherit;
    font-weight: 400;
    line-height: inherit;

    cursor: pointer;
    vertical-align: baseline;
}

.nymm-location-reviews-summary .google-reviews-summary-locations-toggle:hover {
    color: #202124;
}

.nymm-location-reviews-summary .google-reviews-summary-locations-toggle:focus-visible {
    outline: 1px dotted #5f6368;
    outline-offset: 2px;
    border-radius: 2px;
}

.nymm-location-reviews-summary .google-reviews-summary-arrow {
    display: inline-block;

    margin-left: 0;

    font-size: 11px;
    line-height: 1;

    transform: translateY(-1px);
    transition: transform 180ms ease;
}

.nymm-location-reviews-summary
.google-reviews-summary-locations-toggle[aria-expanded="true"]
.google-reviews-summary-arrow {
    transform: translateY(-1px) rotate(180deg);
}

.nymm-location-reviews-summary .google-reviews-summary-locations-list {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 3px 18px;

    width: min(620px, 82vw);
    max-width: 620px;
    margin-top: 0 !important;
    padding: 12px 14px !important;

    background: #fff !important;
    border: 1px solid #e3e6ea !important;
    border-radius: 10px !important;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.11) !important;

    font-size: 12px !important;
    line-height: 1.35 !important;

    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;

    transition:
        opacity 160ms ease,
        transform 160ms ease;

    z-index: 30;
}

.nymm-location-reviews-summary .google-reviews-summary-locations-list.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nymm-location-reviews-summary .google-reviews-summary-locations-list[hidden] {
    display: none !important;
}

.nymm-location-reviews-summary .google-reviews-summary-location-link,
.nymm-location-reviews-summary .google-reviews-summary-location-text {
    display: flex !important;
    align-items: center !important;

    min-height: 28px;
    padding: 4px 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: #5f6368 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;

    text-decoration: none !important;
}

.nymm-location-reviews-summary .google-reviews-summary-location-link:hover,
.nymm-location-reviews-summary .google-reviews-summary-location-link:focus-visible {
    color: #202124 !important;
    text-decoration: underline !important;
}

@media (max-width: 900px) {
    .nymm-location-reviews-summary .google-reviews-summary-locations-list {
        right: auto;
        left: 0;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: min(460px, 84vw);
    }
}

@media (max-width: 560px) {
    .nymm-location-reviews-summary .google-reviews-summary-locations-list {
        left: 50%;
        right: auto;

        grid-template-columns: 1fr;
        gap: 0;

        width: min(92vw, 360px);
        padding: 7px 12px !important;

        transform:
            translate(-50%, -4px);
    }

    .nymm-location-reviews-summary .google-reviews-summary-locations-list.is-open {
        transform:
            translate(-50%, 0);
    }

    .nymm-location-reviews-summary .google-reviews-summary-location-link,
    .nymm-location-reviews-summary .google-reviews-summary-location-text {
        min-height: 24px;
        padding: 3px 0 !important;
        line-height: 1.2 !important;
    }
}

/* Theme compatibility — keep reviewer metadata left-aligned */
.nymm-google-reviews .google-review-header,
.nymm-google-reviews .google-review-person,
.nymm-google-reviews .google-review-name,
.nymm-google-reviews .google-review-date,
.nymm-google-reviews .google-review-location {
    text-align: left !important;
}

.nymm-google-reviews .google-review-person {
    align-items: flex-start !important;
}

.nymm-google-reviews .google-review-name,
.nymm-google-reviews .google-review-date,
.nymm-google-reviews .google-review-location {
    justify-content: flex-start !important;
}

/* Theme compatibility — keep review body text left-aligned */
.nymm-google-reviews .google-review-text,
.nymm-google-reviews .google-review-comment,
.nymm-google-reviews .google-review-comment p,
.nymm-google-reviews .google-review-rating-only {
    text-align: left !important;
}

.nymm-google-reviews .google-review-comment,
.nymm-google-reviews .google-review-comment p {
    justify-content: flex-start !important;
}

/* Truncated review cue — subtle fade before Read more */
.nymm-google-reviews .google-review-comment.is-truncated,
.nymm-location-summary .nymm-location-featured-text.is-truncated {
    position: relative;
}

.nymm-google-reviews .google-review-comment.is-truncated::after,
.nymm-location-summary .nymm-location-featured-text.is-truncated::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 24px;

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, .92)
    );

    pointer-events: none;
}

.nymm-google-reviews .google-review.is-expanded
.google-review-comment.is-truncated::after,
.nymm-location-summary .nymm-location-featured-review.is-expanded
.nymm-location-featured-text.is-truncated::after {
    display: none;
}

/* =========================================================
   Accessible Carousel Touch Targets
   Keep compact visual indicators inside larger buttons.
   ========================================================= */

@media (max-width: 700px) {

    .nymm-google-reviews--short .nymm-reviews-dots,
    .nymm-location-summary .nymm-reviews-dots {
        gap: 0 !important;
        min-height: 48px;
    }

    .nymm-google-reviews--short .nymm-review-dot-list {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: clamp(2px, 1vw, 4px);
        min-width: 0;
    }

    .nymm-location-summary .nymm-review-dot {
        position: relative;

        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        flex: 0 0 48px !important;

        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nymm-google-reviews--short .nymm-review-dot {
        position: relative;

        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        width: 20px !important;
        height: 24px !important;
        min-width: 20px !important;
        min-height: 24px !important;
        flex: 0 0 20px !important;

        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nymm-google-reviews--short .nymm-review-dot::before,
    .nymm-location-summary .nymm-review-dot::before {
        content: "" !important;

        display: block !important;

        width: 5px;
        height: 5px;

        border-radius: 50%;
        background: #d2d6db;

        transition:
            width .2s ease,
            height .2s ease,
            border-radius .2s ease,
            background .2s ease;
    }

    .nymm-location-summary
    .nymm-review-dot:not(.is-active):not(.is-neighbor) {
        display: none !important;
    }

    .nymm-google-reviews--short
    .nymm-review-dot.is-neighbor:not(.is-active)::before,
    .nymm-location-summary
    .nymm-review-dot.is-neighbor:not(.is-active)::before {
        width: 8px;
        height: 8px;
        background: #b8bdc4;
    }

    .nymm-google-reviews--short .nymm-review-dot.is-active::before,
    .nymm-location-summary .nymm-review-dot.is-active::before {
        width: 24px;
        height: 8px;
        border-radius: 999px;
        background: #5f6368;
    }

    .nymm-google-reviews--short .nymm-reviews-bottom-arrow {
        width: 24px !important;
        height: 48px !important;
        min-width: 24px !important;
        min-height: 48px !important;
        flex: 0 0 24px !important;
    }

    .nymm-location-summary .nymm-location-review-prev,
    .nymm-location-summary .nymm-location-review-next {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        flex: 0 0 48px !important;
    }

    .nymm-location-summary .nymm-location-review-dots {
        gap: 0;
    }

    .nymm-location-summary .nymm-location-review-dot {
        position: relative;

        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        flex: 0 0 48px !important;

        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nymm-location-summary .nymm-location-review-dot::before {
        content: "" !important;

        position: static !important;

        display: block !important;

        width: 7px;
        height: 7px;

        border-radius: 50%;
        background: #d0d5dd;
    }

    .nymm-location-summary
    .nymm-location-review-dot.is-active::before {
        width: 18px;
        height: 7px;
        border-radius: 999px;
        background: #667085;
    }
}

/* The card-side arrows remain available on the narrowest phones. */
@media (max-width: 350px) {
    .nymm-google-reviews--short .nymm-reviews-bottom-arrow {
        display: none !important;
    }
}

/* =========================================================
   Scalable Compact Review Navigation
   Keep a five-dot moving window, count and arrows balanced.
   ========================================================= */

.nymm-google-reviews--short .nymm-reviews-dots {
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
}

.nymm-google-reviews--short .nymm-review-dot-list {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    min-width: 0;
}

.nymm-google-reviews--short
.nymm-review-dot:not(.is-window-visible) {
    display: none !important;
}

.nymm-google-reviews--short .nymm-review-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    min-width: 38px;
    margin: 0 !important;
    padding: 0 3px;

    color: #7a8088;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .nymm-google-reviews--short .nymm-reviews-dots {
        column-gap: 10px !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
    }

    .nymm-google-reviews--short .nymm-review-dot-list {
        flex: 0 0 auto !important;
        gap: 4px !important;
    }

    .nymm-google-reviews--short .nymm-review-dot {
        width: 24px !important;
        height: 48px !important;
        min-width: 24px !important;
        min-height: 48px !important;
        flex: 0 0 24px !important;
        margin: 0 !important;
    }

    .nymm-google-reviews--short .nymm-reviews-bottom-arrow {
        display: inline-flex !important;
        width: 32px !important;
        height: 48px !important;
        min-width: 32px !important;
        min-height: 48px !important;
        flex: 0 0 32px !important;
        margin: 0 !important;
    }

    .nymm-google-reviews--short .nymm-review-position {
        min-width: 36px;
        height: 48px;
        padding: 0 2px;
    }
}

/* The compact layout fits narrow phones without removing navigation. */
@media (max-width: 350px) {
    .nymm-google-reviews--short .nymm-reviews-bottom-arrow {
        display: inline-flex !important;
    }
}

/* Configurable emphasis inside safely escaped review text. */
.nymm-google-reviews .nymm-review-keyword,
.nymm-location-summary .nymm-review-keyword {
    font-weight: 700;
}

/*
 * Desktop summary logo alignment isolation.
 * Some client themes apply float, position or self-alignment rules to images.
 */
@media (min-width: 701px) {
    .nymm-google-reviews .google-reviews-summary-card,
    .google-reviews-summary-card.nymm-location-reviews-summary {
        display: flex !important;
        align-items: center !important;
    }

    .nymm-google-reviews
    .google-reviews-summary-card
    > img.google-reviews-summary-logo,
    .google-reviews-summary-card.nymm-location-reviews-summary
    > img.google-reviews-summary-logo {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: block !important;
        float: none !important;
        align-self: center !important;

        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        flex: 0 0 34px !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: center !important;
        vertical-align: middle !important;
        transform: none !important;
    }
}

/* =========================================================
   Desktop Grid -> Mobile Review Slider
   Keep the multi-column grid above 700px and restore the
   established swipe, arrow and compact-dot experience below it.
   ========================================================= */

.nymm-google-reviews--cards .google-reviews-carousel {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.nymm-google-reviews--cards .google-reviews-arrow,
.nymm-google-reviews--cards .nymm-reviews-dots {
    display: none !important;
}

@media (max-width: 700px) {
    .nymm-google-reviews--cards .google-reviews-carousel {
        padding-right: 6px;
        padding-left: 6px;
    }

    .nymm-google-reviews--cards .google-reviews {
        display: flex !important;
        grid-template-columns: none !important;
        align-items: stretch;

        gap: 14px !important;
        width: 100%;
        margin: 0;
        padding: 2px 0 6px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        box-sizing: border-box;
    }

    .nymm-google-reviews--cards .google-reviews::-webkit-scrollbar {
        display: none;
    }

    .nymm-google-reviews--cards .google-review,
    .nymm-google-reviews--cards .google-review:only-child {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .nymm-google-reviews--cards .google-reviews-arrow {
        display: flex !important;
    }

    .nymm-google-reviews--cards .google-reviews-prev {
        left: -10px;
    }

    .nymm-google-reviews--cards .google-reviews-next {
        right: -10px;
    }

    .nymm-google-reviews--cards .nymm-reviews-dots {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;

        min-height: 48px;
        margin-top: 12px;
        padding: 0 6px !important;
        column-gap: 10px !important;
        row-gap: 0 !important;
    }

    .nymm-google-reviews--cards .nymm-review-dot-list {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        min-width: 0;
    }

    .nymm-google-reviews--cards
    .nymm-review-dot:not(.is-window-visible) {
        display: none !important;
    }

    .nymm-google-reviews--cards .nymm-review-dot {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        width: 24px !important;
        height: 48px !important;
        min-width: 24px !important;
        min-height: 48px !important;
        flex: 0 0 24px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nymm-google-reviews--cards .nymm-review-dot::before {
        content: "" !important;
        display: block !important;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #d2d6db;
        transition:
            width .2s ease,
            height .2s ease,
            border-radius .2s ease,
            background .2s ease;
    }

    .nymm-google-reviews--cards
    .nymm-review-dot.is-neighbor:not(.is-active)::before {
        width: 8px;
        height: 8px;
        background: #b8bdc4;
    }

    .nymm-google-reviews--cards .nymm-review-dot.is-active::before {
        width: 24px;
        height: 8px;
        border-radius: 999px;
        background: #5f6368;
    }

    .nymm-google-reviews--cards .nymm-reviews-bottom-arrow {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 32px !important;
        height: 48px !important;
        min-width: 32px !important;
        min-height: 48px !important;
        flex: 0 0 32px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #5f6368 !important;
        font-size: 0 !important;
        transform: none !important;
    }

    .nymm-google-reviews--cards .nymm-reviews-bottom-arrow::before {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        box-sizing: border-box;
    }

    .nymm-google-reviews--cards .nymm-reviews-bottom-prev::before {
        transform: rotate(-135deg);
    }

    .nymm-google-reviews--cards .nymm-reviews-bottom-next::before {
        transform: rotate(45deg);
    }

    .nymm-google-reviews--cards .nymm-review-position {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;

        min-width: 36px;
        height: 48px;
        margin: 0 !important;
        padding: 0 2px;

        color: #7a8088;
        font-family:
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            Roboto,
            Arial,
            sans-serif;
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .nymm-google-reviews--cards.nymm-carousel-no-overflow
    .google-reviews-arrow,
    .nymm-google-reviews--cards.nymm-carousel-no-overflow
    .nymm-reviews-dots {
        display: none !important;
    }

    .nymm-google-reviews--cards.nymm-carousel-no-overflow
    .google-reviews {
        overflow-x: hidden !important;
        scroll-snap-type: none !important;
    }
}

/* Summary widget styling — v14.45, scoped to .nymm-reviews-overview. */
/* NYMM Reviews Summary: dedicated CSS; no carousel stylesheet or JavaScript needed. */
.nymm-reviews-overview,
.nymm-reviews-overview * { box-sizing: border-box; }
.nymm-reviews-overview {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: max-content;
    max-width: 100%;
    padding: 11px 16px !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 3px 14px rgba(15,23,42,.055) !important;
    color: #17233c !important;
    font: 400 13px/1.2 Arial, Helvetica, sans-serif !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-transform: none !important;
    text-decoration: none !important;
}
.nymm-reviews-overview .nymm-reviews-overview-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    background: url('/wp-content/plugins/nymm-google-reviews/assets/google-g.svg') center / contain no-repeat !important;
}
.nymm-reviews-overview .nymm-reviews-overview-rating {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #17233c !important;
    font: 700 20px/1 Arial, Helvetica, sans-serif !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
}
.nymm-reviews-overview .nymm-reviews-overview-stars {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #f5a500 !important;
    font: 400 16px/1 Arial, Helvetica, sans-serif !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    text-shadow: none !important;
}
.nymm-reviews-overview .nymm-reviews-overview-caption {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #4b5563 !important;
    font: 400 14px/1 Arial, Helvetica, sans-serif !important;
    text-transform: initial;
    white-space: nowrap !important;
    letter-spacing: normal !important;
}
/* The 1-line row uses the same gap on both sides of the stars. */
.nymm-reviews-overview--one-line { column-gap: 10px !important; }
.nymm-reviews-overview .nymm-reviews-overview-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}
.nymm-reviews-overview .nymm-reviews-overview-top {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
}
.nymm-reviews-overview--two-lines .nymm-reviews-overview-caption { font-size: 13px !important; }
.nymm-reviews-overview--transparent {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
.nymm-reviews-overview--opacity {
    background: rgba(255,255,255,var(--nymm-summary-opacity,1)) !important;
}
.nymm-reviews-overview--opacity[style*="--nymm-summary-opacity:0;"] {
    border-color: transparent !important;
    box-shadow: none !important;
}
@media(max-width:480px) {
    .nymm-reviews-overview { gap: 8px !important; padding: 9px 10px !important; }
    .nymm-reviews-overview .nymm-reviews-overview-logo {
        flex-basis: 22px !important; width: 22px !important; height: 22px !important;
    }
    .nymm-reviews-overview .nymm-reviews-overview-rating { font-size: 18px !important; }
    .nymm-reviews-overview .nymm-reviews-overview-stars { font-size: 15px !important; letter-spacing: 0 !important; }
    .nymm-reviews-overview .nymm-reviews-overview-caption { font-size: 13px !important; }
    .nymm-reviews-overview--one-line { column-gap: 8px !important; }
    .nymm-reviews-overview .nymm-reviews-overview-top { gap: 8px !important; }
}


/* Opt-in native Summary anchor: keep external margins client-controlled. */
a.nymm-reviews-overview:link,
a.nymm-reviews-overview:visited,
a.nymm-reviews-overview:hover { text-decoration: none !important; }
a.nymm-reviews-overview:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; }
