/* =============================================================
   CHECKOUT MODAL — checkout-modal.css
   Light mode by default. Dark via body.dark-theme.
   ============================================================= */

/* ── Overlay ──────────────────────────────────────────────── */
#checkout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(40, 20, 80, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#checkout-modal-overlay.co-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal Shell ──────────────────────────────────────────── */
.co-modal {
  background: #ffffff;
  border: 1px solid rgba(92, 53, 177, 0.12);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 -16px 60px rgba(92, 53, 177, 0.14),
    0 0 0 1px rgba(92,53,177,0.06) inset;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.34, 1.26, 0.64, 1);
  overflow: hidden;
}
#checkout-modal-overlay.co-open .co-modal {
  transform: translateY(0);
}

/* Desktop: centered dialog */
@media (min-width: 640px) {
  #checkout-modal-overlay { align-items: center; }
  .co-modal {
    border-radius: 24px;
    max-height: 88vh;
    transform: scale(0.92) translateY(24px);
    opacity: 0;
    transition:
      transform 0.35s cubic-bezier(0.34, 1.18, 0.64, 1),
      opacity 0.25s ease;
  }
  #checkout-modal-overlay.co-open .co-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ── Drag handle (mobile) ─────────────────────────────────── */
.co-drag-handle {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: rgba(0,0,0,0.12);
  margin: 10px auto 0;
  flex-shrink: 0;
}
@media (min-width: 640px) { .co-drag-handle { display: none; } }

/* ── Header ───────────────────────────────────────────────── */
.co-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px 0;
  flex-shrink: 0;
}
.co-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.co-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5c35b1, #7b57d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.co-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1230;
  margin: 0;
  letter-spacing: -0.01em;
}
.co-subtitle {
  font-size: 0.72rem;
  color: #8060b0;
  margin-top: 1px;
}
.co-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.co-close-btn:hover {
  background: rgba(0,0,0,0.12);
  color: #1a1230;
}

