/* =====================================================================
   Lagom2 cart visual language → xncartflow (MyXeed tokens)
   Source patterns: lagom2 theme .panel-cart / .panel-summary / .panel-check
   / .section-header / .btn-checkout — NO RSThemes runtime
   ===================================================================== */

#order-mycartpro.fc-review-page,
#order-mycartpro.fc-checkout-page,
#order-mycartpro.fc-config-page,
#order-mycartpro-mail.fc-review-page,
#order-mycartpro-mail.fc-checkout-page,
#order-mycartpro-mail.fc-config-page {
  --lg-radius: 6px;
  --lg-gap: 12px;
  --lg-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --lg-border: var(--mx-border, #e3e8ef);
  --lg-bg: var(--mx-panel, #fff);
  --lg-text: var(--mx-text, #1f2a37);
  --lg-muted: var(--mx-muted, #213a54);
  --lg-primary: var(--mx-primary, #1f5fa8);
  --lg-heading: var(--mx-secondary, #0a2038);
}

/* ── Section header (Lagom .section-header) — not a card ── */
#order-mycartpro .xc-page-hero,
#order-mycartpro-mail .xc-page-hero {
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 1.25rem !important;
  margin: 0 0 1.25rem !important;
}

#order-mycartpro .xc-page-hero h1,
#order-mycartpro-mail .xc-page-hero h1 {
  margin: 0 0 0.35rem !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  color: var(--lg-heading) !important;
}

#order-mycartpro .xc-page-hero p,
#order-mycartpro-mail .xc-page-hero p {
  margin: 0 !important;
  font-size: 0.95rem !important;
  color: var(--lg-muted) !important;
  font-weight: 400;
}

#order-mycartpro .mx-section-title,
#order-mycartpro-mail .mx-section-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--lg-heading) !important;
  letter-spacing: -0.02em;
}

/* ── Cart items: Lagom .panel-cart — separate blocks, no outer cage ── */
#order-mycartpro .fc-cart-panel,
#order-mycartpro-mail .fc-cart-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  margin-bottom: 1.5rem;
}

#order-mycartpro .fc-cart-head,
#order-mycartpro .view-cart-items-header,
#order-mycartpro-mail .fc-cart-head,
#order-mycartpro-mail .view-cart-items-header {
  display: none !important; /* Lagom hides cart-heading on modern layout */
}

#order-mycartpro .view-cart-items,
#order-mycartpro-mail .view-cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--lg-gap);
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

#order-mycartpro .view-cart-items .item,
#order-mycartpro .view-cart-items .mx-cart-item,
#order-mycartpro-mail .view-cart-items .item,
#order-mycartpro-mail .view-cart-items .mx-cart-item {
  margin: 0 !important;
  padding: 1.15rem 1.25rem !important;
  background: var(--lg-bg) !important;
  border: 1px solid var(--lg-border) !important;
  border-radius: var(--lg-radius) !important;
  box-shadow: var(--lg-shadow);
  border-bottom: 1px solid var(--lg-border) !important;
}

#order-mycartpro .view-cart-items .item-title,
#order-mycartpro .mx-cart-item-title-main,
#order-mycartpro-mail .view-cart-items .item-title,
#order-mycartpro-mail .mx-cart-item-title-main {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--lg-text) !important;
}

#order-mycartpro .view-cart-items .item-price > span:first-child,
#order-mycartpro-mail .view-cart-items .item-price > span:first-child {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--lg-heading) !important;
}

#order-mycartpro .view-cart-items .btn-link,
#order-mycartpro-mail .view-cart-items .btn-link {
  color: var(--lg-primary) !important;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Vaciar carrito — pie del listado (Lagom summary-table footer), no flotante */
#order-mycartpro .mx-cart-footer,
#order-mycartpro .empty-cart,
#order-mycartpro-mail .mx-cart-footer,
#order-mycartpro-mail .empty-cart {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  margin: 0.35rem 0 1.5rem !important;
  padding: 0.15rem 0.15rem 0 !important;
  background: transparent !important;
  border: 0 !important;
  text-align: right !important;
}

