.toast {
    position: fixed;
    z-index: 60;
    top: 78px;
    right: 22px;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: min(350px, calc(100% - 40px));
    max-width: none;
    margin: 0;
    padding: 15px;
    transform: translateY(-10px);
    border: 1px solid #4e3b49;
    border-radius: 12px;
    background: #1b1820f5;
    box-shadow: 0 10px 35px #0005;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(12px);
}

.toast.visible {
    pointer-events: auto;
}

.toast > div {
    min-width: 0;
    flex: 1;
}

.toast strong {
    color: #fff;
    font-size: 13px;
}

.toast p {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: #c7c0cd;
    font-size: 12px;
    line-height: 1.55;
}

.notice-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ff126120;
    color: #ff79a9;
    font-size: 14px;
    font-weight: 700;
}

.toast[data-type="error"] {
    border-color: #f45c6c70;
}

.toast > button {
    padding: 0 2px;
    color: #bfb6c8;
    font-size: 23px;
    line-height: 1;
}

@media (max-width: 760px) {
    .toast {
        top: calc(76px + env(safe-area-inset-top));
        right: 12px;
        bottom: auto;
        left: auto;
        gap: 9px;
        width: min(310px, calc(100% - 24px));
        padding: 11px 12px;
        border-radius: 10px;
    }

    .toast strong {
        font-size: 12px;
    }

    .toast p {
        margin-top: 3px;
        font-size: 11px;
    }
}
