/* =====================================================
   86Leads — Google Reviews Widget
   ===================================================== */

/* ── CSS bridge: scoped reset, prevents theme bleed ─────────────────────────
   Resets box-sizing and protects layout-critical properties from theme
   overrides. The widget sits inside whatever theme the site uses; these
   guards ensure it looks right regardless.
   ─────────────────────────────────────────────────────────────────────────── */
.leads86-reviews,
.leads86-reviews *,
.leads86-reviews *::before,
.leads86-reviews *::after {
    box-sizing: border-box !important;
}

.leads86-reviews {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0 0 2rem;
    -webkit-font-smoothing: antialiased;
}

/* ------ Overall rating header ------ */

.leads86-reviews__header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #f8f9fa !important;
    border: 1px solid #e4e6ea !important;
    border-radius: 10px;
}

.leads86-reviews__overall {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.leads86-reviews__score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a !important;
    margin: 0;
    padding: 0;
}

.leads86-reviews__stars {
    display: flex !important;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.leads86-star {
    font-size: 1.5rem;
    line-height: 1;
}

.leads86-star--full  { color: #fbbc04 !important; }
.leads86-star--half  { color: #fbbc04 !important; opacity: 0.6; }
.leads86-star--empty { color: #d0d0d0 !important; }

.leads86-reviews__count {
    font-size: 0.9rem;
    color: #5a5a5a !important;
    margin: 0;
}

/* Write a Review button — defend against theme anchor and button resets */
.leads86-reviews__write-btn,
.leads86-reviews__write-btn:visited {
    display: inline-block !important;
    padding: 10px 18px !important;
    background: #fff !important;
    border: 2px solid #4285f4 !important;
    border-radius: 6px;
    color: #4285f4 !important;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.4;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.leads86-reviews__write-btn:hover,
.leads86-reviews__write-btn:focus {
    background: #4285f4 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-color: #4285f4 !important;
}

/* ------ Cards grid layout ------ */

.leads86-reviews--cards .leads86-reviews__grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ------ List layout ------ */

.leads86-reviews--list .leads86-reviews__grid {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ------ Individual card ------ */

.leads86-reviews__card {
    background: #fff !important;
    border: 1px solid #e4e6ea !important;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.15s;
    margin: 0;
}

.leads86-reviews__card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}

.leads86-reviews__card-header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.leads86-reviews__avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none !important;
}

.leads86-reviews__avatar--initials {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    background: #4285f4 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin: 0;
}

.leads86-reviews__author-info {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.leads86-reviews__author {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a !important;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.leads86-reviews__date {
    font-size: 0.78rem;
    color: #888 !important;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.leads86-reviews__card-stars {
    display: flex !important;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.leads86-reviews__card-stars .leads86-star {
    font-size: 1rem;
}

.leads86-reviews__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #444 !important;
    margin: 0 !important;
    padding: 0;
    flex: 1;
    /* Clamp long reviews at 5 lines */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.leads86-reviews__google-badge {
    display: flex !important;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #999 !important;
    margin-top: 4px;
    margin-bottom: 0;
    padding: 0;
}

.leads86-reviews__empty {
    color: #777 !important;
    font-style: italic;
    margin: 0;
}

/* ------ Responsive ------ */

@media (max-width: 600px) {
    .leads86-reviews__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .leads86-reviews--cards .leads86-reviews__grid {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================
   Carousel layout: summary block plus a sliding row of cards
   ===================================================== */

.leads86-rc {
    display: grid !important;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.leads86-rc__summary {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}
.leads86-rc__word {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1a1a1a;
}
.leads86-rc__summary .leads86-star { font-size: 30px; }
.leads86-rc__based { font-size: 14px; color: #1a1a1a; }
.leads86-rc__google {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.leads86-rc__google span:nth-child(1), .leads86-rc__google span:nth-child(4) { color: #4285F4; }
.leads86-rc__google span:nth-child(2), .leads86-rc__google span:nth-child(6) { color: #EA4335; }
.leads86-rc__google span:nth-child(3) { color: #FBBC05; }
.leads86-rc__google span:nth-child(5) { color: #34A853; }
/* Read all reviews first (filled), Write a review second (outline) */
.leads86-rc__read,
.leads86-rc__write {
    display: inline-block !important;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}
.leads86-rc__read {
    margin-top: 8px;
    background: #1a73e8 !important;
    color: #fff !important;
    border: 1px solid #1a73e8 !important;
}
.leads86-rc__read:hover { background: #1557b0 !important; border-color: #1557b0 !important; }
.leads86-rc__write {
    background: transparent !important;
    color: #1a73e8 !important;
    border: 1px solid #c6d4ea !important;
}
.leads86-rc__write:hover { border-color: #1a73e8 !important; }

.leads86-rc__viewport {
    position: relative !important;
    min-width: 0;
}
.leads86-rc__track {
    display: flex !important;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px;
    margin: 0;
    list-style: none;
}
.leads86-rc__track::-webkit-scrollbar { display: none; }

.leads86-rc__card {
    flex: 0 0 calc((100% - 32px) / 3);
    scroll-snap-align: start;
    background: #f4f4f4 !important;
    border: none !important;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.leads86-rc__head {
    display: flex !important;
    align-items: center;
    gap: 12px;
}
.leads86-rc__avatar {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex: 0 0 40px;
    margin: 0 !important;
}
.leads86-rc__avatar--initials {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #33691e;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}
.leads86-rc__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.leads86-rc__name {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leads86-rc__date { font-size: 13px; color: #70757a; }
.leads86-rc__g { flex: 0 0 20px; width: 20px; height: 20px; }
.leads86-rc__card .leads86-star { font-size: 20px; }
.leads86-rc__text {
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.leads86-rc__card.is-expanded .leads86-rc__text {
    -webkit-line-clamp: unset;
    display: block;
}
.leads86-rc__more {
    align-self: flex-start;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #70757a !important;
    font-size: 14px;
    cursor: pointer;
    box-shadow: none !important;
}
.leads86-rc__more:hover { color: #1a1a1a !important; text-decoration: underline; }

.leads86-rc__arrow {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #fff !important;
    color: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    font-size: 22px;
    line-height: 1;
    padding: 0 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.leads86-rc__arrow[hidden] { display: none !important; }
.leads86-rc__arrow--prev { left: -12px; }
.leads86-rc__arrow--next { right: -12px; }

@media (max-width: 900px) {
    .leads86-rc__card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 640px) {
    .leads86-rc { grid-template-columns: 1fr; }
    .leads86-rc__card { flex-basis: 85%; }
    .leads86-rc__arrow { display: none !important; }
}

/* =====================================================
   Badge layout: a small pill for heroes, links to the reviews on Google
   ===================================================== */

.leads86-badge,
.leads86-badge * {
    box-sizing: border-box !important;
}
.leads86-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 12px;
    background: #fff !important;
    border: 1px solid #e4e6ea !important;
    border-radius: 16px;
    box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.35);
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.2;
    transition: transform 0.2s, box-shadow 0.2s;
}
.leads86-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.45);
}
.leads86-badge:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; }
.leads86-badge__g { flex: 0 0 30px; width: 30px; height: 30px; }
.leads86-badge__body { display: flex; flex-direction: column; gap: 3px; }
.leads86-badge__top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.leads86-badge__label { font-size: 16px; font-weight: 800; color: #1a1a1a; }
.leads86-badge .leads86-star { font-size: 17px; }
.leads86-badge__link { font-size: 13px; font-weight: 600; color: #5f6368; }
.leads86-badge:hover .leads86-badge__link { color: #1a1a1a; }
@media (prefers-reduced-motion: reduce) { .leads86-badge { transition: none; } .leads86-badge:hover { transform: none; } }
