/* NEXORA v22 — checkout viewport, readable dates, strong typography */

/* ---------- GLOBAL TYPOGRAPHY ---------- */
html, body,
body button, body input, body textarea, body select, body option,
body .page-shell, body .site-footer {
  font-weight: 650 !important;
}
body h1, body h2, body h3, body h4, body h5, body h6,
body strong, body b, body th, body label,
body .btn, body .desktop-nav a, body .brand b,
body .eyebrow, body .status, body .kpi strong {
  font-weight: 800 !important;
}
body small, body .muted, body .n19-card-meta, body .n19-card-kicker,
body .footer-bottom {
  font-weight: 650 !important;
}

/* ---------- CHECKOUT / PAYMENT VIEWPORT ---------- */
.modal-backdrop {
  z-index: 8000 !important;
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  padding: 96px 18px 28px !important;
}
.modal.checkout-modal {
  width: min(820px, calc(100vw - 36px)) !important;
  max-width: 820px !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  overflow: visible !important;
  color: #17212b !important;
  background: #ffffff !important;
  border-color: #d6dee7 !important;
}
.checkout-modal .modal-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
  background: #ffffff !important;
  color: #17212b !important;
  border-bottom: 1px solid #dfe6ed !important;
}
.checkout-modal .modal-head h3,
.checkout-modal .modal-body,
.checkout-modal .modal-body p,
.checkout-modal .modal-body label,
.checkout-modal .modal-body span,
.checkout-modal .modal-body strong,
.checkout-modal .modal-body small {
  color: #17212b !important;
}
.checkout-modal .modal-body {
  padding: 22px !important;
}
.checkout-modal .field input,
.checkout-modal .field textarea,
.checkout-modal .field select {
  background: #ffffff !important;
  color: #17212b !important;
  border-color: #cfd8e1 !important;
  font-weight: 650 !important;
}
.checkout-modal .field input::placeholder,
.checkout-modal .field textarea::placeholder {
  color: #788696 !important;
  opacity: 1 !important;
  font-weight: 650 !important;
}
.checkout-modal #checkout-quote,
.checkout-modal .panel {
  color: #17212b !important;
  background: #f8fafc !important;
  border-color: #dfe6ed !important;
}
.checkout-modal #checkout-quote * {
  color: #17212b !important;
}
.checkout-modal .btn-primary {
  font-weight: 800 !important;
}

/* ---------- PERSIAN DATE/TIME PICKER ---------- */
.checkout-modal .persian-picker-wrap { z-index: 5 !important; }
.checkout-modal .pdp-display,
.checkout-modal .pdp-time-display {
  background: #ffffff !important;
  color: #17212b !important;
  border-color: #cfd8e1 !important;
  font-weight: 750 !important;
}
.checkout-modal .pdp-calendar,
.checkout-modal .pdp-time-panel {
  position: absolute !important;
  z-index: 10060 !important;
  background: #ffffff !important;
  color: #17212b !important;
  border: 1px solid #cfd8e1 !important;
  box-shadow: 0 22px 60px rgba(18, 32, 48, .18) !important;
}
.checkout-modal .pdp-calendar-head strong,
.checkout-modal .pdp-weekdays span,
.checkout-modal .pdp-help,
.checkout-modal .pdp-time-option,
.checkout-modal .pdp-day,
.checkout-modal .pdp-nav {
  color: #17212b !important;
  font-weight: 700 !important;
}
.checkout-modal .pdp-weekdays span { color: #526273 !important; }
.checkout-modal .pdp-day {
  background: transparent !important;
  border-color: transparent !important;
}
.checkout-modal .pdp-day:hover {
  background: #edf4ff !important;
  border-color: #aac8f2 !important;
}
.checkout-modal .pdp-day.is-selected {
  background: #2647f5 !important;
  color: #ffffff !important;
  border-color: #2647f5 !important;
  font-weight: 800 !important;
}
.checkout-modal .pdp-day.is-disabled {
  color: #9aa7b4 !important;
  opacity: 1 !important;
}
.checkout-modal .pdp-nav,
.checkout-modal .pdp-time-option {
  background: #f8fafc !important;
  border-color: #cfd8e1 !important;
}
.checkout-modal .pdp-nav:hover,
.checkout-modal .pdp-time-option:hover {
  background: #edf4ff !important;
  border-color: #aac8f2 !important;
}
.checkout-modal .pdp-time-option {
  font-size: 11px !important;
}

/* ---------- GENERAL CALENDAR READABILITY OUTSIDE CHECKOUT ---------- */
.persian-picker-wrap .pdp-display,
.persian-picker-wrap .pdp-time-display {
  font-weight: 750 !important;
}
.persian-picker-wrap .pdp-day,
.persian-picker-wrap .pdp-time-option,
.persian-picker-wrap .pdp-nav {
  font-weight: 700 !important;
}

/* Keep fixed navigation above page content, while checkout overlays it intentionally. */
.topbar { z-index: 5000 !important; }

@media (max-width: 760px) {
  .modal-backdrop {
    padding: 82px 10px 18px !important;
  }
  .modal.checkout-modal {
    width: calc(100vw - 20px) !important;
  }
  .checkout-modal .modal-body {
    padding: 16px !important;
  }
}
