.tg-toast-stack,
.tg-snackbar-stack {
    position: fixed;
    top: max(16px, env(safe-area-inset-top, 0px) + 8px);
    left: 50%;
    z-index: 3200;
    display: grid;
    gap: 8px;
    width: min(1080px, calc(100vw - 40px));
    transform: translateX(-50%);
    pointer-events: none;
}

.tg-toast-stack[data-tg-toast-ready="0"],
.tg-snackbar-stack[data-tg-toast-ready="0"] {
    visibility: hidden;
}

.tg-toast-stack[data-tg-toast-ready="1"],
.tg-snackbar-stack[data-tg-toast-ready="1"] {
    visibility: visible;
}

.tg-snackbar--floating {
    pointer-events: auto;
}

.tg-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 18px 20px;
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
    transform-origin: top center;
    filter: blur(4px);
    will-change: opacity, transform, filter;
    transition:
        opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.34s ease;
    pointer-events: auto;
}

.tg-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.tg-toast.is-leaving {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
    filter: blur(4px);
}

.tg-toast__icon-shell {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tg-toast__icon,
.tg-toast__close-icon {
    width: 18px;
    height: 18px;
}

.tg-toast__body {
    min-width: 0;
}

.tg-toast__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.38;
    font-family: "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.tg-toast__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #8e8e93;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.2s ease;
}

.tg-toast__close:hover,
.tg-toast__close:focus {
    background: rgba(0, 0, 0, 0.04);
    color: #11181f;
    transform: scale(1.04);
    outline: none;
}

@media (min-width: 992px) {
    .tg-toast-stack,
    .tg-snackbar-stack {
        top: auto;
        bottom: max(16px, env(safe-area-inset-bottom, 0px) + 8px);
    }
}

@media (max-width: 991.98px) {
    .tg-toast-stack,
    .tg-snackbar-stack {
        top: max(12px, env(safe-area-inset-top, 0px) + 6px);
        bottom: auto;
        width: calc(100vw - 20px);
    }

    .tg-toast {
        padding: 15px 16px;
    }

    .tg-toast__icon-shell {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .tg-toast__text {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-toast,
    .tg-toast__icon-shell,
    .tg-toast__close {
        transition: none;
    }
}
