/* =====================================================================
   MAYFIELD — IDS PORTAL (theme-side overrides only)

   The InstaDeliveryScheduler plugin ALREADY styles the portal to the Mayfield
   design — its assets/css/ids-portal.css carries a full `.ids-portal` design
   layer that uses the theme's design tokens (var(--teal), var(--orange),
   var(--pink-bg), var(--terracotta), …). So the portal already matches the
   deliveries.html / subscription.html design and separates the boxes correctly.

   This file therefore keeps ONLY the small overrides the merchant asked for,
   scoped under #ids-portal so they beat the plugin without editing it (markup,
   JS and functionality untouched). Loaded after the plugin CSS — see
   mayfield_ids_portal_assets().
   ===================================================================== */

/* Skip delivery → orange filled.
   The plugin renders it as a terracotta outline via
   `.ids-portal .tag-actions .btn-outline { … !important }`. An ID-scoped
   !important override wins (higher specificity among !important rules). */
#ids-portal .tag-actions .ids-skip-all-btn {
  background: var(--orange) !important;
  border: 1px solid var(--orange) !important;
  color: #fff !important;
}

/* =====================================================================
   ADD ITEM (and other portal) MODALS — Mayfield palette
   The plugin's modal v2 uses a slate-teal CTA (#4f6c75) + green active tabs
   (#2f8047). Remap to the Mayfield teal/orange. Modals render OUTSIDE
   #ids-portal (siblings), so target .ids-modal-overlay / #ids-add-item-modal
   directly. Loaded after the plugin CSS.
   ===================================================================== */

/* Token remap for any token-based modal colour */
.ids-modal-overlay {
  --ids-accent:      var(--teal);
  --ids-accent-soft: rgba(110, 150, 154, 0.10);
  --ids-accent-alt:  var(--orange);
  --ids-bg:          var(--pink-bg);
  --ids-bg-soft:     var(--off-white);
  --ids-bg-card:     var(--white);
  --ids-border:      var(--sage);
  --ids-text:        var(--black);
  --ids-text-muted:  var(--brown);
}

/* Primary CTA ("Add to Delivery / Subscription") → teal
   (!important: a more specific .ids-footer-row-cta rule exists in the plugin) */
#ids-add-item-modal .ids-modal-footer-cta {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  box-shadow: 0 6px 18px rgba(110, 150, 154, 0.28) !important;
}
#ids-add-item-modal .ids-modal-footer-cta:hover {
  background: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
}

/* Segment tabs: active state → teal (was green) */
#ids-add-item-modal .ids-modal-v2 .ids-modal-mode-tab { font-family: var(--font-body); }
#ids-add-item-modal .ids-modal-v2 .ids-modal-mode-tab.active {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 1px 3px rgba(110, 150, 154, 0.12);
}
#ids-add-item-modal .ids-tab-icon { background: rgba(110, 150, 154, 0.12); color: var(--teal); }
#ids-add-item-modal .ids-modal-mode-tab.active .ids-tab-subtitle { color: var(--teal); }

/* Status hint banner → teal accent (was green) */
#ids-add-item-modal .ids-modal-v2 .ids-modal-hint {
  --hint-accent:  var(--teal);
  --hint-bg-from: var(--off-white);
  --hint-bg-to:   #efe7da;
  --hint-border:  var(--sage);
  --hint-text:    var(--brown);
}

/* Other modals' primary buttons + footer CTA → teal */
.ids-modal-overlay .ids-btn-primary {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
}
.ids-modal-overlay .ids-modal-footer-cta { background: var(--teal) !important; }
