.app-toast {
    --app-toast-duration: 5500ms;
    position: fixed;
    z-index: 1100;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    width: min(100% - 2rem, 42rem);
    min-height: 4.25rem;
    margin: 0 auto;
    padding: .8rem .85rem .8rem 1rem;
    overflow: hidden;
    touch-action: pan-y;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, #173d2d, #244f3c);
    box-shadow: 0 16px 36px rgba(23, 52, 41, .32);
    color: #fff;
    transition: opacity .18s ease, transform .18s ease;
}

.app-toast.is-error {
    background: linear-gradient(135deg, #762e29, #9f433b);
    box-shadow: 0 16px 36px rgba(98, 35, 31, .34);
}

.app-toast.is-hiding {
    opacity: 0;
    transform: translateY(.45rem);
}

.app-toast.is-dragging {
    transition: none;
}

.app-toast__content {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: .6rem;
    min-width: 0;
    padding-right: .25rem;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
}

.app-toast__content > i {
    flex: 0 0 auto;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1rem;
}

.app-toast__close {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .8);
}

.app-toast__close:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.app-toast__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.app-toast__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    transform-origin: left;
    background: #f6d777;
    animation: app-toast-countdown var(--app-toast-duration) linear forwards;
}

@keyframes app-toast-countdown {
    to {
        transform: scaleX(0);
    }
}

@media (min-width: 768px) {
    .app-toast {
        right: 1.5rem;
        bottom: 1.5rem;
        left: auto;
        width: min(25rem, calc(100vw - 3rem));
        margin: 0;
    }
}
