.www_popup {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.www_popup.open {
    opacity: 1;
    visibility: visible;
}

.www_popup_dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.www_popup_box {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.2s;
    overflow: hidden;
}

.www_popup.open .www_popup_box {
    transform: translateY(0);
}

.www_popup_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.www_popup_head h3 {
    font-size: clamp(0.95rem, 3.6vw, 1.0625rem);
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.www_popup_close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    color: var(--text-color-sub);
    font-size: 22px;
    transition: background 0.15s, color 0.15s;
}

.www_popup_close:hover {
    background: #f6f8fb;
    color: var(--text-color);
}

.www_popup_body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #fafbfc;
}

.www_popup_foot {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    background: #fff;
}

.www_popup_confirm {
    padding: 11px 28px;
    background: var(--main-color);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s, transform 0.15s;
}

.www_popup_confirm:hover {
    background: var(--main-color-light);
    transform: translateY(-1px);
}


@media (max-width: 768px) {
    .www_popup {
        padding: 12px;
    }

    .www_popup_head {
        padding: 16px 18px;
    }

    .www_popup_body {
        padding: 18px;
    }

    .www_popup_foot {
        padding: 14px 18px;
    }

}