/* ==========================================================================
   LORD'S 360 - MODERN WEBSITE STANDARD TOAST NOTIFICATIONS
   Explicitly overrides any Bootstrap 5 / framework toast suppression
   ========================================================================== */

.toast-stack {
    position: fixed !important;
    top: 1.25rem !important;
    right: 1.25rem !important;
    z-index: 100000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: min(420px, calc(100vw - 1.5rem)) !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Hanken Grotesk', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Force override of Bootstrap's .toast and .toast:not(.show) */
.toast-stack .toast,
.toast-stack .toast:not(.show),
.toast:not(.show),
.toast {
    --toast-text: #f2f2f2;
    --toast-soft: #b9b6ae;
    --toast-dim: #8f8b82;
    --toast-gold: #f2ca50;
    --toast-gold-soft: rgba(242, 202, 80, 0.16);

    display: grid !important;
    visibility: visible !important;
    pointer-events: auto !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 0.85rem !important;
    align-items: center !important;
    padding: 0.95rem 1.15rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(242, 202, 80, 0.35) !important;
    background:
        linear-gradient(145deg, rgba(28, 24, 14, 0.98), rgba(12, 14, 16, 0.98)),
        rgba(18, 20, 22, 0.98) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.15) !important;
    color: var(--toast-text) !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: translateX(115%) !important;
    opacity: 0 !important;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.toast-stack .toast.is-visible,
.toast-stack .toast.show,
.toast.is-visible,
.toast.show {
    display: grid !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.toast-stack .toast.is-leaving,
.toast.is-leaving {
    transform: translateX(115%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.toast__icon {
    box-sizing: border-box !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    flex: 0 0 2.25rem !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--toast-gold-soft) !important;
    color: var(--toast-gold) !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    overflow: hidden !important;
}

.toast__body {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.toast__title {
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--toast-gold) !important;
    line-height: 1.2 !important;
}

.toast__message {
    margin: 0.25rem 0 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
    color: var(--toast-soft) !important;
    word-break: break-word !important;
    font-weight: 500 !important;
}

.toast__close {
    border: 0 !important;
    background: transparent !important;
    color: var(--toast-dim) !important;
    cursor: pointer !important;
    padding: 0.3rem !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: all 0.15s ease !important;
}

.toast__close:hover {
    color: var(--toast-text) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Success variant */
.toast--success {
    border-color: rgba(95, 191, 138, 0.55) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(95, 191, 138, 0.2) !important;
}

.toast--success .toast__icon {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.toast--success .toast__title {
    color: #34d399 !important;
}

/* Warning variant */
.toast--warning {
    border-color: rgba(242, 202, 80, 0.55) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(242, 202, 80, 0.2) !important;
}

.toast--warning .toast__icon {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
}

.toast--warning .toast__title {
    color: #fbbf24 !important;
}

/* Error variant */
.toast--error {
    border-color: rgba(239, 68, 68, 0.55) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(239, 68, 68, 0.2) !important;
}

.toast--error .toast__icon {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}

.toast--error .toast__title {
    color: #f87171 !important;
}

/* Info variant */
.toast--info {
    border-color: rgba(59, 130, 246, 0.55) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(59, 130, 246, 0.2) !important;
}

.toast--info .toast__icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
}

.toast--info .toast__title {
    color: #60a5fa !important;
}

@media (max-width: 640px) {
    .toast-stack {
        top: auto !important;
        bottom: 1.25rem !important;
        right: 0.85rem !important;
        left: 0.85rem !important;
        width: auto !important;
    }

    .toast,
    .toast.is-leaving {
        transform: translateY(120%) !important;
    }

    .toast.is-visible,
    .toast.show {
        transform: translateY(0) !important;
    }
}
