
.elt-confirm {
    --confirm-accent: #6843a0;
    --confirm-header: #6843a0;

    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(20, 20, 28, .22);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.elt-confirm[hidden] {
    display: none !important;
}

.elt-confirm__dialog {
    width: 100%;
    max-width: 340px;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
    border: 0;
    border-radius: 17px;
    box-shadow: 0 12px 35px rgba(25, 20, 40, .14);
    text-align: center;
    animation: elt-confirm-enter .22s ease-out;
}

/* Header */
.elt-confirm__header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 128px;
    padding: 20px;
    box-sizing: border-box;
    background: var(--confirm-header);
}

.elt-confirm__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--confirm-accent);
    font-size: 30px;
}

.elt-confirm__icon i {
    line-height: 1;
}

/* Content */
.elt-confirm__body {
    padding: 21px 24px 23px;
}

.elt-confirm__title {
    margin: 0 0 10px;
    color: #34445f;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.elt-confirm__message {
    margin: 0;
    color: #68758b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

/* Buttons */
.elt-confirm__actions {
    display: flex;
    gap: 10px;
    margin-top: 23px;
}

.elt-confirm__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    min-height: 40px;
    margin-top: 23px;
    padding: 7px 17px;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.elt-confirm__btn:active {
    transform: scale(.97);
}

.elt-confirm__btn--accept {
    background: var(--confirm-accent);
    color: #fff;
}

.elt-confirm__btn--accept:hover {
    filter: brightness(.92);
}

.elt-confirm__btn--cancel {
    background: #eef0f5;
    color: #34445f;
}

.elt-confirm__btn--cancel:hover {
    background: #e2e5ed;
}

/* Danger */
.elt-confirm--danger {
    --confirm-accent: #d44848;
    --confirm-header: #e95357;
}

/* Warning */
.elt-confirm--warning {
    --confirm-accent: #b97900;
    --confirm-header: #e5a52b;
}

/* RTL */
.elt-confirm__dialog,
.elt-confirm__body {
    direction: inherit;
}

.elt-confirm__btn:focus-visible {
    outline: 3px solid #c7b3e5;
    outline-offset: 3px;
}

@keyframes elt-confirm-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 576px) {
    .elt-confirm {
        padding: 16px;
    }

    .elt-confirm__dialog {
        max-width: 340px;
        border-radius: 15px;
    }

    .elt-confirm__header {
        min-height: 115px;
    }

    .elt-confirm__body {
        padding: 19px 20px 21px;
    }

    .elt-confirm__title {
        font-size: 20px;
    }

    .elt-confirm__actions {
        gap: 9px;
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elt-confirm__dialog {
        animation: none;
    }
}
