/* 사용자 공통 레이어 팝업 (user_tb_popup) — 헤더·AI 위젯보다 위 */
#site-popup-mount {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000010;
}

.site-popup-layer {
    pointer-events: auto;
    position: fixed;
    box-sizing: border-box;
    background: #fff;
    border-radius: 18px;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.site-popup-layer__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 18px 20px 12px;
    background: #fff;
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

.site-popup-layer__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-popup-layer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.site-popup-layer__body img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.site-popup-layer__body :first-child {
    margin-top: 0;
}

.site-popup-layer__body :last-child {
    margin-bottom: 0;
}

/* 하단: 왼쪽 오늘 하루 보지 않기 · 오른쪽 닫기 */
.site-popup-layer__foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px 18px;
    background: #fbfbfb;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.site-popup-layer__foot-left {
    flex: 1;
    min-width: 0;
}

.site-popup-layer__foot label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 400;
    color: #767676;
}

.site-popup-layer__foot-close {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #00ced1;
    cursor: pointer;
    line-height: 1.3;
    white-space: nowrap;
}

.site-popup-layer__foot-close:hover {
    opacity: 0.88;
}

.site-popup-layer__foot-close:focus-visible {
    outline: 2px solid #00ced1;
    outline-offset: 2px;
    border-radius: 2px;
}
