/* Mosaic Wallet Portal - Toast Notification System */
.mosaic-wallet-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.mosaic-wallet-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 340px;
    max-width: 480px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--mosaic-wallet-toast-accent);
    color: #f0f0f0;
    font-family: "Montserrat", "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    animation: mosaic-wallet-toast-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mosaic-wallet-toast.mosaic-wallet-toast-exit {
    animation: mosaic-wallet-toast-slide-out 0.25s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.mosaic-wallet-toast-success {
    --mosaic-wallet-toast-accent: #00c853;
}

.mosaic-wallet-toast-error {
    --mosaic-wallet-toast-accent: #ff1744;
}

.mosaic-wallet-toast-warning {
    --mosaic-wallet-toast-accent: #ff9100;
}

.mosaic-wallet-toast-info {
    --mosaic-wallet-toast-accent: #1d44b8;
}

.mosaic-wallet-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

.mosaic-wallet-toast-icon svg {
    width: 22px;
    height: 22px;
}

.mosaic-wallet-toast-body {
    flex: 1;
    min-width: 0;
}

.mosaic-wallet-toast-title {
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--mosaic-wallet-toast-accent);
    margin-bottom: 4px;
}

.mosaic-wallet-toast-message {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mosaic-wallet-toast-close {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 1px 0 0 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    font-size: 0;
}

.mosaic-wallet-toast-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.mosaic-wallet-toast-close svg {
    width: 14px;
    height: 14px;
}

.mosaic-wallet-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--mosaic-wallet-toast-accent);
    opacity: 0.5;
    border-radius: 0 0 0 14px;
    animation: mosaic-wallet-toast-progress var(--mosaic-wallet-toast-duration) linear forwards;
}

@keyframes mosaic-wallet-toast-slide-in {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes mosaic-wallet-toast-slide-out {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes mosaic-wallet-toast-progress {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

@media (max-width: 520px) {
    .mosaic-wallet-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }
    .mosaic-wallet-toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}
