/* Lykke Snackbar — angelehnt an MUI Snackbar (bottom-center, auto-hide) */
.lykke-snackbar-root {
    position: fixed;
    z-index: 15000;
    left: 50%;
    bottom: 24px;
    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%;
}

.lykke-snackbar {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 288px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #323232;
    color: #fff;
    box-shadow:
        0 3px 5px -1px rgba(0, 0, 0, 0.2),
        0 6px 10px 0 rgba(0, 0, 0, 0.14),
        0 1px 18px 0 rgba(0, 0, 0, 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: #1b4332;
}

.lykke-snackbar--error {
    background: #5c1a1a;
}

.lykke-snackbar--warning {
    background: #5c4a12;
}

.lykke-snackbar--info {
    background: #1e3a5f;
}

.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__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(255, 255, 255, 0.12);
}

.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 {
        bottom: 16px;
        max-width: calc(100vw - 24px);
    }

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