/* ==========================================================
   Knouz Al-Enjaz - RFQ Basket, Drawer & Tracking (kn Theme)
   ========================================================== */

/* Slide-out RFQ Drawer */
.rfq-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  z-index: 1060;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.rfq-drawer.open {
  left: 0;
}

.rfq-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: #ffffff;
}

.rfq-drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.rfq-drawer-title i {
  color: var(--primary-light);
}

.rfq-drawer-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.rfq-drawer-close:hover {
  color: var(--primary-light);
}

/* Drawer Items List */
.rfq-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-body);
}

.rfq-basket-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.rfq-basket-item:hover {
  border-color: var(--primary);
}

.rfq-item-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
}

.rfq-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}

.rfq-item-sku {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.2rem;
}

.rfq-item-delete {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.rfq-item-delete:hover {
  color: var(--danger);
}

.rfq-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

/* Quantity Spinner */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.qty-btn {
  background: var(--bg-input);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.qty-stepper input {
  width: 48px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.rfq-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

.rfq-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.rfq-summary-row strong {
  color: var(--primary);
  font-size: 1.15rem;
}

/* Checkout Stepper Header */
.checkout-stepper-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.checkout-step.completed {
  color: var(--success);
}

.checkout-step.active {
  color: var(--primary);
  font-weight: 800;
}

.checkout-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 800;
  flex-shrink: 0;
}

.checkout-step.completed .checkout-step-num {
  background: #e8f8f0;
  border-color: var(--success);
  color: var(--success);
}

.checkout-step.active .checkout-step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 10px var(--primary-glow);
}

.checkout-step-divider {
  width: 44px;
  height: 2px;
  background: var(--border-color);
  flex-shrink: 0;
}

.checkout-step-divider.completed {
  background: var(--success);
}

/* Empty Cart View in Checkout */
.checkout-empty-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem 2rem;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.checkout-empty-card .empty-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(23, 108, 180, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.checkout-empty-card .empty-icon-circle i {
  font-size: 2.4rem;
  color: var(--primary);
}

.checkout-empty-card .empty-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.checkout-empty-card .empty-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.checkout-empty-card .empty-action-btn {
  font-weight: 800;
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* Mobile Collapsible Summary Bar */
.checkout-mobile-summary-toggle {
  display: none;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.checkout-mobile-summary-toggle:hover {
  background: #f8fafc;
  border-color: var(--primary-light);
}

.checkout-mobile-summary-toggle.open {
  border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
  border-bottom-color: transparent;
}

.mobile-summary-icon-badge {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(23, 108, 180, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mobile-badge-pill {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-summary-title {
  font-weight: 800;
  color: var(--navy);
  font-size: 0.88rem;
  line-height: 1.2;
}

.mobile-summary-action-text {
  font-size: 0.74rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.checkout-mobile-summary-toggle .toggle-icon {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
}

.checkout-mobile-summary-toggle.open .toggle-icon {
  transform: rotate(180deg);
}

.mobile-summary-total-wrap {
  text-align: left;
}

.mobile-total-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.mobile-total-amount {
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 1.15rem;
  line-height: 1.2;
}

.checkout-mobile-summary-content {
  display: none;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  padding: 1rem;
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.checkout-mobile-summary-content.open {
  display: block;
}

.mobile-items-scroll-wrap {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 0.85rem;
  padding-right: 0.25rem;
}

.mobile-calc-breakdown {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}

.calc-row {
  margin-bottom: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.calc-val {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--navy);
}

.calc-val.shipping-val {
  font-weight: 800;
}

.calc-total-row {
  border-top: 1px dashed var(--border-color);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  color: var(--navy);
}

.calc-grand-val {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 900;
}

/* Checkout Layout Grid */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.checkout-form-column {
  min-width: 0;
}

.checkout-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.checkout-card-header {
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.checkout-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.checkout-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0.4rem 0 0 0;
  line-height: 1.5;
}

/* Errors Alert Box */
.checkout-errors-alert {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid var(--danger);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.errors-alert-title {
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.errors-alert-list {
  color: var(--danger);
  font-size: 0.84rem;
  padding-right: 1.5rem;
  margin: 0;
}

/* Form Section Styling */
.checkout-form-section {
  background: #fcfdfe;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-form-section:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 2px 12px rgba(23, 108, 180, 0.06);
}

.checkout-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-section-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(23, 108, 180, 0.1);
  color: var(--primary);
}

.required-star {
  color: var(--danger);
}

.optional-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: normal;
}

/* Responsive Input Grids */
.checkout-inputs-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checkout-inputs-row-city {
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  gap: 1rem;
}

/* Form Inputs with Prefix Icons */
.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  right: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-input-wrap:focus-within .form-input-icon {
  color: var(--primary);
}

.form-control-iconic {
  width: 100%;
  height: 48px;
  padding: 0.75rem 2.85rem 0.75rem 1rem;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-control-iconic:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #ffffff;
}

.checkout-textarea {
  min-height: 85px;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
}

.btn-checkout-submit {
  width: 100%;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1.1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 18px rgba(23, 108, 180, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.checkout-security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

/* Payment Method Cards Grid */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.payment-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.payment-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(23, 108, 180, 0.08);
}

.payment-card.selected {
  border-color: var(--primary);
  background: rgba(23, 108, 180, 0.03);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.payment-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-card-icon {
  font-size: 1.4rem;
  color: var(--primary);
}

.payment-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.payment-card.selected .payment-radio-indicator {
  border-color: var(--primary);
  background: var(--primary);
}

.payment-card.selected .payment-radio-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.payment-card-body {
  flex: 1;
  min-width: 0;
}

.payment-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.payment-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0.25rem 0 0 0;
}

.payment-badge-popular {
  position: absolute;
  top: -9px;
  left: 12px;
  background: var(--color-amber-500, #f59e0b);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* Order Summary Box & Desktop Sticky Sidebar */
.checkout-summary-desktop-col {
  min-width: 0;
}

.checkout-summary-box {
  position: sticky;
  top: calc(var(--header-height, 72px) + 1.5rem);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.desktop-items-scroll-wrap {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.25rem;
  margin-bottom: 1.25rem;
}

.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
}

.checkout-item-thumb-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--border-radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-color);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-item-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--border-radius-sm) - 1px);
}

.checkout-item-qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checkout-item-total {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--navy);
  font-size: 0.98rem;
  white-space: nowrap;
}

.checkout-financial-box {
  background: var(--bg-hover);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
}

.checkout-delivery-notice {
  background: rgba(23, 108, 180, 0.06);
  border: 1px solid var(--primary-light);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--navy);
  line-height: 1.6;
}

/* Trust Guarantee Badges */
.checkout-trust-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkout-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 700;
}

.checkout-trust-item i {
  color: var(--primary);
  font-size: 0.95rem;
}

/* Mobile Sticky Bottom Floating Action Bar */
.checkout-mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--border-color);
  padding: 0.65rem 1rem;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0));
}

.checkout-mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-sticky-info {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.mobile-sticky-val {
  font-size: 1.15rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--primary);
}

.mobile-sticky-btn {
  flex: 1;
  max-width: 220px;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 10px rgba(23, 108, 180, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Tracking Page Stepper */
.tracking-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 2.5rem 0 3.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--border-color);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.step-node.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.step-node.active .step-circle {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  max-width: 120px;
}

.step-node.active .step-label,
.step-node.completed .step-label {
  color: var(--navy);
  font-weight: 800;
}

/* Printable Sheet */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .site-header, .site-footer, .rfq-drawer, .btn, .no-print, .checkout-mobile-sticky-bar {
    display: none !important;
  }
  .checkout-card, .matrix-scroll-wrapper {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
  }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* CRITICAL: Hide duplicate desktop summary on mobile/tablet */
  .checkout-summary-desktop-col {
    display: none !important;
  }

  .checkout-mobile-summary-toggle {
    display: flex;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .payment-card {
    flex-direction: row;
    align-items: center;
    padding: 0.95rem 1rem;
    gap: 0.85rem;
  }

  .payment-card-top {
    flex-direction: row;
    gap: 0.65rem;
    flex-shrink: 0;
  }

  .payment-card-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 108, 180, 0.08);
    border-radius: 8px;
    font-size: 1.3rem;
  }

  .payment-badge-popular {
    top: -8px;
    left: 12px;
  }

  .tracking-stepper {
    overflow-x: auto;
    padding-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .checkout-page-container {
    padding-top: 1rem;
    padding-bottom: 5.5rem; /* Leaves room for mobile sticky bar */
  }

  .checkout-mobile-sticky-bar {
    display: block;
  }

  .checkout-inputs-row-2,
  .checkout-inputs-row-city {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    margin-bottom: 0.85rem !important;
  }

  .checkout-stepper-header {
    gap: 0.45rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }

  .checkout-step {
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .checkout-step-num {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .checkout-step-divider {
    width: 22px;
  }
}

@media (max-width: 576px) {
  .checkout-card {
    padding: 1.25rem 0.85rem;
    border-radius: var(--border-radius);
  }

  .checkout-form-section {
    padding: 1rem 0.75rem;
    margin-bottom: 1rem;
  }

  .checkout-title {
    font-size: 1.15rem;
    gap: 0.45rem;
  }

  .checkout-empty-card {
    padding: 2.25rem 1rem;
    margin: 1rem auto;
  }

  /* On small mobile screens, hide inactive step labels so steps fit cleanly on 1 line */
  .checkout-step:not(.active) .checkout-step-label {
    display: none;
  }

  .checkout-step-divider {
    width: 14px;
  }
}

