/* === 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: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    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: #333;
    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;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mublo-popup__close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Footer */
.mublo-popup__footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
    gap: 16px;
    box-sizing: border-box;
}
.mublo-popup__hide-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 12px;
    color: #666;
    transition: color 0.2s;
    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: #666;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}
.mublo-popup__hide-btn:hover,
.mublo-popup__close-btn:hover {
    color: #333;
}

/* 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;
    }
}
