.tfp-dialog-open {
    overflow: hidden;
}

.tfp-dialog-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: inherit;
}

.tfp-dialog-root.is-open {
    display: flex;
}

.tfp-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 44, .56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: tfpDialogFade .14s ease-out;
}

.tfp-dialog {
    position: relative;
    width: min(430px, 100%);
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 26px;
    padding: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.98));
    color: #08204a;
    box-shadow: 0 28px 80px rgba(7, 28, 67, .34);
    animation: tfpDialogPop .16s ease-out;
}

.tfp-dialog-x {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 53, 111, .08);
    color: #45617f;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.tfp-dialog-x:hover {
    background: rgba(15, 53, 111, .14);
}

.tfp-dialog-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1f68ff, #20c7ff);
    color: #fff;
    font-size: 25px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(31, 104, 255, .28);
}

.tfp-dialog-root--danger .tfp-dialog-icon {
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 14px 30px rgba(239, 68, 68, .26);
}

.tfp-dialog-root--warning .tfp-dialog-icon {
    background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.tfp-dialog-kicker {
    margin: 0 0 5px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tfp-dialog h2 {
    margin: 0;
    color: #071c43;
    font-size: 23px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -.03em;
}

.tfp-dialog p#tfp-dialog-message {
    margin: 10px 0 0;
    color: #4b5f7f;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

.tfp-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
}

.tfp-dialog-btn {
    min-width: 112px;
    border: 0;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.tfp-dialog-btn:hover {
    transform: translateY(-1px);
}

.tfp-dialog-btn--ghost {
    background: #eef4ff;
    color: #25456e;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .12);
}

.tfp-dialog-btn--primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    box-shadow: 0 14px 32px rgba(37, 99, 235, .24);
}

.tfp-dialog-root--danger .tfp-dialog-btn--primary {
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 14px 32px rgba(239, 68, 68, .24);
}

.tfp-dialog-btn:focus-visible,
.tfp-dialog-x:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
}

@keyframes tfpDialogFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tfpDialogPop {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
    .tfp-dialog-root {
        align-items: flex-end;
        padding: 12px;
    }

    .tfp-dialog {
        width: 100%;
        border-radius: 24px;
        padding: 20px;
    }

    .tfp-dialog-icon {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        font-size: 22px;
    }

    .tfp-dialog h2 {
        font-size: 20px;
    }

    .tfp-dialog p#tfp-dialog-message {
        font-size: 13px;
    }

    .tfp-dialog-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tfp-dialog-btn {
        width: 100%;
        min-width: 0;
        padding: 13px 16px;
    }

    .tfp-dialog-btn--primary {
        order: -1;
    }
}
