.trigger_notify_box {
    position: fixed;
    top: 24px;
    right: 24px;
    width: min(390px, calc(100vw - 24px));
    z-index: 100000;
    isolation: isolate;
    pointer-events: auto;
    padding-top: 18px;
    transition: height 0.22s ease;
}

.trigger_notify_box .toast_message,
.trigger_notify_box .trigger {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 0 10px;
    width: 100%;
    margin: 0 0 12px;
    padding: 16px 38px 18px 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 4px;
    background: #ffffff !important;
    color: #1f2937 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
    font-size: 0.88rem;
    line-height: 1.42;
    cursor: pointer;
    pointer-events: auto;
    transform: translateX(0);
    transition: margin 0.22s ease, opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    animation: appToastBounceIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.trigger_notify_box:not(:hover) .toast_message,
.trigger_notify_box:not(:hover) .trigger {
    margin-bottom: 0;
    z-index: 4;
}

.trigger_notify_box:not(:hover) .toast_message:nth-child(n+2),
.trigger_notify_box:not(:hover) .trigger:nth-child(n+2) {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
}

.trigger_notify_box:not(:hover) .toast_message:nth-child(2),
.trigger_notify_box:not(:hover) .trigger:nth-child(2) {
    z-index: 3;
    opacity: 0.86;
    transform: translateY(-9px) scale(0.97);
}

.trigger_notify_box:not(:hover) .toast_message:nth-child(3),
.trigger_notify_box:not(:hover) .trigger:nth-child(3) {
    z-index: 2;
    opacity: 0.72;
    transform: translateY(-17px) scale(0.94);
}

.trigger_notify_box:not(:hover) .toast_message:nth-child(n+4),
.trigger_notify_box:not(:hover) .trigger:nth-child(n+4) {
    z-index: 1;
    opacity: 0.58;
    transform: translateY(-24px) scale(0.91);
}

.trigger_notify_box:hover .toast_message,
.trigger_notify_box:hover .trigger {
    position: relative;
    z-index: auto;
    opacity: 1;
    transform: none;
}

.trigger_notify_box .toast_message::before,
.trigger_notify_box .trigger::before {
    content: "i";
    grid-column: 1;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.trigger_notify_box .toast_message::after,
.trigger_notify_box .trigger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.1;
}

.trigger_notify_box .app_toast_bounce_click {
    animation: appToastClickBounce 0.18s ease-out both;
}

.trigger_notify_box .app_toast_exit_right {
    pointer-events: none;
    animation: appToastExitRight 0.28s ease-in both !important;
}

.trigger_notify_box .toast_message p,
.trigger_notify_box .trigger p {
    grid-column: 2;
    margin: 0;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.45;
}

.trigger_notify_box .toast_message b,
.trigger_notify_box .trigger b,
.trigger_notify_box .toast_message strong,
.trigger_notify_box .trigger strong {
    display: inline;
    font-weight: 700;
    color: #111827;
}

.trigger_notify_box .toast_message_success,
.trigger_notify_box .trigger_success {
    color: #111827 !important;
}

.trigger_notify_box .toast_message_error,
.trigger_notify_box .trigger_error {
    color: #111827 !important;
}

.trigger_notify_box .toast_message_alert,
.trigger_notify_box .trigger_alert {
    color: #111827 !important;
}

.trigger_notify_box .toast_message_info,
.trigger_notify_box .trigger_info {
    color: #111827 !important;
}

.trigger_notify_box .toast_message_success .toast_message_timer,
.trigger_notify_box .toast_message_success .trigger_notify_timer,
.trigger_notify_box .toast_message_success .trigger_progress,
.trigger_notify_box .trigger_success .toast_message_timer,
.trigger_notify_box .trigger_success .trigger_notify_timer,
.trigger_notify_box .trigger_success .trigger_progress { background: #22c55e; }

.trigger_notify_box .toast_message_error .toast_message_timer,
.trigger_notify_box .toast_message_error .trigger_notify_timer,
.trigger_notify_box .toast_message_error .trigger_progress,
.trigger_notify_box .trigger_error .toast_message_timer,
.trigger_notify_box .trigger_error .trigger_notify_timer,
.trigger_notify_box .trigger_error .trigger_progress { background: #e11d48; }

.trigger_notify_box .toast_message_alert .toast_message_timer,
.trigger_notify_box .toast_message_alert .trigger_notify_timer,
.trigger_notify_box .toast_message_alert .trigger_progress,
.trigger_notify_box .trigger_alert .toast_message_timer,
.trigger_notify_box .trigger_alert .trigger_notify_timer,
.trigger_notify_box .trigger_alert .trigger_progress { background: #f59e0b; }

.trigger_notify_box .toast_message_info .toast_message_timer,
.trigger_notify_box .toast_message_info .trigger_notify_timer,
.trigger_notify_box .toast_message_info .trigger_progress,
.trigger_notify_box .trigger_info .toast_message_timer,
.trigger_notify_box .trigger_info .trigger_notify_timer,
.trigger_notify_box .trigger_info .trigger_progress { background: #2563eb; }

.trigger_notify_box .toast_message_success::before,
.trigger_notify_box .trigger_success::before {
    content: "\2713";
    background: #dcfce7;
    color: #16a34a;
}

.trigger_notify_box .toast_message_error::before,
.trigger_notify_box .trigger_error::before {
    content: "!";
    background: #ffe4e6;
    color: #e11d48;
}

.trigger_notify_box .toast_message_alert::before,
.trigger_notify_box .trigger_alert::before {
    content: "!";
    background: #ffedd5;
    color: #f59e0b;
}

.trigger_notify_box .toast_message_info::before,
.trigger_notify_box .trigger_info::before {
    content: "i";
    background: #dbeafe;
    color: #2563eb;
}

.trigger_notify_box .toast_message_icon {
    display: none !important;
}

.trigger_notify_box .ajax_close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    opacity: 1;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.trigger_notify_box .ajax_close::before,
.trigger_notify_box .ajax_close::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 1.5px;
    border-radius: 99px;
    background: currentColor;
}

.trigger_notify_box .ajax_close::before {
    transform: rotate(45deg);
}

.trigger_notify_box .ajax_close::after {
    transform: rotate(-45deg);
}

.trigger_notify_box .ajax_close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.06);
    color: #4b5563;
    transform: rotate(90deg);
}

.trigger_notify_box .toast_message_timer,
.trigger_notify_box .trigger_notify_timer,
.trigger_notify_box .trigger_progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    opacity: 1;
    z-index: 1;
}

.trigger_notify_box .app_toast_timer_run {
    animation-name: appToastTimer;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.trigger_notify_box .trigger_progress span {
    display: none;
}

.toast_message_actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    grid-column: 2;
    margin-top: 12px;
}

.toast_message_actions a,
.toast_message_actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: #0f766e;
    font: inherit;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    cursor: pointer;
}

