/* popover=manual keeps snackbar in the top layer above native <dialog> modals (e.g. Neue Vorlage) */
.lykke-snackbar-root::backdrop {
    background: transparent;
    pointer-events: none;
}

.lykke-snackbar-root:popover-open,
.lykke-snackbar-root {
    position: fixed;
    z-index: 2147483647;
    inset: auto auto 24px 50%;
    margin: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    max-width: min(568px, calc(100vw - 32px));
    width: 100%;
    border: none;
    padding: 0;
    background: transparent;
    overflow: visible;
}

.lykke-snackbar {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 288px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.08),
        0 10px 24px -4px rgba(15, 23, 42, 0.12);
    font-size: 14px;
    line-height: 1.45;
    animation: lykkeSnackbarIn 0.22s cubic-bezier(0, 0, 0.2, 1);
}

.lykke-snackbar--closing {
    animation: lykkeSnackbarOut 0.18s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.lykke-snackbar--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.lykke-snackbar--success .lykke-snackbar__icon {
    color: #059669;
}

.lykke-snackbar--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.lykke-snackbar--error .lykke-snackbar__icon {
    color: #dc2626;
}

.lykke-snackbar--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.lykke-snackbar--warning .lykke-snackbar__icon {
    color: #d97706;
}

.lykke-snackbar--info,
.lykke-snackbar--pending {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.lykke-snackbar--info .lykke-snackbar__icon,
.lykke-snackbar--pending .lykke-snackbar__icon {
    color: #2563eb;
}

.lykke-snackbar__icon {
    flex-shrink: 0;
    font-size: 20px;
    margin-top: 1px;
    opacity: 0.95;
}

.lykke-snackbar__body {
    flex: 1;
    min-width: 0;
}

.lykke-snackbar__title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 13px;
    opacity: 0.92;
}

.lykke-snackbar__message {
    word-break: break-word;
}

.lykke-snackbar__action-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lykke-snackbar__action-link .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}

.lykke-snackbar--success .lykke-snackbar__action-link {
    color: #166534;
}

.lykke-snackbar--info .lykke-snackbar__action-link {
    color: #1d4ed8;
}

.lykke-snackbar__close {
    flex-shrink: 0;
    margin: -4px -6px -4px 0;
    padding: 4px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 4px;
    line-height: 0;
    opacity: 0.75;
}

.lykke-snackbar__close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.06);
}

.lykke-snackbar__close .material-symbols-outlined {
    font-size: 20px;
}

@keyframes lykkeSnackbarIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lykke-snackbar--pending .lykke-snackbar__icon {
    animation: lykkeSnackbarSpin 1.1s linear infinite;
}

@keyframes lykkeSnackbarSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes lykkeSnackbarOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
}

@media (max-width: 600px) {
    .lykke-snackbar-root:popover-open,
    .lykke-snackbar-root {
        inset: auto auto 16px 50%;
        max-width: calc(100vw - 24px);
    }

    .lykke-snackbar {
        min-width: 0;
    }
}
