/* =========================================================
   VicMos Wellness 3.5 — Smart Layout + Mode Safety
   ========================================================= */

/* Keep the public store in a predictable light color scheme. My Account can
   intentionally opt into its isolated dark mode. */
body.vicmos-light-site:not(.vwt-account-dark) {
  color-scheme: light;
}
body.vicmos-light-site:not(.vwt-account-dark) input,
body.vicmos-light-site:not(.vwt-account-dark) select,
body.vicmos-light-site:not(.vwt-account-dark) textarea,
body.vicmos-light-site:not(.vwt-account-dark) button {
  color-scheme: light;
}
body.woocommerce-account.vwt-account-dark,
body.woocommerce-account.vwt-account-dark input,
body.woocommerce-account.vwt-account-dark select,
body.woocommerce-account.vwt-account-dark textarea,
body.woocommerce-account.vwt-account-dark button {
  color-scheme: dark;
}

/* Header without site navigation: logo + only explicitly enabled actions. */
body.vicmos-hide-header-menu .vwt-header-main {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}
body.vicmos-hide-header-menu .vwt-brand {
  min-width: 0;
}
body.vicmos-hide-header-menu .vwt-header-actions {
  justify-self: end;
}

/* Checkout and WhatsApp Checkout are completion screens, not browsing pages. */
body.vicmos-smart-checkout .vwt-site-main,
body.vicmos-smart-whatsapp-checkout .vwt-site-main {
  min-height: calc(100dvh - 80px);
}
body.vicmos-smart-checkout,
body.vicmos-smart-whatsapp-checkout {
  padding-bottom: 0 !important;
}

/* My Account owns its own mode and navigation; prevent external floating UI
   from fighting with it. */
body.vicmos-smart-account .vmw-floating-whatsapp,
body.vicmos-smart-account .gt_float_switcher,
body.vicmos-smart-account #trp-floater-ls {
  display: none !important;
}

/* Consultation is a focused assistance experience. */
body.vicmos-smart-consultation .vwt-site-main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
body.vicmos-smart-consultation .vwt-page-content {
  width: 100%;
  max-width: none;
}

/* Avoid motion cost for visitors who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

@media (max-width: 760px) {
  body.vicmos-hide-header-menu .vwt-header-main {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }
}

body.vicmos-smart-checkout.vicmos-hide-header-menu .vwt-header-main,
body.vicmos-smart-whatsapp-checkout.vicmos-hide-header-menu .vwt-header-main {
  grid-template-columns: 1fr !important;
  justify-items: center;
}
body.vicmos-smart-checkout.vicmos-hide-header-menu .vwt-header-actions,
body.vicmos-smart-whatsapp-checkout.vicmos-hide-header-menu .vwt-header-actions {
  display: none !important;
}
