:root {
    --crm-alertify-surface: rgba(255, 251, 245, 0.98);
    --crm-alertify-surface-soft: rgba(252, 248, 243, 0.96);
    --crm-alertify-ink: #232830;
    --crm-alertify-border: rgba(234, 223, 206, 0.92);
    --crm-alertify-shadow: 0 18px 42px rgba(46, 34, 18, 0.14);
    --crm-alertify-warning: #daaa3c;
    --crm-alertify-success: #9cbd72;
    --crm-alertify-danger: #d96e59;
}

.alertify-notifier {
    font-family: 'Poppins', sans-serif;
    z-index: 4000;
    pointer-events: none;
}

.alertify-notifier.ajs-top-right,
.alertify-notifier.ajs-top.ajs-right,
.alertify-notifier.ajs-right {
    top: 14px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.alertify-notifier .ajs-message {
    width: min(420px, calc(100vw - 28px));
    min-width: 0;
    max-width: calc(100vw - 28px);
    margin-bottom: 0.85rem;
    padding: 1rem 1.1rem 1rem 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--crm-alertify-border);
    background: linear-gradient(135deg, var(--crm-alertify-surface) 0%, var(--crm-alertify-surface-soft) 100%);
    color: var(--crm-alertify-ink);
    box-shadow: var(--crm-alertify-shadow);
    text-shadow: none;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.alertify-notifier.ajs-top-right .ajs-message,
.alertify-notifier.ajs-top.ajs-right .ajs-message,
.alertify-notifier.ajs-right .ajs-message {
    right: auto !important;
    left: auto !important;
    margin-left: auto;
    transform: translate3d(calc(100% + 20px), 0, 0);
}

.alertify-notifier.ajs-top-right .ajs-message.ajs-visible,
.alertify-notifier.ajs-top.ajs-right .ajs-message.ajs-visible,
.alertify-notifier.ajs-right .ajs-message.ajs-visible {
    right: auto !important;
    left: auto !important;
    transform: translate3d(0, 0, 0);
}

.alertify-notifier .ajs-message::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-radius: 18px 0 0 18px;
    background: var(--crm-alertify-warning);
}

.alertify-notifier .ajs-message.ajs-success {
    border-color: rgba(156, 189, 114, 0.36);
}

.alertify-notifier .ajs-message.ajs-success::before {
    background: var(--crm-alertify-success);
}

.alertify-notifier .ajs-message.ajs-error {
    border-color: rgba(217, 110, 89, 0.34);
}

.alertify-notifier .ajs-message.ajs-error::before {
    background: var(--crm-alertify-danger);
}

.alertify-notifier .ajs-message.ajs-warning {
    border-color: rgba(218, 170, 60, 0.34);
}

.alertify-notifier .ajs-message.ajs-warning::before {
    background: var(--crm-alertify-warning);
}

.alertify-notifier .ajs-message.ajs-message {
    border-color: rgba(218, 170, 60, 0.28);
}

@media (max-width: 767.98px) {
    .alertify-notifier.ajs-top-right,
    .alertify-notifier.ajs-top.ajs-right,
    .alertify-notifier.ajs-right {
        top: 10px !important;
        padding: 0 10px;
    }

    .alertify-notifier .ajs-message {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        padding: 0.95rem 1rem 0.95rem 1.15rem;
    }
}
