/* ===== Overlay ===== */
#popupnotice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ===== Popup Container ===== */
#popupnotice-box {
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    max-height: 60vh;                 /* 👈 prevents long popup */
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popupScaleIn 0.25s ease-out;
}

/* ===== Header ===== */
.popupnotice-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.popupnotice-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* Close button */
#popupnotice-close {
    font-size: 22px;
    cursor: pointer;
    color: #6b7280;
}

#popupnotice-close:hover {
    color: #111827;
}

/* ===== Body ===== */
.popupnotice-body {
    padding: 16px 20px;
    overflow-y: auto;                /* 👈 scroll only content */
    font-size: 14.5px;
    line-height: 1.4;
    color: #374151;
}

/* Highlight important text */
.popupnotice-body strong {
    color: #111827;
}

/* Callout style (optional) */
.popupnotice-body .highlight {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 14px;
    margin: 16px 0;
    border-radius: 6px;
    font-weight: 500;
}

.popupnotice-body p {
    margin: 6px 0;
}

/* ===== Animation ===== */
@keyframes popupScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
    #popupnotice-box {
        max-height: 85vh;
    }
}
