.bootbox.til-bootbox.modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bootbox.til-bootbox .modal-dialog {
    width: min(90vw, 420px);
    max-width: 420px;
    margin: 0;
}

.bootbox.til-bootbox.til-bootbox-confirm .modal-dialog {
    width: min(90vw, 460px);
    max-width: 460px;
}

.bootbox.til-bootbox .modal-content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7fcfb 100%);
    box-shadow: 0 24px 56px rgba(39, 127, 120, 0.18);
}

.bootbox.til-bootbox .modal-header {
    position: relative;
    padding: 1.05rem 1.2rem 0;
    border-bottom: 0;
    background: transparent;
}

.bootbox.til-bootbox .modal-title {
    width: 100%;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.02em;
    color: #2f8e86;
}

.bootbox.til-bootbox .modal-body {
    position: relative;
    padding: 0.85rem 1.25rem 0.35rem;
    color: #446965;
}

.bootbox.til-bootbox .bootbox-body {
    text-align: center;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.7;
}

.bootbox.til-bootbox .modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.25rem 1.2rem;
    border-top: 0;
    background: transparent;
}

.bootbox.til-bootbox .modal-footer .btn {
    min-width: 132px;
    min-height: 42px;
    margin: 0;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bootbox.til-bootbox .modal-footer [data-bb-handler="ok"],
.bootbox.til-bootbox .modal-footer [data-bb-handler="confirm"] {
    border: 0;
    background: #5dc3b9;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(93, 195, 185, 0.22);
}

.bootbox.til-bootbox .modal-footer [data-bb-handler="ok"]:hover,
.bootbox.til-bootbox .modal-footer [data-bb-handler="ok"]:focus,
.bootbox.til-bootbox .modal-footer [data-bb-handler="confirm"]:hover,
.bootbox.til-bootbox .modal-footer [data-bb-handler="confirm"]:focus {
    background: #49b5ab;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(93, 195, 185, 0.28);
}

.bootbox.til-bootbox .modal-footer [data-bb-handler="cancel"] {
    border: 1px solid rgba(93, 195, 185, 0.28);
    background: #ffffff;
    color: #2f8e86;
    box-shadow: none;
}

.bootbox.til-bootbox .modal-footer [data-bb-handler="cancel"]:hover,
.bootbox.til-bootbox .modal-footer [data-bb-handler="cancel"]:focus {
    border-color: #5dc3b9;
    background: rgba(93, 195, 185, 0.08);
    color: #238c83;
    transform: translateY(-1px);
}

.bootbox.til-bootbox .modal-header .bootbox-close-button,
.bootbox.til-bootbox .modal-header .close,
.bootbox.til-bootbox .modal-body .bootbox-close-button,
.bootbox.til-bootbox .modal-body .close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    left: auto !important;
    width: 34px;
    height: 34px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(93, 195, 185, 0.12);
    color: #2f8e86;
    opacity: 1;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.bootbox.til-bootbox .modal-header .bootbox-close-button:hover,
.bootbox.til-bootbox .modal-header .close:hover,
.bootbox.til-bootbox .modal-body .bootbox-close-button:hover,
.bootbox.til-bootbox .modal-body .close:hover {
    background: rgba(93, 195, 185, 0.22);
    color: #1f7c74;
    transform: translateY(-1px);
}

.bootbox.til-bootbox.til-bootbox-state-success .modal-title {
    color: #2f8e86;
}

.bootbox.til-bootbox.til-bootbox-state-info .modal-title {
    color: #2f8e86;
}

.bootbox.til-bootbox.til-bootbox-state-warning .modal-title {
    color: #c98a2b;
}

.bootbox.til-bootbox.til-bootbox-state-error .modal-title {
    color: #cf5f5f;
}

.bootbox.til-bootbox.til-bootbox-state-error .modal-footer [data-bb-handler="ok"],
.bootbox.til-bootbox.til-bootbox-state-error .modal-footer [data-bb-handler="confirm"] {
    background: #e27d7d;
    box-shadow: 0 10px 20px rgba(226, 125, 125, 0.22);
}

.bootbox.til-bootbox.til-bootbox-state-error .modal-footer [data-bb-handler="ok"]:hover,
.bootbox.til-bootbox.til-bootbox-state-error .modal-footer [data-bb-handler="ok"]:focus,
.bootbox.til-bootbox.til-bootbox-state-error .modal-footer [data-bb-handler="confirm"]:hover,
.bootbox.til-bootbox.til-bootbox-state-error .modal-footer [data-bb-handler="confirm"]:focus {
    background: #d56c6c;
    box-shadow: 0 12px 24px rgba(213, 108, 108, 0.28);
}

.bootbox.til-bootbox.til-bootbox-state-warning .modal-footer [data-bb-handler="ok"],
.bootbox.til-bootbox.til-bootbox-state-warning .modal-footer [data-bb-handler="confirm"] {
    background: #e2ab52;
    box-shadow: 0 10px 20px rgba(226, 171, 82, 0.22);
}

.bootbox.til-bootbox.til-bootbox-state-warning .modal-footer [data-bb-handler="ok"]:hover,
.bootbox.til-bootbox.til-bootbox-state-warning .modal-footer [data-bb-handler="ok"]:focus,
.bootbox.til-bootbox.til-bootbox-state-warning .modal-footer [data-bb-handler="confirm"]:hover,
.bootbox.til-bootbox.til-bootbox-state-warning .modal-footer [data-bb-handler="confirm"]:focus {
    background: #d6993d;
    box-shadow: 0 12px 24px rgba(214, 153, 61, 0.28);
}

@media (max-width: 575px) {
    .bootbox.til-bootbox .modal-dialog,
    .bootbox.til-bootbox.til-bootbox-confirm .modal-dialog {
        width: calc(100% - 1rem);
    }

    .bootbox.til-bootbox .modal-content {
        border-radius: 22px;
    }

    .bootbox.til-bootbox .modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .bootbox.til-bootbox .modal-footer {
        flex-wrap: wrap;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .bootbox.til-bootbox .modal-footer .btn {
        width: 100%;
    }
}