#order-mycartpro .mx-empty-cart,
#order-mycartpro .empty-cart .btn,
#order-mycartpro-mail .mx-empty-cart,
#order-mycartpro-mail .empty-cart .btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: var(--lg-muted) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  padding: 0.35rem 0.15rem !important;
  line-height: 1.3;
}

#order-mycartpro .mx-empty-cart:hover,
#order-mycartpro .empty-cart .btn:hover,
#order-mycartpro-mail .mx-empty-cart:hover,
#order-mycartpro-mail .empty-cart .btn:hover {
  color: var(--lg-primary) !important;
  text-decoration: none !important;
}

#order-mycartpro .mx-empty-cart i,
#order-mycartpro-mail .mx-empty-cart i {
  margin-right: 0.35rem;
  font-size: 0.85em;
}

/* Promo tabs — Lagom-like understated */
#order-mycartpro .fc-cart-tabs,
#order-mycartpro .view-cart-tabs,
#order-mycartpro-mail .fc-cart-tabs,
#order-mycartpro-mail .view-cart-tabs {
  background: var(--lg-bg) !important;
  border: 1px solid var(--lg-border) !important;
  border-radius: var(--lg-radius) !important;
  box-shadow: var(--lg-shadow) !important;
  padding: 0 0 1.15rem !important;
  overflow: hidden;
}

#order-mycartpro .view-cart-tabs .nav-tabs,
#order-mycartpro-mail .view-cart-tabs .nav-tabs {
  background: transparent !important;
  border-bottom: 1px solid var(--lg-border) !important;
  padding: 0 1rem !important;
}

#order-mycartpro .view-cart-tabs .nav-tabs > li.active > a,
#order-mycartpro .view-cart-tabs .nav-tabs .nav-link.active,
#order-mycartpro-mail .view-cart-tabs .nav-tabs > li.active > a,
#order-mycartpro-mail .view-cart-tabs .nav-tabs .nav-link.active {
  color: var(--lg-primary) !important;
  box-shadow: inset 0 -2px 0 var(--lg-primary);
}

#order-mycartpro .view-cart-tabs .form-control,
#order-mycartpro-mail .view-cart-tabs .form-control {
  height: 44px !important;
  border-radius: var(--lg-radius) !important;
  border: 1px solid #cfd6e0 !important;
}

#order-mycartpro .view-cart-tabs .btn-default,
#order-mycartpro .view-cart-tabs .btn-block,
#order-mycartpro-mail .view-cart-tabs .btn-default,
#order-mycartpro-mail .view-cart-tabs .btn-block {
  height: 44px;
  border-radius: var(--lg-radius) !important;
  background: var(--lg-primary) !important;
  border-color: var(--lg-primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

/* ── Summary: Lagom .panel-summary (light, not navy chrome) ── */
#order-mycartpro .fc-checkout-summary,
#order-mycartpro .fc-config-summary,
#order-mycartpro .fc-review-summary,
#order-mycartpro .secondary-cart-sidebar .order-summary,
#order-mycartpro-mail .fc-checkout-summary,
#order-mycartpro-mail .fc-config-summary,
#order-mycartpro-mail .fc-review-summary,
#order-mycartpro-mail .secondary-cart-sidebar .order-summary {
  background: var(--lg-bg) !important;
  border: 0 !important;
  border-radius: var(--lg-radius) !important;
  box-shadow: var(--lg-shadow) !important;
  overflow: hidden;
  padding: 0 !important;
}

#order-mycartpro .fc-summary-title,
#order-mycartpro-mail .fc-summary-title,
#order-mycartpro .secondary-cart-sidebar .order-summary > h2,
#order-mycartpro-mail .secondary-cart-sidebar .order-summary > h2,
#order-mycartpro #orderSummary .order-summary > h2,
#order-mycartpro-mail #orderSummary .order-summary > h2 {
  background: transparent !important;
  color: var(--lg-heading) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 1.15rem 1.25rem 0.65rem !important;
  letter-spacing: -0.02em;
  border-bottom: 0 !important;
}

