/* 팝업 오버레이 */
.site-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 팝업 위치 */
.site-popup-overlay .site-popup-left {
    margin-right: auto;
    margin-left: 40px;
}

.site-popup-overlay .site-popup-right {
    margin-left: auto;
    margin-right: 40px;
}

/* 팝업 컨테이너 */
.site-popup-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* 팝업 이미지 */
.site-popup-image {
    width: 100%;
    line-height: 0;
}

.site-popup-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 팝업 내용 */
.site-popup-content {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.site-popup-content:empty {
    display: none;
}

.site-popup-content p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.site-popup-content p:last-child {
    margin-bottom: 0;
}

/* 팝업 링크 */
.site-popup-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.site-popup-link:hover {
    opacity: 0.95;
}

/* 팝업 하단 버튼 */
.site-popup-footer {
    display: flex;
    border-top: 1px solid #e5e5e5;
}

.site-popup-footer button {
    flex: 1;
    padding: 14px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.site-popup-footer button:hover {
    background: #f5f5f5;
}

.site-popup-close-today {
    color: #888;
    border-right: 1px solid #e5e5e5 !important;
}

.site-popup-close {
    color: #333;
    font-weight: 600;
}

/* 팝업 열림 시 스크롤 방지 */
body.site-popup-open {
    overflow: hidden;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .site-popup-container {
        width: 92%;
        max-height: 80vh;
        border-radius: 6px;
    }

    .site-popup-overlay .site-popup-left,
    .site-popup-overlay .site-popup-right {
        margin-left: auto;
        margin-right: auto;
    }

    .site-popup-content {
        padding: 16px 18px;
    }

    .site-popup-footer button {
        padding: 12px 0;
        font-size: 13px;
    }
}
