﻿/* === overlay + modal (общие) === */
.fxu-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    opacity: 1;
    transition: opacity .25s
}

.fxu-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.fxu-modal {
    position: relative;
    max-width: min(920px,92vw);
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
    background: transparent
}

@media (max-width:640px) {
    .fxu-modal {
        max-width: 94vw
    }
}

body.fxu-scroll-lock {
    overflow: hidden
}

/* === close button + progress (общие) === */
.fxu-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: opacity .2s,visibility .2s
}

    .fxu-close.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none
    }

.fxu-close-progress {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    width: 36px;
    height: 36px;
    pointer-events: none
}

    .fxu-close-progress .ring {
        --deg: 0deg;
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: conic-gradient(#fff var(--deg), rgba(255,255,255,.22) 0)
    }

        .fxu-close-progress .ring::before {
            content: "";
            position: absolute;
            inset: 3px;
            border-radius: 50%;
            background: rgba(0,0,0,.55)
        }

    .fxu-close-progress .num {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 700;
        font-size: 12px;
        opacity: .9
    }
