/* WP Popup Manager - CSS */

.wp-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wp-modal-container.show {
    display: flex;
}

.wp-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.wp-modal-content h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-body {
    margin-bottom: 20px;
    text-align: center;
}

.wp-popup-inner-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.wp-popup-inner-content p {
    margin: 10px 0;
}

/* 하단 체크박스 및 버튼 영역 */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.modal-footer label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

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

.wp-close-modal {
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.wp-close-modal:hover {
    background-color: #555;
}


/* YouTube 반응형 */
.wp-popup-inner-content iframe {
    max-width: 100%;
    height: auto;
}

/* 하단 체크박스 반응형 */
@media (max-width: 768px) {
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer label {
        width: 100%;
        margin-bottom: 5px;
    }

    .wp-close-modal {
        width: 100%;
    }
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .wp-modal-content {
        width: 90% !important;
        padding: 20px;
        max-height: 90vh;
    }

    .wp-modal-content h2 {
        font-size: 18px;
    }

    .modal-body {
        text-align: left;
    }
}
