/**
 * 팝업 스타일
 */

/* 팝업 오버레이 (배경 어둡게) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* 팝업 컨테이너 */
.popup-container {
    position: fixed;
    z-index: 9999;
}

/* 팝업 콘텐츠 */
.popup-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

/* 팝업 헤더 */
.popup-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* 팝업 닫기 버튼 (상단) */
.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.popup-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* 팝업 iframe */
.popup-iframe {
    border: none;
    overflow: auto;
}

/* 팝업 푸터 */
.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0 0 8px 8px;
}

.popup-footer label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.popup-footer input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* 팝업 닫기 버튼 (하단) */
.popup-close-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-close-btn:hover {
    background-color: #4338ca;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .popup-content {
        width: 90vw !important;
        max-width: 90vw;
        max-height: 85vh;
    }

    .popup-iframe {
        width: 100% !important;
        max-height: 70vh !important;
    }

    .popup-footer {
        flex-direction: column;
        gap: 10px;
    }

    .popup-footer label {
        width: 100%;
        justify-content: center;
    }

    .popup-close-btn {
        width: 100%;
    }
}
