/* ═══════════════════════════════════════════════════════
   FraudSpy – Branded Checkout Error Modal
   Brand: #13357A (primary) · #3A5FAA (accent) · #0F172A (text)
   ═══════════════════════════════════════════════════════ */

/* ── Overlay ── */
.fs-error-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    animation: fsOverlayIn 0.22s ease forwards !important;
}
.fs-error-overlay.fs-hiding {
    animation: fsOverlayOut 0.18s ease forwards !important;
}
@keyframes fsOverlayIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fsOverlayOut { from { opacity: 1; } to { opacity: 0; } }

/* ── Modal Card ── */
.fs-error-modal {
    position: relative !important;
    width: 100% !important;
    max-width: 440px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 32px 80px -8px rgba(19, 53, 122, 0.3),
                0 0 0 1px rgba(19, 53, 122, 0.08) !important;
    animation: fsModalIn 0.32s cubic-bezier(0.34, 1.46, 0.64, 1) forwards !important;
}
.fs-error-overlay.fs-hiding .fs-error-modal {
    animation: fsModalOut 0.18s ease forwards !important;
}
@keyframes fsModalIn {
    from { opacity: 0; transform: scale(0.86) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fsModalOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.94) translateY(10px); }
}

/* ── Header — FraudSpy Navy Brand ── */
.fs-error-modal__header {
    background: linear-gradient(150deg, #0F295F 0%, #13357A 45%, #1E4DA0 100%) !important;
    padding: 32px 24px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    position: relative !important;
    overflow: hidden !important;
    border-bottom: none !important;
}

/* Top-right decorative circle */
.fs-error-modal__header::before {
    content: '' !important;
    position: absolute !important;
    top: -40px !important;
    right: -40px !important;
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    background: rgba(58, 95, 170, 0.25) !important;
    pointer-events: none !important;
}
/* Bottom-left decorative circle */
.fs-error-modal__header::after {
    content: '' !important;
    position: absolute !important;
    bottom: -30px !important;
    left: -20px !important;
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    pointer-events: none !important;
}

/* ── Close button — inside header, top-right ── */
.fs-error-modal__close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.18s, color 0.18s, transform 0.18s !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    z-index: 2 !important;
    min-height: unset !important;
    min-width: unset !important;
    box-shadow: none !important;
}
.fs-error-modal__close:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}
.fs-error-modal__close svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
    fill: none !important;
}

/* ── Brand pill ── */
.fs-error-modal__brand {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    z-index: 1 !important;
}
.fs-error-modal__brand-icon {
    width: 26px !important;
    height: 26px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.fs-error-modal__brand-icon svg {
    width: 14px !important;
    height: 14px !important;
    color: #fff !important;
}
.fs-error-modal__brand-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
}

/* ── Warning icon ── */
.fs-error-modal__icon-wrap {
    z-index: 1 !important;
}
.fs-error-modal__icon-ring {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fsPulse 2.4s ease-in-out infinite !important;
}
@keyframes fsPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.12), 0 0 0 0 rgba(255,255,255,0.06); }
    50%       { box-shadow: 0 0 0 10px rgba(255,255,255,0.06), 0 0 0 22px rgba(255,255,255,0.02); }
}
.fs-error-modal__icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.fs-error-modal__icon svg {
    width: 26px !important;
    height: 26px !important;
    color: #fff !important;
}

/* ── Header title ── */
.fs-error-modal__header-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
    z-index: 1 !important;
    text-align: center !important;
}

/* ── Body ── */
.fs-error-modal__body {
    padding: 24px 26px 26px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    background: #fff !important;
}

/* ── Error message box ── */
.fs-error-modal__message-box {
    background: #F8FAFF !important;
    border: 1px solid #D6E0F5 !important;
    border-left: 3px solid #13357A !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
}
.fs-error-modal__message {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    text-align: left !important;
}
.fs-error-modal__message ul.fs-error-list,
.fs-error-modal__message ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.fs-error-modal__message ul li {
    font-size: 13.5px !important;
    color: #334155 !important;
}
.fs-error-modal__message ul li::before {
    content: '·' !important;
    margin-right: 6px !important;
    color: #13357A !important;
    font-weight: 700 !important;
}

/* ── Dismiss button ── */
.fs-error-modal__btn {
    width: 100% !important;
    padding: 13px 20px !important;
    border-radius: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.01em !important;
    background: linear-gradient(135deg, #13357A 0%, #3A5FAA 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(19, 53, 122, 0.3) !important;
    margin: 0 !important;
    min-height: unset !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.fs-error-modal__btn:hover {
    background: linear-gradient(135deg, #0F295F 0%, #2C4E92 100%) !important;
    box-shadow: 0 6px 22px rgba(19, 53, 122, 0.42) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}
.fs-error-modal__btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(19, 53, 122, 0.25) !important;
}

/* ── Button Resets ── */
.fs-error-modal button::before,
.fs-error-modal button::after {
    display: none !important;
}
.fs-error-modal * {
    box-sizing: border-box !important;
}

/* ── Footer note ── */
.fs-error-modal__footer {
    text-align: center !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 11.5px !important;
    color: #94A3B8 !important;
    margin: 0 !important;
}

/* ── Shake attention ── */
@keyframes fsShake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-7px); }
    40%      { transform: translateX(7px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.fs-error-modal.fs-shake {
    animation: fsShake 0.45s ease !important;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .fs-error-modal__header { padding: 24px 18px 22px !important; }
    .fs-error-modal__body   { padding: 20px 18px 22px !important; }
}