#order-mycartpro .mx-summary-body,
#order-mycartpro .fc-summary-items,
#order-mycartpro-mail .mx-summary-body,
#order-mycartpro-mail .fc-summary-items {
  padding: 0.35rem 1.25rem 0.5rem !important;
  max-height: none;
}

#order-mycartpro .mx-summary-name,
#order-mycartpro-mail .mx-summary-name {
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

#order-mycartpro .mx-summary-footer,
#order-mycartpro .summary-container,
#order-mycartpro-mail .mx-summary-footer,
#order-mycartpro-mail .summary-container {
  padding: 0.75rem 1.25rem 1.25rem !important;
}

#order-mycartpro .mx-summary-totals-row,
#order-mycartpro-mail .mx-summary-totals-row {
  font-size: 0.88rem;
  padding: 0.2rem 0;
}

/* Lagom total: big price, not navy brick */
#order-mycartpro .mx-summary-due,
#order-mycartpro .total-due-today,
#order-mycartpro .fc-summary-due,
#order-mycartpro #producttotal .total-due-today,
#order-mycartpro-mail .mx-summary-due,
#order-mycartpro-mail .total-due-today,
#order-mycartpro-mail .fc-summary-due,
#order-mycartpro-mail #producttotal .total-due-today {
  background: transparent !important;
  border-radius: 0 !important;
  border-top: 1px solid var(--lg-border) !important;
  margin-top: 0.75rem !important;
  padding: 1rem 0 0.35rem !important;
  color: var(--lg-text) !important;
}

#order-mycartpro .mx-summary-due .amt,
#order-mycartpro .total-due-today .amt,
#order-mycartpro .fc-summary-due .amt,
#order-mycartpro #producttotal .total-due-today .amt,
#order-mycartpro-mail .mx-summary-due .amt,
#order-mycartpro-mail .total-due-today .amt,
#order-mycartpro-mail .fc-summary-due .amt,
#order-mycartpro-mail #producttotal .total-due-today .amt {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--lg-heading) !important;
  letter-spacing: -0.03em;
  line-height: 1.15 !important;
}

#order-mycartpro .mx-summary-due > span:last-child,
#order-mycartpro .total-due-today > span:not(.amt),
#order-mycartpro-mail .mx-summary-due > span:last-child,
#order-mycartpro-mail .total-due-today > span:not(.amt) {
  color: var(--lg-muted) !important;
  opacity: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.85rem !important;
  font-weight: 500;
}

/* ── Buttons: Lagom full-width primary checkout ── */
#order-mycartpro .btn-checkout,
#order-mycartpro-mail .btn-checkout,
#order-mycartpro #btnCompleteOrder,
#order-mycartpro-mail #btnCompleteOrder,
#order-mycartpro .fc-config-continue,
#order-mycartpro-mail .fc-config-continue {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 0.85rem 1.25rem !important;
  margin-top: 0.85rem !important;
  border-radius: var(--lg-radius) !important;
  background: var(--lg-primary) !important;
  border: 1px solid var(--lg-primary) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  box-shadow: none !important;
  text-transform: none !important;
}

#order-mycartpro .btn-checkout:hover,
#order-mycartpro #btnCompleteOrder:hover,
#order-mycartpro .fc-config-continue:hover,
#order-mycartpro-mail .btn-checkout:hover,
#order-mycartpro-mail #btnCompleteOrder:hover,
#order-mycartpro-mail .fc-config-continue:hover {
  background: #c7351f !important;
  border-color: #c7351f !important;
  color: #fff !important;
}

#order-mycartpro .order-summary .btn-continue-shopping,
#order-mycartpro-mail .order-summary .btn-continue-shopping {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.65rem;
  color: var(--lg-muted) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Payment / check cards: Lagom .panel-check ── */
#order-mycartpro .mx-section-payment,
#order-mycartpro-mail .mx-section-payment {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

#order-mycartpro .fc-payment-grid,
#order-mycartpro-mail .fc-payment-grid {
  gap: 8px !important;
}

