/* Sonner-inspired colors adapted to Notyf and the site's theme tokens. */
:root {
    --notyf-normal-bg: #fff;
    --notyf-normal-border: var(--border-color, #D4D4E1);
    --notyf-normal-text: var(--text-primary, #303036);

    --notyf-success-bg: hsl(143, 85%, 96%);
    --notyf-success-border: hsl(145, 92%, 87%);
    --notyf-success-text: hsl(140, 100%, 27%);

    --notyf-info-bg: hsl(208, 100%, 97%);
    --notyf-info-border: hsl(221, 91%, 93%);
    --notyf-info-text: hsl(210, 92%, 45%);

    --notyf-warning-bg: hsl(49, 100%, 97%);
    --notyf-warning-border: hsl(49, 91%, 84%);
    --notyf-warning-text: hsl(31, 92%, 45%);

    --notyf-error-bg: hsl(359, 100%, 97%);
    --notyf-error-border: hsl(359, 100%, 94%);
    --notyf-error-text: hsl(360, 100%, 45%);
}

.notyf__toast {
    max-width: min(420px, calc(100vw - 32px));
    padding: 0 8px;
    color: var(--notyf-normal-text) !important;
    background: var(--notyf-normal-bg) !important;
    border: 1px solid var(--notyf-normal-border);
    border-radius: var(--el-border-radius, 10px) !important;
    box-shadow: var(--el-box-shadow, 2px 4px 20px 1px rgba(45, 45, 45, 0.13)) !important;
}

.notyf__wrapper {
    padding: 15px 16px;
    border-radius: inherit;
    font-family: var(--font-family, "ALSSchlangesans"), sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.notyf__message {
    color: var(--notyf-normal-text);
    font-weight: 500;
}

.notyf__toast--success {
    color: var(--notyf-success-text) !important;
    background: var(--notyf-success-bg) !important;
    border-color: var(--notyf-success-border);
}

.notyf__toast--success .notyf__message {
    color: var(--notyf-success-text) !important;
}

.notyf__toast--success .notyf__message a {
    color: var(--notyf-success-text) !important;
    text-decoration: none;
}

.notyf__toast--success .notyf__icon--success {
    color: #fff !important;
    background: var(--notyf-success-text) !important;
}

.notyf__toast--error {
    color: var(--notyf-error-text) !important;
    background: var(--notyf-error-bg) !important;
    border-color: var(--notyf-error-border);
}

.notyf__toast--error .notyf__message {
    color: var(--notyf-error-text) !important;
}

.notyf__toast--error .notyf__message a {
    color: var(--notyf-error-text) !important;
    text-decoration: none;
}

.notyf__toast--error .notyf__icon--error {
    color: #fff !important;
    background: var(--notyf-error-text) !important;
}

.notyf__toast--info {
    color: var(--notyf-info-text) !important;
    background: var(--notyf-info-bg) !important;
    border-color: var(--notyf-info-border);
}

.notyf__toast--info .notyf__message,
.notyf__toast--warning .notyf__message {
    color: inherit;
}

.notyf__toast--warning {
    color: var(--notyf-warning-text) !important;
    background: var(--notyf-warning-bg) !important;
    border-color: var(--notyf-warning-border);
}

/* The bright inline ripple color from Notyf clashes with the softer palette. */
.notyf__ripple {
    display: none !important;
}

.notyf__toast--dismissible .notyf__wrapper {
    padding-right: 48px;
}

.notyf__dismiss {
    right: 6px;
    width: 34px;
    margin-right: 0;
}

.notyf__dismiss-btn {
    background-color: transparent !important;
    border-radius: 0 var(--el-border-radius, 10px) var(--el-border-radius, 10px) 0;
    opacity: 1 !important;
}

.notyf__dismiss-btn:hover,
.notyf__dismiss-btn:active {
    background-color: transparent !important;
    opacity: 1 !important;
}

.notyf__toast--success .notyf__dismiss-btn::before,
.notyf__toast--success .notyf__dismiss-btn::after {
    background-color: var(--notyf-success-text) !important;
}

.notyf__toast--error .notyf__dismiss-btn::before,
.notyf__toast--error .notyf__dismiss-btn::after {
    background-color: var(--notyf-error-text) !important;
}

.notyf__dismiss-btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.notyf__toast--success .notyf__dismiss-btn:focus-visible {
    outline: 2px solid var(--notyf-success-border);
    outline-offset: -4px;
}

.notyf__toast--error .notyf__dismiss-btn:focus-visible {
    outline: 2px solid var(--notyf-error-border);
    outline-offset: -4px;
}

@media (max-width: 480px) {
    .notyf__toast {
        width: min(100%, 420px);
        border-radius: var(--el-border-radius, 10px) !important;
    }

    .notyf__wrapper {
        padding: 14px 15px;
    }

    .notyf__toast--dismissible .notyf__wrapper {
        padding-right: 48px;
    }

    .notyf__dismiss {
        right: 6px;
        width: 34px;
        margin-right: 0;
    }
}