.toast_message_actions a:hover,
.toast_message_actions button:hover {
    background: rgba(15, 118, 110, 0.08);
}

.trigger_notify_box .toast_message_info .toast_message_actions a,
.trigger_notify_box .toast_message_info .toast_message_actions button,
.trigger_notify_box .trigger_info .toast_message_actions a,
.trigger_notify_box .trigger_info .toast_message_actions button {
    color: #2563eb;
}

.trigger_notify_box .toast_message_info .toast_message_actions a:hover,
.trigger_notify_box .toast_message_info .toast_message_actions button:hover,
.trigger_notify_box .trigger_info .toast_message_actions a:hover,
.trigger_notify_box .trigger_info .toast_message_actions button:hover {
    background: rgba(37, 99, 235, 0.08);
}

.trigger_notify_box .toast_message_alert .toast_message_actions a,
.trigger_notify_box .toast_message_alert .toast_message_actions button,
.trigger_notify_box .trigger_alert .toast_message_actions a,
.trigger_notify_box .trigger_alert .toast_message_actions button {
    color: #b45309;
}

.trigger_notify_box .toast_message_alert .toast_message_actions a:hover,
.trigger_notify_box .toast_message_alert .toast_message_actions button:hover,
.trigger_notify_box .trigger_alert .toast_message_actions a:hover,
.trigger_notify_box .trigger_alert .toast_message_actions button:hover {
    background: rgba(180, 83, 9, 0.08);
}

.trigger_notify_box .toast_message_error .toast_message_actions a,
.trigger_notify_box .toast_message_error .toast_message_actions button,
.trigger_notify_box .trigger_error .toast_message_actions a,
.trigger_notify_box .trigger_error .toast_message_actions button {
    color: #e11d48;
}

.trigger_notify_box .toast_message_error .toast_message_actions a:hover,
.trigger_notify_box .toast_message_error .toast_message_actions button:hover,
.trigger_notify_box .trigger_error .toast_message_actions a:hover,
.trigger_notify_box .trigger_error .toast_message_actions button:hover {
    background: rgba(225, 29, 72, 0.08);
}

@keyframes appToastBounceIn {
    0% {
        opacity: 0;
        transform: translateX(120%);
    }
    58% {
        opacity: 1;
        transform: translateX(-14px);
    }
    74% {
        transform: translateX(7px);
    }
    88% {
        transform: translateX(-3px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes appToastClickBounce {
    0% {
        transform: translateX(0);
    }
    45% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes appToastExitRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    18% {
        opacity: 1;
        transform: translateX(-8px);
    }
    100% {
        opacity: 1;
        transform: translateX(120%);
    }
}

@keyframes appToastTimer {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .trigger_notify_box {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .trigger_notify_box .toast_message,
    .trigger_notify_box .trigger {
        padding: 14px 36px 17px 14px;
        font-size: 0.84rem;
    }
}

.btn_loading,
button.btn_loading,
.btn.btn_loading,
.btn-submit.btn_loading {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: wait !important;
    pointer-events: none;
}

.btn_loading .app_button_loader {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0.9;
    animation: appButtonLoaderSpin 0.7s linear infinite;
}

.btn_loading .form_load,
button.btn_loading .form_load {
    display: none !important;
}

@keyframes appButtonLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}
