
.off-messages-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    /* top: 56px; right: 16px; */
}

/* Wrapper */
.messages {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;

    width: 320px;
    max-width: calc(100vw - 2rem);

    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bt-messages {
    max-width: 420px;
    margin: 1rem auto;
    padding: 0 1rem;

    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.messages.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;

    max-width: 420px;
    width: calc(100% - 2rem);

    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Base toast */
.alert {
    background: #ffffff;
    color: #1f2937;

    padding: 0.75rem 1rem 0.75rem 0.75rem;
    border-radius: 0.5rem;

    box-shadow:
        0 10px 15px -3px rgba(0,0,0,0.08),
        0 4px 6px -2px rgba(0,0,0,0.04);

    font-size: 0.9rem;
    line-height: 1.4;

    display: flex;
    align-items: flex-start;
    gap: 0.75rem;

    /*visibility: hidden;*/
    transform: translateX(calc(100% + 1rem));
    opacity: 0;

    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
        /*visibility 0s linear 0.3s;*/
}

.bt-alert {
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;

    font-size: 0.95rem;
    line-height: 1.4;

    border: 1px solid transparent;
    background: var(--color-bg);
    color: var(--color-text);
}

/* Visible state */
.alert.is-visible {
    /*visibility: visible;*/
    transform: translateX(0);
    opacity: 1;

    transition:
        transform 0.3s ease,
        opacity 0.25s ease;
}

/* Accent bar */
.alert::before {
    content: "";
    width: 4px;
    border-radius: 2px;
    align-self: stretch;
    background: var(--alert-color);
}

.alert-success {
    background: #eaf6ee;
    border-color: var(--color-success);
    color: var(--color-success);
}

.alert-error,
.alert-danger {
    background: #fdeaea;
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.alert-warning {
    background: #fff8e1;
    border-color: var(--color-warning);
    color: #856404;
}

.alert-info {
    background: #e7f5fa;
    border-color: var(--color-info);
    color: #055160;
}

.alert .close {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;

    background: none;
    border: none;
    cursor: pointer;

    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
}

.alert .close:hover {
    opacity: 0.7;
}

.fade.show {
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}