/**
 * 확인 레이어 — 브라우저 기본 confirm() 을 대신한다.
 * 관리자·사용자 화면이 함께 쓰므로 어느 쪽 CSS 에도 기대지 않는다.
 */

.dial-confirm-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2147483000;   /* 다른 레이어 위에 뜨도록 충분히 높게 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}
.dial-confirm-layer.active {
    opacity: 1;
    visibility: visible;
}

.dial-confirm-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.28);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.18s ease;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}
.dial-confirm-layer.active .dial-confirm-card {
    transform: translateY(0) scale(1);
}

.dial-confirm-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px 0;
}
.dial-confirm-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eff6ff;
    color: #2563eb;
    font-size: 17px;
}
.dial-confirm-icon.is-danger {
    background: #fef2f2;
    color: #ef4444;
}
.dial-confirm-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    word-break: keep-all;
}

.dial-confirm-body {
    padding: 14px 24px 4px;
}
/* 넘겨받은 문구의 줄바꿈을 그대로 살린다 */
.dial-confirm-msg {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #475569;
    white-space: pre-line;
    word-break: keep-all;
}
.dial-confirm-msg:empty { display: none; }

.dial-confirm-note {
    margin: 12px 0 0;
    padding: 11px 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #94a3b8;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #64748b;
    white-space: pre-line;
}

.dial-confirm-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px 24px 22px;
}
.dial-confirm-foot button {
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}
.dial-confirm-cancel {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.dial-confirm-cancel:hover { background: #f8fafc; }

.dial-confirm-ok {
    background: #2563eb;
    color: #fff;
    border: 1px solid #1d4ed8;
    font-weight: 600;
}
.dial-confirm-ok:hover { background: #1d4ed8; }

.dial-confirm-ok.is-danger {
    background: #ef4444;
    border-color: #dc2626;
}
.dial-confirm-ok.is-danger:hover { background: #dc2626; }

/* 초점이 어디 있는지 보이게 — 키보드로만 쓰는 사람을 위해 */
.dial-confirm-foot button:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .dial-confirm-card { max-width: 100%; }
    .dial-confirm-foot { padding: 18px 20px 20px; }
    .dial-confirm-foot button { flex: 1; padding: 12px 14px; }
    .dial-confirm-head { padding: 20px 20px 0; }
    .dial-confirm-body { padding: 12px 20px 2px; }
}
