@charset "utf-8";

/* components/ui/modal — 범용 모달 */

.ui-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.ui-modal.is-open {
    display: flex;
}

.ui-modal-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ui-modal-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.ui-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.ui-modal-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
}

.ui-modal-close {
    font-size: 28px;
    line-height: 1;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ui-modal-close:hover {
    opacity: 0.65;
}

.ui-modal-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.ui-modal-tabs.ui-modal-tabs--hidden {
    display: none;
}

.ui-modal-tabs .tab {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    text-align: center;
}

.ui-modal-tabs .tab.active {
    font-weight: 600;
    color: #111;
    border-bottom: 2px solid #111;
    margin-bottom: -1px;
}

.ui-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
}

.ui-modal-body [data-ui-modal-panel] {
    display: none;
}

.ui-modal-body [data-ui-modal-panel].is-active {
    display: block;
}

.ui-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.ui-modal-footer .btn-confirm {
    width: 100%;
display: inline-block;
    text-align: center;
    margin: 0 auto;
    height: 48px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
}

.ui-modal-footer .btn-confirm:hover {
    opacity: 0.9;
}

.ui-modal-open-trigger {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #c5ccd4;
    background: #fff;
    cursor: pointer;
}

.ui-modal-open-trigger:hover {
    background: #f8f9fa;
}
