/* ============================================================
 * dodam 스킨 — plugins/Popup/views/Front/skins/dodam (basic → dodam) — 색·둥글기·그림자는 공유 토큰(/assets/css/dodam-tokens.css)만 사용한다
 * 색·둥글기·시간·그림자는 공유 토큰(/assets/css/dodam-tokens.css)만 가리킨다. 이 파일에는 리터럴을 쓰지 않는다.
 * ============================================================ */
/* === Mublo Popup — basic skin === */

/* Overlay: 항상 전체 화면, position에 따라 정렬 */
.mublo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    padding: 20px;
    box-sizing: border-box}

/* Container */
.mublo-popup-container {
    position: relative;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--dd-shadow-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    flex-direction: column}

/* Position: overlay의 flex 정렬로 container 위치 결정 */
.mublo-popup--center {
    align-items: center;
    justify-content: center}
.mublo-popup--top-left {
    align-items: flex-start;
    justify-content: flex-start}
.mublo-popup--top-right {
    align-items: flex-start;
    justify-content: flex-end}
.mublo-popup--bottom-left {
    align-items: flex-end;
    justify-content: flex-start}
.mublo-popup--bottom-right {
    align-items: flex-end;
    justify-content: flex-end}

/* Content */
.mublo-popup__content {
    width: 100%;
    line-height: 1.6;
    padding: 20px;
    font-size: 14px;
    color: var(--foreground);
    box-sizing: border-box}
.mublo-popup__content img {
    max-width: 100%;
    height: auto}

/* Close button (X) */
.mublo-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: color-mix(in srgb, var(--dd-black) 50%, transparent);
    color: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s}
.mublo-popup__close svg {
    display: block}
.mublo-popup__close:hover {
    background: color-mix(in srgb, var(--dd-black) 70%, transparent)}

/* Footer */
.mublo-popup__footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--muted);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    gap: 16px;
    box-sizing: border-box}
.mublo-popup__hide-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 12px;
    color: var(--muted-foreground);
    transition: color var(--dd-dur-base);
    white-space: nowrap;
    flex: 1;
    text-align: left}
.mublo-popup__close-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 12px;
    color: var(--muted-foreground);
    transition: color var(--dd-dur-base);
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600}
.mublo-popup__hide-btn:hover,
.mublo-popup__close-btn:hover {
    color: var(--foreground)}

/* Responsive: 모바일은 모두 중앙 */
@media (max-width: 768px) {
    .mublo-popup-container {
        max-width: 95vw}
    .mublo-popup--center,
    .mublo-popup--top-left,
    .mublo-popup--top-right,
    .mublo-popup--bottom-left,
    .mublo-popup--bottom-right {
        align-items: center;
        justify-content: center}
}

/* ---------- 효과: 눌림·호버 ---------- */
.mublo-popup__hide-btn:active:not(:disabled):not(.disabled),
.mublo-popup__close-btn:active:not(:disabled):not(.disabled) {
    transform: scale(.97);
    transition: transform var(--dd-dur-fast) var(--dd-ease);
}
