/* Age Bubbles v4.1 — fully scoped, zero global overrides */
.age-bubbles-wrap,
.age-bubbles-wrap *,
.age-bubbles-wrap *::before,
.age-bubbles-wrap *::after {
    box-sizing: border-box;
}

.age-bubbles-wrap {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
    padding: 1.25rem 0 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    line-height: normal;
    position: relative;
    /* Clip the container so no scrollbar ever peeks out on any browser */
    overflow: hidden;
}

/* ── Title ── */
.ab-label,
.ab-heading {
    display: block;
    width: 100%;
    padding: 0 0.5rem;
    margin: 0 0 1rem 0 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* JS sets font-size and text-align dynamically via applyTitleStyle() */

/* ── Track: drag + swipe scroll — scrollbar fully hidden on ALL browsers ── */
.ab-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px;
    overflow-x: scroll;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0.75rem 1rem 2rem;   /* extra bottom so bubbles don't clip on hover */
    cursor: grab;
    user-select: none;

    /* Firefox — hides scrollbar */
    scrollbar-width: none !important;

    /* IE 10–11, Edge legacy — hides scrollbar */
    -ms-overflow-style: none !important;
}

/* Chrome, Safari, Opera, all WebKit/Blink — covers every sub-part */
.ab-track::-webkit-scrollbar         { display: none !important; width: 0 !important; height: 0 !important; }
.ab-track::-webkit-scrollbar-track   { display: none !important; background: transparent !important; }
.ab-track::-webkit-scrollbar-thumb   { display: none !important; background: transparent !important; }
.ab-track::-webkit-scrollbar-button  { display: none !important; }
.ab-track::-webkit-scrollbar-corner  { display: none !important; }

.ab-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

/* ── Bubble items ── */
.ab-item {
    flex-shrink: 0 !important;
    scroll-snap-align: start;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.18s ease;
    box-shadow: none !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-drag: none;
}

.ab-item:hover {
    transform: translateY(-6px) scale(1.08) !important;
    background: none !important;
    text-decoration: none !important;
}

.ab-item:active {
    transform: scale(0.96) !important;
}

/* No hover effect while dragging */
.ab-track.is-dragging .ab-item {
    pointer-events: none;
    transform: none !important;
}

.ab-item:focus-visible {
    outline: 2px dashed #129CC9;
    outline-offset: 4px;
    border-radius: 50%;
}

.ab-item svg {
    display: block;
    overflow: visible;
    max-width: none;
    height: auto;
    pointer-events: none;
}

.ab-t-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.ab-t-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
}