#order-mycartpro .fc-payment-option,
#order-mycartpro .mx-check-card,
#order-mycartpro-mail .fc-payment-option,
#order-mycartpro-mail .mx-check-card {
  border: 1px solid var(--lg-border) !important;
  border-radius: var(--lg-radius) !important;
  background: var(--lg-bg) !important;
  padding: 16px 18px !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  min-height: 56px;
}

#order-mycartpro .fc-payment-option:hover,
#order-mycartpro .mx-check-card:hover,
#order-mycartpro-mail .fc-payment-option:hover,
#order-mycartpro-mail .mx-check-card:hover {
  border-color: #c5ccd6 !important;
}

#order-mycartpro .fc-payment-option.fc-payment-selected,
#order-mycartpro .fc-payment-option.is-checked,
#order-mycartpro .fc-payment-option:has(input:checked),
#order-mycartpro .mx-check-card.is-checked,
#order-mycartpro .mx-check-card:has(input:checked),
#order-mycartpro-mail .fc-payment-option.fc-payment-selected,
#order-mycartpro-mail .fc-payment-option.is-checked,
#order-mycartpro-mail .fc-payment-option:has(input:checked),
#order-mycartpro-mail .mx-check-card.is-checked,
#order-mycartpro-mail .mx-check-card:has(input:checked) {
  border-color: var(--lg-primary) !important;
  background: rgba(31, 95, 168, 0.04) !important;
  box-shadow: none !important;
}

#order-mycartpro #creditCardInputFields,
#order-mycartpro-mail #creditCardInputFields {
  margin-top: 1rem;
  padding: 1.25rem !important;
  background: var(--lg-bg) !important;
  border: 1px solid var(--lg-border) !important;
  border-radius: var(--lg-radius) !important;
  box-shadow: var(--lg-shadow) !important;
}

#order-mycartpro #frmCheckout .form-control,
#order-mycartpro #frmCheckout .field,
#order-mycartpro #creditCardInputFields .form-control,
#order-mycartpro-mail #frmCheckout .form-control,
#order-mycartpro-mail #frmCheckout .field,
#order-mycartpro-mail #creditCardInputFields .form-control {
  height: 44px !important;
  border-radius: var(--lg-radius) !important;
  border: 1px solid #cfd6e0 !important;
}

/* Config cycles — Lagom check density */
#order-mycartpro #billingcycle_data label.cycle-1,
#order-mycartpro-mail #billingcycle_data label.cycle-1 {
  border-radius: var(--lg-radius) !important;
  border-width: 1px !important;
  box-shadow: none !important;
  padding: 18px 12px 16px !important;
}

#order-mycartpro #billingcycle_data input.cycle-1:checked + label.cycle-1,
#order-mycartpro-mail #billingcycle_data input.cycle-1:checked + label.cycle-1 {
  border-color: var(--lg-primary) !important;
  background: rgba(31, 95, 168, 0.04) !important;
  box-shadow: none !important;
}

#order-mycartpro .fc-config-panel,
#order-mycartpro .fc-config-billing,
#order-mycartpro-mail .fc-config-panel,
#order-mycartpro-mail .fc-config-billing {
  border-radius: var(--lg-radius) !important;
  box-shadow: var(--lg-shadow) !important;
  border: 1px solid var(--lg-border) !important;
}

#order-mycartpro .fc-auth-switch,
#order-mycartpro .already-registered,
#order-mycartpro-mail .fc-auth-switch,
#order-mycartpro-mail .already-registered {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 0 1rem !important;
  justify-content: flex-start;
}

#order-mycartpro .fc-btn-solid,
#order-mycartpro-mail .fc-btn-solid {
  border-radius: var(--lg-radius) !important;
  min-height: 40px;
  padding: 0.55rem 1.1rem !important;
}

#order-mycartpro .fc-btn-ghost,
#order-mycartpro-mail .fc-btn-ghost {
  border-radius: var(--lg-radius) !important;
  min-height: 40px;
}
