/* 메인페이지 팝업 레이어. 관리자 에디터 HTML 을 그대로 담으므로 폭·높이만 제한한다. */
.popup-layer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.45);
}

.popup-layer__box {
    width: 100%;
    max-width: 420px;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.popup-layer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #eaecf0;
}

.popup-layer__title {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    line-height: 1.35;
    word-break: break-word;
}

.popup-layer__close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin: -8px -8px -8px 0;
    border: 0;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #667085;
    cursor: pointer;
}

.popup-layer__close:hover {
    color: #101828;
}

.popup-layer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #344054;
    word-break: break-word;
}

.popup-layer__body img,
.popup-layer__body iframe,
.popup-layer__body video {
    max-width: 100%;
    height: auto;
}

.popup-layer__body table {
    max-width: 100%;
}

.popup-layer__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid #eaecf0;
    background: #fcfcfd;
}

.popup-layer__today {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    font-size: 13px;
    color: #475467;
    cursor: pointer;
}

.popup-layer__today input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2f6fed;
}

.popup-layer__confirm {
    flex: 0 0 auto;
    min-width: 72px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #2f6fed;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.popup-layer__confirm:hover {
    background: #2459c6;
}

@media (max-width: 480px) {
    .popup-layer {
        padding: 12px;
        gap: 8px;
    }

    .popup-layer__box {
        max-height: 88vh;
    }

    .popup-layer__head {
        padding: 10px 12px;
    }

    .popup-layer__title {
        font-size: 15px;
    }

    .popup-layer__body {
        padding: 12px;
        font-size: 13px;
    }

    .popup-layer__foot {
        padding: 8px 12px;
    }
}
