.ataro-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.ataro-popup-overlay.is-visible {
    display: flex;
}

.ataro-popup-box {
    position: relative;
    width: min(92vw, 520px);
    max-height: min(86vh, 720px);
    overflow-y: auto;
    padding: 34px 32px 28px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    animation: ataroPopupIn 0.22s ease-out;
}

.ataro-popup-box h2 {
    margin: 0 42px 14px 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #111827;
}

.ataro-popup-content {
    margin: 0 0 22px;
    color: #374151;
    font-size: 16px;
    line-height: 1.65;
}

.ataro-popup-content p:first-child {
    margin-top: 0;
}

.ataro-popup-content p:last-child {
    margin-bottom: 0;
}

.ataro-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 28px;
    line-height: 34px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.ataro-popup-close:hover,
.ataro-popup-close:focus {
    background: #e5e7eb;
    transform: scale(1.04);
}

.ataro-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 19px;
    border: 1px solid #1d4ed8;
    border-radius: 12px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ataro-popup-button:hover,
.ataro-popup-button:focus {
    background: #1d4ed8;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.26);
    transform: translateY(-1px);
}

.ataro-popup-dont-show {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.ataro-popup-dont-show input {
    width: 16px;
    height: 16px;
    margin: 0;
}

@keyframes ataroPopupIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    .ataro-popup-overlay {
        align-items: center;
        justify-content: center;
        padding: 18px;
    }

    .ataro-popup-box {
        width: min(100%, 360px);
        max-height: 78vh;
        padding: 24px 20px 20px;
        border-radius: 20px;
    }

    .ataro-popup-box h2 {
        margin: 0 38px 10px 0;
        font-size: 22px;
        line-height: 1.15;
    }

    .ataro-popup-content {
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.55;
    }

    .ataro-popup-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 25px;
        line-height: 30px;
    }

    .ataro-popup-button {
        width: auto;
        max-width: 100%;
        min-height: 42px;
        padding: 10px 16px;
        border-radius: 11px;
        font-size: 14px;
    }

    .ataro-popup-dont-show {
        margin-top: 16px;
        font-size: 13px;
    }
}
