/* ================================================
   Simple Popup – Frontend Styles
   ================================================ */

/* 오버레이 */
.sp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: sp-fade-in .25s ease forwards;
}

.sp-overlay.sp-hiding {
    animation: sp-fade-out .25s ease forwards;
}

@keyframes sp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes sp-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* 팝업 박스 - 흰 배경/패딩 없음, HTML 콘텐츠 크기에 맞게 */
.sp-popup {
    position: relative;
    background: transparent;
    border-radius: 0;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .35);
    max-height: 90vh;
    overflow-y: auto;
    width: fit-content;
    max-width: 100%;
    animation: sp-slide-up .25s ease forwards;
}

@keyframes sp-slide-up {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* 닫기 버튼 - 테두리/outline 완전 제거 */
.sp-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, .6);
    padding: 3px 6px;
    border-radius: 3px;
    z-index: 10;
    transition: color .15s, background .15s;
}

.sp-close:focus {
    outline: none;
    box-shadow: none;
}

.sp-close:hover {
    color: #fff;
    background: rgba(0, 0, 0, .2);
}

/* 콘텐츠 영역 - 패딩 없음, HTML 그대로 */
.sp-content {
    padding: 0;
}

.sp-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

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