/* Popup Custom — lightweight modal styles */

.bpopup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.bpopup-overlay.hidden {
    display: none;
}

.bpopup-box {
    position: relative;
    border-radius: 12px;
    padding: 40px 36px 32px;
    width: 100%;
    max-width: var(--bpopup-width, 400px);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: bpopupIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    box-sizing: border-box;
}

.bpopup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.bpopup-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.bpopup-title {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.2;
}

.bpopup-body {
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

.bpopup-body strong {
    font-weight: 700;
}

.bpopup-body del {
    opacity: 0.65;
    text-decoration: line-through;
}

/* Entry animation */
@keyframes bpopupIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Exit animation */
@keyframes bpopupOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.88) translateY(16px);
    }
}

.bpopup-overlay.closing .bpopup-box {
    animation: bpopupOut 0.22s ease-in both;
}

/* Mobile */
@media (max-width: 480px) {
    .bpopup-box {
        padding: 32px 20px 24px;
        border-radius: 10px;
    }

    .bpopup-title {
        font-size: 1.3rem;
    }

    .bpopup-body {
        font-size: 0.97rem;
    }
}
