/* ---------- Modal ---------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6vh 16px 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.modal {
    width: 100%;
    max-width: 480px;
    padding: 20px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal.modal-wide {
    max-width: 760px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.modal-head h2 {
    margin: 0;
}

.modal-body h3 {
    font-size: 1rem;
    margin: 16px 0 8px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.confirm-items {
    margin: 0;
    padding-left: 20px;
}

.danger-button {
    --accent-fill-rest: #c42b1c;
    --accent-fill-hover: #a52417;
    --accent-fill-active: #8a1d12;
}