/* ── Progress Stepper ─────────────────────────────────────── */
.co-progress {
  display: flex;
  align-items: flex-start;
  padding: 18px 22px 0;
  flex-shrink: 0;
  position: relative;
}
.co-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}
/* Connector line */
.co-step-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  right: -50%;
  top: 13px;
  height: 2px;
  background: rgba(0,0,0,0.1);
  z-index: 0;
  transition: background 0.4s ease;
}
.co-step-dot:last-child::after { display: none; }
.co-step-dot.co-done::after {
  background: linear-gradient(90deg, #7b57d4, #5c35b1);
}
.co-step-dot.co-active::after {
  background: linear-gradient(90deg, #7b57d4, rgba(0,0,0,0.1));
}
/* Circle */
.co-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: 2px solid rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #999;
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.co-step-dot.co-active .co-dot {
  background: linear-gradient(135deg, #5c35b1, #8b6fd4);
  border-color: #8b6fd4;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(123,87,212,0.18), 0 0 14px rgba(123,87,212,0.3);
}
.co-step-dot.co-done .co-dot {
  background: linear-gradient(135deg, #1e7e34, #28a745);
  border-color: #28a745;
  color: #fff;
}
.co-step-dot.co-done .co-dot::after { content: '✓'; font-size: 0.72rem; }
.co-step-dot.co-done .co-dot-num { display: none; }

.co-dot-label {
  font-size: 0.62rem;
  color: #aaa;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s;
  font-weight: 500;
}
.co-step-dot.co-active .co-dot-label { color: #6b3fd4; font-weight: 600; }
.co-step-dot.co-done  .co-dot-label  { color: #28a745; }

/* ── Divider ──────────────────────────────────────────────── */
.co-divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 16px 0 0;
  flex-shrink: 0;
}

/* ── Body ─────────────────────────────────────────────────── */
.co-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.1) transparent;
}
.co-body::-webkit-scrollbar { width: 4px; }
.co-body::-webkit-scrollbar-track { background: transparent; }
.co-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 99px; }

/* ── Step Panels ──────────────────────────────────────────── */
.co-step-panel { display: none; }
.co-step-panel.co-active-panel {
  display: block;
  animation: co-slide-in 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes co-slide-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Step Header ──────────────────────────────────────────── */
.co-step-header { margin-bottom: 16px; }
.co-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1230;
  font-family: 'Outfit', sans-serif;
  margin: 0 0 3px;
}
.co-section-desc {
  font-size: 0.78rem;
  color: #8060b0;
  margin: 0;
}

/* ── Saved Recipients ─────────────────────────────────────── */
.co-saved-section {
  background: rgba(92,53,177,0.05);
  border: 1px solid rgba(92,53,177,0.15);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}
.co-saved-label {
  font-size: 0.7rem;
  color: #6b3fd4;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.co-saved-list { display: flex; flex-direction: column; gap: 7px; }
.co-saved-btn {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 10px 13px;
  text-align: left;
  color: #1a1230;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.co-saved-btn:hover {
  background: rgba(92,53,177,0.08);
  border-color: rgba(92,53,177,0.25);
  transform: translateY(-1px);
}
.co-saved-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5c35b1, #7b57d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.co-saved-btn-info strong { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 1px; color: #1a1230; }
.co-saved-btn-info span  { font-size: 0.75rem; color: #8060b0; }

/* ── Form Grid ────────────────────────────────────────────── */
.co-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.co-form-group { display: flex; flex-direction: column; gap: 6px; }
.co-form-group.co-full { grid-column: 1 / -1; }
.co-form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #7060a0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Inputs ───────────────────────────────────────────────── */
.co-input {
  background: #f5f2ff;
  border: 1.5px solid rgba(92,53,177,0.15);
  border-radius: 11px;
  padding: 11px 14px;
  color: #1a1230;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.co-input::placeholder { color: rgba(26,18,48,0.3); }
.co-input:focus {
  border-color: #7b57d4;
  background: #ede8ff;
  box-shadow: 0 0 0 3px rgba(123,87,212,0.15);
}
.co-input.co-error {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.12);
  animation: co-shake 0.35s ease;
}
@keyframes co-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.co-input[type=date]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}
select.co-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237060a0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #f5f2ff;
  padding-right: 36px;
  cursor: pointer;
}
select.co-input option { background: #fff; color: #1a1230; }
textarea.co-input { resize: vertical; min-height: 70px; line-height: 1.5; }

.co-field-error {
  font-size: 0.73rem;
  color: #c62828;
  display: flex;
  align-items: center;
  gap: 4px;
}
.co-field-error::before { content: '⚠'; font-size: 0.68rem; }

/* ── Save row ─────────────────────────────────────────────── */
.co-save-row {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #7060a0;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(92,53,177,0.04);
  border: 1px solid rgba(92,53,177,0.12);
  transition: background 0.2s;
  user-select: none;
}
.co-save-row:hover { background: rgba(92,53,177,0.08); }
.co-save-row input[type=checkbox] {
  accent-color: #7b57d4;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── City Autocomplete ────────────────────────────────────── */
.co-city-wrap { position: relative; }
.co-city-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid rgba(92,53,177,0.2);
  border-radius: 12px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(92,53,177,0.12);
  display: none;
}
.co-city-dropdown.co-visible { display: block; animation: co-slide-in 0.18s ease; }
.co-city-item {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #1a1230;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.co-city-item::before { content: '📍'; font-size: 0.75rem; }
.co-city-item:hover { background: rgba(92,53,177,0.08); }

/* ── Delivery Preview ─────────────────────────────────────── */
.co-delivery-card {
  background: #faf8ff;
  border: 1px solid rgba(92,53,177,0.12);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}
.co-delivery-card-header {
  padding: 14px 18px;
  background: rgba(92,53,177,0.06);
  border-bottom: 1px solid rgba(92,53,177,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.co-delivery-card-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #1a1230;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}
.co-delivery-icon { font-size: 1.2rem; }
.co-delivery-rows { padding: 6px 18px 14px; }
.co-delivery-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.85rem;
}
.co-delivery-row:last-child { border-bottom: none; }
.co-delivery-row .co-dr-label { color: #8060b0; }
.co-delivery-row .co-dr-val   { color: #1a1230; font-weight: 600; }
.co-delivery-row .co-dr-val.co-green { color: #1e7e34; }
.co-delivery-row .co-dr-val.co-red   { color: #c62828; }

.co-unavailable-msg {
  text-align: center;
  padding: 24px 16px;
  color: #8060b0;
  font-size: 0.85rem;
}
.co-unavailable-msg .co-unavail-icon { font-size: 2rem; margin-bottom: 8px; }

.co-available-msg {
  text-align: center;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  color: #059669;
  font-size: 0.875rem;
  margin-top: 10px;
}

.co-perishable-warn {
  background: rgba(255,152,0,0.07);
  border: 1px solid rgba(255,152,0,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #e65100;
  margin: 10px 18px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ── Toggle (anonymous) ───────────────────────────────────── */
.co-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-radius: 11px;
  background: rgba(0,0,0,0.03);
  border: 1.5px solid rgba(0,0,0,0.08);
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}
.co-toggle-row input[type=checkbox] { display: none; }
.co-toggle-row:hover { background: rgba(92,53,177,0.05); border-color: rgba(92,53,177,0.15); }
.co-toggle-row.co-checked {
  background: rgba(92,53,177,0.07);
  border-color: rgba(92,53,177,0.25);
}
.co-toggle-track {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: rgba(0,0,0,0.15);
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}
.co-toggle-track::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.25s cubic-bezier(0.34,1.3,0.64,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.co-toggle-row.co-checked .co-toggle-track { background: #7b57d4; }
.co-toggle-row.co-checked .co-toggle-track::after { left: 21px; }
.co-toggle-label { font-size: 0.84rem; color: #1a1230; line-height: 1.4; flex: 1; }

.co-char-count { font-size: 0.72rem; color: #aaa; text-align: right; margin-top: 4px; }

/* ── Success Panel ────────────────────────────────────────── */
.co-success-panel { text-align: center; padding: 8px 8px 20px; }
.co-success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(40,167,69,0.1);
  border: 2px solid rgba(40,167,69,0.25);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: co-pop 0.4s cubic-bezier(0.34, 1.5, 0.64, 1);
}
@keyframes co-pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.co-success-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1230;
  margin: 0 0 6px;
}
.co-success-panel p { color: #8060b0; font-size: 0.85rem; margin: 0 0 22px; line-height: 1.5; }
.co-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(40,167,69,0.28);
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}
.co-pay-btn:hover { opacity: 0.93; transform: translateY(-2px); }
.co-order-ref {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  color: #8060b0;
  background: rgba(92,53,177,0.05);
  border: 1px solid rgba(92,53,177,0.12);
  border-radius: 8px;
  padding: 6px 12px;
}
.co-order-ref strong { color: #1a1230; }

/* ── Summary Card ─────────────────────────────────────────── */
.co-summary-card {
  background: #faf8ff;
  border: 1px solid rgba(92,53,177,0.1);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 20px;
  text-align: left;
}
.co-summary-section { padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.co-summary-section:last-child { border-bottom: none; }
.co-summary-section-title { font-size: 0.7rem; color: #8060b0; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; font-weight: 700; }
.co-summary-item { display: flex; justify-content: space-between; font-size: 0.84rem; color: #1a1230; padding: 4px 0; }
.co-summary-item .co-si-name  { flex: 1; color: #6060a0; }
.co-summary-item .co-si-qty   { color: #aaa; margin: 0 12px; }
.co-summary-item .co-si-price { font-weight: 600; color: #1a1230; }
.co-summary-total-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 5px 0; color: #7060a0; }
.co-summary-total-row.co-grand {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1230;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 6px;
}

/* ── Footer ───────────────────────────────────────────────── */
.co-footer {
  padding: 12px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
  border-top: 1px solid rgba(0,0,0,0.07);
  background: rgba(0,0,0,0.02);
}
.co-footer-row { display: flex; gap: 10px; align-items: center; }
.co-btn-primary {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #5c35b1 0%, #7b57d4 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(92,53,177,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.co-btn-primary:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(92,53,177,0.36); }
.co-btn-primary:active  { transform: scale(0.98); }
.co-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.co-btn-secondary {
  flex: 1;
  padding: 13px;
  border: 2px solid var(--primary, #5c35b1);
  border-radius: 13px;
  background: transparent;
  color: var(--primary, #5c35b1);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.co-btn-secondary:hover:not(:disabled) { background: rgba(92,53,177,0.07); transform: translateY(-1px); }
.co-btn-secondary:active { transform: scale(0.98); }
.co-btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

.co-btn-back {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: transparent;
  color: #7060a0;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.co-btn-back:hover { background: rgba(0,0,0,0.06); color: #1a1230; }

/* ── Spinner ──────────────────────────────────────────────── */
.co-spinner {
  display: inline-block;
  width: 17px; height: 17px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: co-spin 0.65s linear infinite;
  flex-shrink: 0;
}
.co-btn-secondary .co-spinner {
  border-color: rgba(92,53,177,0.25);
  border-top-color: #5c35b1;
}
@keyframes co-spin { to { transform: rotate(360deg); } }


/* =============================================================
   DARK THEME OVERRIDES  (body.dark-theme)
   ============================================================= */

body.dark-theme #checkout-modal-overlay {
  background: rgba(6, 3, 14, 0.72);
}
body.dark-theme .co-modal {
  background: linear-gradient(160deg, #1c1238 0%, #150e2d 100%);
  border-color: rgba(150, 110, 240, 0.18);
  box-shadow:
    0 -20px 80px rgba(80, 40, 160, 0.4),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
body.dark-theme .co-drag-handle { background: rgba(255,255,255,0.18); }
body.dark-theme .co-title    { color: #f0eaff; }
body.dark-theme .co-subtitle { color: #9080ba; }
body.dark-theme .co-close-btn { background: rgba(255,255,255,0.07); color: #aaa; }
body.dark-theme .co-close-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

body.dark-theme .co-step-dot::after { background: rgba(255,255,255,0.08); }
body.dark-theme .co-step-dot.co-done::after { background: linear-gradient(90deg, #7b57d4, #5c35b1); }
body.dark-theme .co-step-dot.co-active::after { background: linear-gradient(90deg, #7b57d4, rgba(255,255,255,0.08)); }
body.dark-theme .co-dot { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #777; }
body.dark-theme .co-step-dot.co-active .co-dot { background: linear-gradient(135deg, #5c35b1, #8b6fd4); border-color: #8b6fd4; color: #fff; box-shadow: 0 0 0 5px rgba(123,87,212,0.22), 0 0 14px rgba(123,87,212,0.4); }
body.dark-theme .co-dot-label { color: #666; }
body.dark-theme .co-step-dot.co-active .co-dot-label { color: #a98ef0; }

body.dark-theme .co-divider { background: rgba(255,255,255,0.06); }

body.dark-theme .co-body { scrollbar-color: rgba(255,255,255,0.08) transparent; }
body.dark-theme .co-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

body.dark-theme .co-section-title { color: #f0eaff; }
body.dark-theme .co-section-desc  { color: #9080ba; }
body.dark-theme .co-form-group label { color: #9888bb; }

body.dark-theme .co-saved-section { background: rgba(123,87,212,0.07); border-color: rgba(123,87,212,0.2); }
body.dark-theme .co-saved-label   { color: #a98ef0; }
body.dark-theme .co-saved-btn     { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.09); color: #f0eaff; }
body.dark-theme .co-saved-btn:hover { background: rgba(123,87,212,0.18); border-color: rgba(123,87,212,0.35); }
body.dark-theme .co-saved-btn-info strong { color: #f0eaff; }
body.dark-theme .co-saved-btn-info span   { color: #888; }

body.dark-theme .co-input { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.09); color: #f0eaff; }
body.dark-theme .co-input::placeholder { color: rgba(255,255,255,0.22); }
body.dark-theme .co-input:focus { border-color: #7b57d4; background: rgba(123,87,212,0.07); box-shadow: 0 0 0 3px rgba(123,87,212,0.2); }
body.dark-theme .co-input[type=date]::-webkit-calendar-picker-indicator { filter: invert(0.7); }
body.dark-theme select.co-input { background-color: rgba(255,255,255,0.05); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238878aa' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
body.dark-theme select.co-input option { background: #1c1238; color: #f0eaff; }
body.dark-theme .co-field-error { color: #ef5350; }

body.dark-theme .co-save-row { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.07); color: #9888bb; }
body.dark-theme .co-save-row:hover { background: rgba(255,255,255,0.06); }

body.dark-theme .co-city-dropdown { background: #1e1538; border-color: rgba(123,87,212,0.25); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
body.dark-theme .co-city-item { color: #f0eaff; }
body.dark-theme .co-city-item:hover { background: rgba(123,87,212,0.2); }

body.dark-theme .co-delivery-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.09); }
body.dark-theme .co-delivery-card-header { background: rgba(123,87,212,0.1); border-bottom-color: rgba(255,255,255,0.07); }
body.dark-theme .co-delivery-card-header h4 { color: #f0eaff; }
body.dark-theme .co-delivery-row { border-bottom-color: rgba(255,255,255,0.05); }
body.dark-theme .co-delivery-row .co-dr-label { color: #888; }
body.dark-theme .co-delivery-row .co-dr-val   { color: #f0eaff; }
body.dark-theme .co-delivery-row .co-dr-val.co-green { color: #4fc864; }
body.dark-theme .co-delivery-row .co-dr-val.co-red   { color: #ef5350; }
body.dark-theme .co-unavailable-msg { color: #888; }
body.dark-theme .co-perishable-warn { background: rgba(255,152,0,0.08); border-color: rgba(255,152,0,0.2); color: #ffb74d; }

body.dark-theme .co-toggle-row { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
body.dark-theme .co-toggle-row:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); }
body.dark-theme .co-toggle-row.co-checked { background: rgba(123,87,212,0.12); border-color: rgba(123,87,212,0.3); }
body.dark-theme .co-toggle-track { background: rgba(255,255,255,0.12); }
body.dark-theme .co-toggle-label { color: #f0eaff; }

body.dark-theme .co-success-panel h3 { color: #f0eaff; }
body.dark-theme .co-success-panel p  { color: #9888bb; }
body.dark-theme .co-success-icon-wrap { background: rgba(40,167,69,0.12); border-color: rgba(40,167,69,0.28); }
body.dark-theme .co-order-ref { color: #888; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.09); }
body.dark-theme .co-order-ref strong { color: #f0eaff; }

body.dark-theme .co-summary-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
body.dark-theme .co-summary-section { border-bottom-color: rgba(255,255,255,0.06); }
body.dark-theme .co-summary-section-title { color: #888; }
body.dark-theme .co-summary-item .co-si-name  { color: #aaa; }
body.dark-theme .co-summary-item .co-si-price { color: #f0eaff; }
body.dark-theme .co-summary-total-row { color: #aaa; }
body.dark-theme .co-summary-total-row.co-grand { color: #f0eaff; border-top-color: rgba(255,255,255,0.1); }

body.dark-theme .co-footer { border-top-color: rgba(255,255,255,0.06); background: rgba(0,0,0,0.1); }
body.dark-theme .co-btn-back { border-color: rgba(255,255,255,0.1); color: #999; }
body.dark-theme .co-btn-back:hover { background: rgba(255,255,255,0.08); color: #fff; }
body.dark-theme .co-btn-secondary { border-color: rgba(140,110,220,0.5); color: #b39ddb; }
body.dark-theme .co-btn-secondary:hover:not(:disabled) { background: rgba(140,110,220,0.12); }
body.dark-theme .co-available-msg { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.15); color: #34d399; }
