.fp-toast-stack {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.fp-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 16px 18px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    color: #ffffff;
    font-family: Rubik, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    pointer-events: auto;
    animation: fp-toast-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.fp-toast--success {
    background: #1b8a3f;
}

.fp-toast--error {
    background: #e4002b;
}

.fp-toast__icon {
    display: flex;
    flex: none;
    width: 22px;
    height: 22px;
}

.fp-toast__icon svg {
    width: 100%;
    height: 100%;
}

.fp-toast__text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.fp-toast__bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.85);
    transform-origin: left center;
    animation: fp-toast-bar var(--fp-toast-ms, 3200ms) linear forwards;
}

.fp-toast:hover .fp-toast__bar {
    animation-play-state: paused;
}

.fp-toast.is-leaving {
    pointer-events: none;
    animation: fp-toast-out 0.5s cubic-bezier(0.55, 0, 0.8, 0.4) both;
}

@keyframes fp-toast-in {
    from {
        opacity: 0;
        transform: translateX(calc(100% + 24px));
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fp-toast-out {
    0% {
        opacity: 1;
        transform: none;
        max-height: var(--fp-toast-h, 120px);
        margin-bottom: 0;
        padding-top: 14px;
        padding-bottom: 18px;
    }
    60% {
        opacity: 0;
        transform: translateX(calc(100% + 24px));
        max-height: var(--fp-toast-h, 120px);
        margin-bottom: 0;
        padding-top: 14px;
        padding-bottom: 18px;
    }
    100% {
        opacity: 0;
        transform: translateX(calc(100% + 24px));
        max-height: 0;
        margin-bottom: -10px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@keyframes fp-toast-bar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

@keyframes fp-toast-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fp-toast-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-toast {
        animation-name: fp-toast-fade-in;
        animation-duration: 0.12s;
    }

    .fp-toast.is-leaving {
        animation-name: fp-toast-fade-out;
        animation-duration: 0.12s;
    }
}
