/* Age Verification Swipe - Frontend Styles */
#avs-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

#avs-overlay.avs-show {
    display: block;
}

#avs-overlay .avs-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#avs-overlay .avs-modal {
    position: relative;
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: auto;
}

#avs-overlay .avs-content {
    max-width: 760px;
    text-align: center;
    padding: 20px;
}

#avs-overlay .avs-image-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

#avs-overlay #avs-logo {
    max-width: 240px;
    width: 60%;
    height: auto;
    object-fit: contain;
}

#avs-overlay .avs-text {
    font-size: clamp(16px, 2.4vw, 24px);
    margin: 0 auto 22px;
}

/* Slider */
#avs-slider {
    position: relative;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
    margin: auto;
}

#avs-slider .avs-swipe-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 1;
}

#avs-slider .avs-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    cursor: grab;
    transition: background-color .2s ease;
    z-index: 2;
}

#avs-slider .avs-handle.dragging {
    cursor: grabbing;
}

#avs-slider .avs-handle-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-size: 16px;
    padding: 0 8px;
    box-sizing: border-box;
    white-space: nowrap;
}

#avs-slider .avs-handle-content img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    display: block;
}

/* End indicator (checkmark on correct side) */
#avs-slider .avs-end-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

/* Position depending on direction */
#avs-slider.avs-dir-right .avs-end-indicator {
    right: 20px;
}

#avs-slider.avs-dir-left .avs-end-indicator {
    left: 20px;
}

/* Text handle: auto width to fit full text */
#avs-slider.avs-handle-text .avs-handle {
    width: auto;
    min-width: 40px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#avs-slider.avs-handle-text .avs-handle-content {
    padding: 0 6px;
    overflow: visible;
    text-overflow: initial;
}

/* Image handle: no extra padding inside content */
#avs-slider.avs-handle-image .avs-handle-content {
    padding: 0;
}

/* Direction left variant handled via inline style and JS, but keep basics */

/* Utility */
html.avs-no-scroll, body.avs-no-scroll {
    overflow: hidden !important;
}

@media (max-width: 480px) {
    #avs-overlay #avs-logo {
        width: 70%;
        max-width: 200px;
    }

    #avs-slider {
        height: 44px;
    }

    #avs-slider .avs-handle {
        width: 36px;
        height: 36px;
        top: 4px;
    }
}
