/* ============================================================================
   FB & KA LIVING DESIGN SYSTEM • MOBILE CHECKOUT STYLESHEET (CRO V4.8)
   100% Tuân thủ Design System Tokens: Bố cục 480px, 4 Theme Ngành, Stepper Wizard
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap");
@import url("fb_design_system.css");
@import url("fb_design_system_sme.css");
@import url("fb_design_system_v2.css");

html, body, button, input, select, textarea, div, span, label, h1, h2, h3, h4 {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* THEME MÀU SẮC MẶC ĐỊNH & THỪA HƯỞNG STUDIO */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --theme-contrast-color: #ffffff;
}

/* WIZARD STEPPER */
.fb-wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-surface, #fff);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border, #e2e8f0);
  margin-bottom: 12px;
}

.fb-wizard-step {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  transition: all 0.2s ease;
}

.fb-wizard-step.active {
  color: var(--primary);
  font-weight: 700;
}

.fb-wizard-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.fb-wizard-step.active .fb-wizard-step-num {
  background: var(--primary);
  color: #fff;
}

.fb-wizard-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 6px;
}

/* TOAST NOTIFICATION PHẲNG BÊN PHẢI (NỀN TRẮNG) */
.fb-mobile-toast {
  position: fixed;
  top: 14px;
  right: 14px;
  left: auto;
  transform: translateX(110%);
  background: #ffffff;
  color: #1e293b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0284c7;
  z-index: 99999;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 28px);
}

.fb-mobile-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.fb-mobile-toast.success { border-left-color: #10b981; }
.fb-mobile-toast.info { border-left-color: #38bdf8; }
.fb-mobile-toast.warning { border-left-color: #f59e0b; }
.fb-mobile-toast.error { border-left-color: #ef4444; }

/* MODAL ĐỐI SOÁT ĐA BẢNG */
#relational-audit-modal[style*="display:flex"],
#relational-audit-modal[style*="display: flex"] {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 100000 !important;
}

/* ============================================================================
   BỐ CỤC 2 CỘT HIỆN ĐẠI CHO DESKTOP (CHUẨN GRABFOOD & TOAST POS)
   ============================================================================ */
@media (max-width: 991px) {
  .fb-desktop-sidebar-pane {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .fb-mobile-container {
    max-width: 1080px !important;
    margin: 24px auto 60px !important;
    padding: 24px 28px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    min-height: auto !important;
  }

  .fb-checkout-desktop-split {
    display: flex !important;
    gap: 28px !important;
    align-items: flex-start !important;
  }

  .fb-desktop-main-col {
    flex: 1 1 62% !important;
    min-width: 0 !important;
  }

  .fb-desktop-sidebar-pane {
    flex: 0 0 380px !important;
    width: 380px !important;
    position: sticky !important;
    top: 24px !important;
    display: block !important;
  }

  #item-list-mount {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .fb-sticky-footer {
    display: none !important;
  }
}


