/* Notifications toast — Against Stones (ateliers, soutenir, paiement) */
#as-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 11050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.as-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: min(420px, 100%);
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(18, 22, 29, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(255, 215, 0, 0.08);
    color: #f8fafc;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    pointer-events: auto;
    animation: asToastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.as-toast.fade-out {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.as-toast-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.2;
}

.as-toast-content {
    flex: 1;
}

.as-toast-success {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.as-toast-error {
    border-color: rgba(239, 68, 68, 0.45);
}

.as-toast-warning {
    border-color: rgba(251, 146, 60, 0.45);
}

.as-toast-info {
    border-color: rgba(255, 215, 0, 0.35);
}

@keyframes asToastIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 11040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.payment-checkout-overlay[hidden] {
    display: none !important;
}

.payment-checkout-overlay__panel {
    max-width: 360px;
    width: 100%;
    padding: 28px 24px;
    border-radius: 18px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 215, 0, 0.22);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.payment-checkout-overlay__spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 215, 0, 0.18);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: asPaymentSpin 0.85s linear infinite;
}

.payment-checkout-overlay__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.5;
}

@keyframes asPaymentSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
    #as-toast-container {
        top: auto;
        bottom: 16px;
        align-items: stretch;
    }

    .as-toast {
        max-width: none;
    }
}
