/* Mattic Brand UI — pay.mattichealth.com / pay.matticrx.com.
 * Tokens: mattic-health-site src/styles/theme.css. Components adapted from brand-masthead.css (masthead, pulse), checkout.css
 * (co-* layout, fields, steps), cards.css (product-card), shop.css (hero, chips) and footer.css, applied to WooCommerce's own
 * classic-checkout markup so every WooCommerce id/class/hook stays as WooCommerce prints it. */

:root {
  --white: #ffffff;
  --blue-50: #f4f6fe;
  --blue-100: #e7ecfd;
  --blue-200: #cbd6fb;
  --blue-400: #7a93f2;
  --blue-500: #4f70ff;
  --blue-600: #2b50e8;
  --blue-700: #2344cc;
  --blue-800: #1e3bb0;
  --navy-500: #26488e;
  --navy-700: #12295b;
  --navy-800: #0d1d42;
  --navy-900: #0a1733;
  --navy-950: #060e20;
  --slate-50: #f7f8fc;
  --slate-100: #eef1fb;
  --slate-200: #d8deef;
  --slate-300: #c3cbe6;
  --slate-400: #9aa5c4;
  --slate-500: #7a86a8;
  --slate-600: #53608a;
  --slate-700: #3c466a;
  --green-600: #1f9d5b;
  --green-50: #e6f5ec;
  --red-500: #d0455a;
  --red-700: #b3243c;
  --red-50: #fcebee;
  --amber-50: #fdf3e3;
  --amber-800: #8f5400;
  --ondark-ink: #e9edfb;
  --ondark-ink-soft: #a9b7e6;
  --ondark-muted: #94a2cf;
  --ondark-line: #1e2f5c;
  --ondark-accent: #5f7bff;

  --surface: var(--white);
  --ground: var(--slate-50);
  --panel: var(--white);
  --ink: var(--navy-900);
  --ink-muted: var(--slate-600);
  --ink-soft: var(--slate-600);
  --line: var(--slate-200);
  --line-strong: var(--slate-300);
  --line-input: var(--slate-500);
  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --accent-active: var(--blue-800);
  --accent-soft: var(--blue-100);
  --accent-text: var(--blue-600);
  --focus-ring: var(--blue-500);
  --success: var(--green-600);
  --alert-ink: var(--red-700);
  --alert-soft: var(--red-50);

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-sans: "Manrope", "Manrope Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-section: 28px;
  --radius-pill: 100px;
  --shadow-1: 0 1px 2px rgb(10 23 51 / 0.06), 0 1px 1px rgb(10 23 51 / 0.04);
  --shadow-2: 0 6px 16px -8px rgb(10 23 51 / 0.18);
  --shadow-3: 0 18px 50px -22px rgb(10 23 51 / 0.28);
  --shadow-glow: 0 0 0 1px rgb(43 80 232 / 0.18), 0 10px 30px -10px rgb(43 80 232 / 0.45);
  --dur-fast: 140ms;
  --dur-base: 200ms;
  --dur-slow: 280ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --masthead-ground: linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 52%, var(--navy-950) 100%);
  --masthead-logo-h: 46px;
  --masthead-pulse-h: 26px;
  --container: 1120px;
  --gutter: 16px;
}

@media (min-width: 64rem) {
  :root {
    --masthead-logo-h: 60px;
    --masthead-pulse-h: 32px;
    --gutter: 32px;
  }
}

/* ------------------------------------------------------------------------------------------------ base */
body.mx {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.mx *,
.mx *::before,
.mx *::after {
  box-sizing: border-box;
}

.mx img {
  max-width: 100%;
  height: auto;
}

.mx a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

.mx :focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.mx .screen-reader-text,
.mx .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mx-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.mx-main {
  flex: 1;
  width: 100%;
  outline: none;
}

.mx-skip {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink) !important;
  font-weight: 700;
}

.mx-skip:focus {
  top: 12px;
}

.mx-icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  vertical-align: -0.18em;
}

.mx-dot {
  margin-inline: 6px;
  opacity: 0.6;
}

.mx-eyebrow,
.mx-sec-eyebrow {
  margin: 0 0 8px;
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------------------------- buttons */
.mx .mx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease), transform var(--dur-fast) var(--ease);
}

.mx .mx-btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

@media (hover: hover) {
  .mx .mx-btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
  }
}

.mx .mx-btn-primary:active {
  background: var(--accent-active);
  transform: scale(0.98);
}

.mx .mx-btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 17px;
}

/* ------------------------------------------------------------------------- masthead (brand-masthead.css) */
.mx-masthead {
  position: relative;
  isolation: isolate;
  padding: 10px 0 var(--masthead-pulse-h);
  border-bottom: 3px solid var(--blue-500);
  background: var(--masthead-ground);
  color: var(--ondark-ink);
}

.mx-masthead-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mx-logo {
  grid-column: 2;
  display: block;
  width: calc(var(--masthead-logo-h) * 729 / 343);
  height: max(var(--masthead-logo-h), 44px);
  display: flex;
  align-items: center;
}

.mx-logo img {
  display: block;
  width: 100%;
  height: var(--masthead-logo-h);
}

.mx .mx-mast-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-pill);
  color: var(--ondark-ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .mx .mx-mast-link:hover {
    border-color: rgb(255 255 255 / 0.32);
    background: rgb(255 255 255 / 0.08);
    color: var(--white);
  }
}

.mx-mast-back {
  grid-column: 1;
  justify-self: start;
}

.mx-mast-phone {
  grid-column: 3;
  justify-self: end;
}

.mx-trust {
  display: flex;
  justify-content: center;
  margin: 8px auto 0;
  padding-inline: var(--gutter);
}

.mx-trust-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid rgb(95 123 255 / 0.35);
  border-radius: var(--radius-pill);
  background: rgb(19 38 87 / 0.65);
  color: var(--ondark-ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.mx-trust-pill .mx-icon {
  color: var(--blue-400);
}

.mx-trust-pill .mx-dot {
  margin-inline: 2px;
}

@media (max-width: 39.99rem) {
  .mx-masthead-row {
    grid-template-columns: 44px auto 44px;
    gap: 8px;
  }

  .mx .mx-mast-link {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .mx-mast-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .mx-trust-pill {
    font-size: 11.5px;
  }
}

/* The EKG pulse (PulseBand / BrandPulse): the static trace, and a lit sweep travelling over it. CSS only. */
.mx-pulse {
  position: absolute;
  inset: auto 0 0;
  height: var(--masthead-pulse-h);
  pointer-events: none;
  color: var(--ondark-accent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.mx-pulse svg,
.mx-foot-pulse svg,
.mx-login-pulse svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mx-pulse path,
.mx-foot-pulse path,
.mx-login-pulse path,
.mx-steps-line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mx-pulse-static {
  opacity: 0.35;
}

.mx-pulse-live {
  color: #9db0ff;
  filter: drop-shadow(0 0 4px rgb(95 123 255 / 0.9));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 50%, transparent 52%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 50%, transparent 52%);
  -webkit-mask-size: 36% 100%;
  mask-size: 36% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: mx-sweep 4.2s linear infinite;
}

@keyframes mx-sweep {
  from {
    -webkit-mask-position: -60% 0;
    mask-position: -60% 0;
  }

  to {
    -webkit-mask-position: 160% 0;
    mask-position: 160% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-pulse-live {
    display: none;
  }

  .mx *,
  .mx *::before,
  .mx *::after {
    transition: none !important;
  }
}

/* ------------------------------------------------------------------------------- steps (CheckoutSteps) */
.mx-steps {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
}

.mx-steps-line {
  position: relative;
  display: block;
  height: 32px;
  color: var(--accent);
}

.mx-steps-line svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mx-steps-track path {
  stroke: var(--line) !important;
}

.mx-steps-drawn {
  clip-path: inset(-8px calc((1 - var(--share, 0)) * 100% - 2px) -8px -4px);
}

.mx-steps[data-step="1"] {
  --share: 0;
  --head-y: 24.3px;
}

.mx-steps[data-step="2"] {
  --share: 0.5;
  --head-y: 19.4px;
}

.mx-steps[data-step="3"] {
  --share: 1;
  --head-y: 24.3px;
}

.mx-steps-head {
  position: absolute;
  top: var(--head-y, 0);
  left: calc(var(--share, 0) * 100%);
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--white) 0 2px, transparent 2.7px),
    radial-gradient(circle at 50% 50%, transparent 2px, currentColor 2px 3px, transparent 3.6px),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, currentColor 35%, transparent) 0 3.6px, transparent 4.2px),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, currentColor 18%, transparent) 0 6px, transparent 6.6px);
  animation: mx-head 1.6s var(--ease) infinite;
}

@keyframes mx-head {
  50% {
    transform: scale(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-steps-head {
    animation: none;
  }
}

.mx-steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
}

.mx-steps-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.mx-steps-item:nth-child(2) {
  justify-content: center;
  text-align: center;
}

.mx-steps-item:nth-child(3) {
  justify-content: flex-end;
  text-align: end;
}

.mx-steps-mark {
  flex: none;
  font-weight: 800;
}

.mx-steps-item[data-state="done"] .mx-steps-mark {
  color: var(--success);
}

.mx-steps-item[data-state="current"] {
  color: var(--ink);
  font-weight: 800;
}

.mx-steps-item[data-state="current"] .mx-steps-mark {
  color: var(--accent);
}

.mx-steps-item small {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 39.99rem) {
  .mx-steps-list {
    font-size: 11.5px;
  }

  .mx-steps-item small {
    display: block;
  }

  .mx-steps-item {
    flex-direction: column;
    gap: 0;
  }

  .mx-steps-item:nth-child(2) {
    align-items: center;
  }

  .mx-steps-item:nth-child(3) {
    align-items: flex-end;
  }
}

/* ---------------------------------------------------------------------------- page frame & WC notices */
.mx-page {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter) 56px;
}

.mx-page-title {
  margin: 8px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.15;
}

.mx .woocommerce-notices-wrapper:empty {
  display: none;
}

.mx .woocommerce-info,
.mx .woocommerce-message,
.mx .woocommerce-error,
.mx .woocommerce-NoticeGroup .woocommerce-error {
  position: relative;
  margin: 0 0 14px;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
  list-style: none;
  box-shadow: var(--shadow-1);
}

.mx .woocommerce-info::before,
.mx .woocommerce-message::before,
.mx .woocommerce-error::before {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  content: "i";
}

.mx .woocommerce-message::before {
  background: var(--success);
  content: "✓";
}

.mx .woocommerce-error {
  border-color: #f2c3cb;
  background: var(--alert-soft);
  color: var(--alert-ink);
}

.mx .woocommerce-error::before {
  background: var(--red-500);
  content: "!";
}

.mx .woocommerce-error li {
  margin: 0;
}

.mx .woocommerce-info a,
.mx .woocommerce-message a {
  font-weight: 700;
}

.mx .woocommerce-info .button,
.mx .woocommerce-message .button {
  float: right;
  margin-left: 12px;
}

/* ------------------------------------------------------------------------- checkout layout (checkout.css) */
.mx-page-checkout {
  padding-top: 18px;
}

.mx-page-checkout > .woocommerce {
  display: block;
}

.mx-page-checkout .woocommerce-form-coupon-toggle,
.mx-page-checkout .woocommerce-form-login-toggle,
.mx-page-checkout form.checkout_coupon,
.mx-page-checkout form.woocommerce-form-login {
  max-width: none;
}

.mx-page-checkout form.checkout_coupon,
.mx-page-checkout form.woocommerce-form-login {
  margin: -6px 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.mx-page-checkout form.checkout_coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.mx-page-checkout form.checkout_coupon p {
  margin: 0;
}

.mx-page-checkout form.checkout_coupon .form-row-first {
  flex: 1 1 220px;
}

.mx-page-checkout form.checkout_coupon > p:first-child {
  flex-basis: 100%;
  color: var(--ink-muted);
  font-size: 14px;
}

.mx form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (min-width: 64rem) {
  .mx form.checkout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 28px;
  }

  .mx-co-side {
    position: sticky;
    top: 20px;
  }

  .admin-bar .mx-co-side {
    top: 52px;
  }
}

.mx-co-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.mx-co-card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-1);
}

@media (min-width: 40rem) {
  .mx-co-card {
    padding: 26px 28px;
  }
}

.mx-sec-head {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mx-sec-num {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  margin-right: 2px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  letter-spacing: 0.04em;
}

.mx-sec-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.mx-sec-sub .mx-icon {
  color: var(--accent);
}

.mx #customer_details {
  display: block;
}

.mx #customer_details .col-1,
.mx #customer_details .col-2 {
  float: none;
  width: auto;
}

.mx #customer_details .col-2:empty,
.mx .woocommerce-shipping-fields:empty,
.mx .woocommerce-additional-fields:empty {
  display: none;
}

.mx .woocommerce-billing-fields > h3,
.mx .woocommerce-additional-fields > h3,
.mx #order_review_heading {
  display: none;
}

/* Field grid: 6 columns; first/last = halves, third = thirds, wide = full. */
.mx .woocommerce-billing-fields__field-wrapper,
.mx .woocommerce-shipping-fields__field-wrapper,
.mx .woocommerce-account-fields,
.mx .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 14px;
}

.mx .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.mx .form-row-first {
  grid-column: span 3;
}

.mx .form-row-last {
  grid-column: span 3;
}

.mx .form-row-third {
  grid-column: span 2;
}

/* By id as well: WooCommerce's address-i18n.js rewrites the row classes from the country locale after load. */
.mx #billing_first_name_field,
.mx #billing_last_name_field,
.mx #billing_phone_field,
.mx #billing_email_field,
.mx #shipping_first_name_field,
.mx #shipping_last_name_field {
  grid-column: span 3;
}

.mx #billing_city_field,
.mx #billing_state_field,
.mx #billing_postcode_field,
.mx #shipping_city_field,
.mx #shipping_state_field,
.mx #shipping_postcode_field {
  grid-column: span 2;
}

@media (max-width: 39.99rem) {
  .mx .form-row-first,
  .mx .form-row-last,
  .mx #billing_first_name_field,
  .mx #billing_last_name_field,
  .mx #billing_phone_field,
  .mx #billing_email_field,
  .mx #billing_city_field,
  .mx #shipping_city_field {
    grid-column: 1 / -1;
  }

  .mx .form-row-third,
  .mx #billing_state_field,
  .mx #billing_postcode_field,
  .mx #shipping_state_field,
  .mx #shipping_postcode_field {
    grid-column: span 3;
  }
}

.mx .woocommerce-account-fields {
  margin-top: 16px;
}

.mx .woocommerce-account-fields .create-account {
  grid-column: 1 / -1;
}

.mx .form-row label,
.mx .co-label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

.mx .form-row label.checkbox,
.mx .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.mx .form-row .required {
  color: var(--red-500);
  font-weight: 700;
  text-decoration: none;
  border: 0;
}

.mx .form-row .optional {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 400;
}

.mx .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

.mx input.input-text,
.mx .form-row input[type="text"],
.mx .form-row input[type="email"],
.mx .form-row input[type="tel"],
.mx .form-row input[type="password"],
.mx .form-row input[type="number"],
.mx .form-row select,
.mx .form-row textarea,
.mx select.mx-select,
.mx .select2-container .select2-selection--single {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line-input);
  border-radius: var(--radius-sm);
  background-color: var(--panel);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 46px;
  box-shadow: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.mx .form-row textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  line-height: 1.5;
}

.mx .form-row select,
.mx select.mx-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2353608a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
}

.mx input.input-text::placeholder {
  color: var(--slate-400);
}

@media (hover: hover) {
  .mx input.input-text:hover,
  .mx .form-row select:hover,
  .mx select.mx-select:hover,
  .mx .select2-container .select2-selection--single:hover {
    border-color: var(--accent-text);
  }
}

.mx input.input-text:focus,
.mx .form-row select:focus,
.mx select.mx-select:focus,
.mx .select2-container--focus .select2-selection--single,
.mx .select2-container--open .select2-selection--single {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(79 112 255 / 0.25);
}

.mx .woocommerce-invalid input.input-text,
.mx .woocommerce-invalid select,
.mx .woocommerce-invalid .select2-selection,
.mx input.input-text[aria-invalid="true"] {
  border-color: var(--alert-ink);
}

.mx .woocommerce-validated input.input-text {
  border-color: var(--line-input);
}

.mx .checkout-inline-error-message,
.mx .form-row .woocommerce-error {
  margin: 0;
  color: var(--alert-ink);
  font-size: 13.5px;
}

.mx .form-row .description {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* A single allowed country is printed as text: make it a quiet line, not a field. */
.mx #billing_country_field strong,
.mx #shipping_country_field strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  color: var(--ink);
  font-weight: 600;
}

/* selectWoo (WooCommerce's select2) */
.mx .select2-container {
  width: 100% !important;
}

.mx .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0;
  color: var(--ink);
  line-height: 46px;
}

.mx .select2-container .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 10px;
  height: 46px;
}

.mx .select2-container .select2-selection__placeholder {
  color: var(--slate-400);
}

.select2-container--open .select2-dropdown {
  overflow: hidden;
  border: 1px solid var(--accent, #2b50e8);
  border-radius: 10px;
  font-family: "Manrope", system-ui, sans-serif;
  box-shadow: 0 18px 50px -22px rgb(10 23 51 / 0.28);
}

.select2-container .select2-search--dropdown .select2-search__field {
  height: 40px;
  padding: 0 10px;
  border: 1px solid #c3cbe6;
  border-radius: 8px;
}

.select2-results__option {
  padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background: #2b50e8;
}

/* ---------------------------------------------------------------- payment (#payment, gateways' fields) */
.mx-co-payment .mx-sec-head {
  margin-bottom: 16px;
}

.mx #payment {
  background: none;
  border-radius: 0;
}

.mx-pay-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.mx-pay-note .mx-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.mx #payment ul.wc_payment_methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  list-style: none;
}

.mx #payment ul.wc_payment_methods > li {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.mx #payment ul.wc_payment_methods > li:has(> input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.mx #payment ul.wc_payment_methods > li > input[type="radio"] {
  margin: 0 0 0 16px;
  accent-color: var(--accent);
  vertical-align: middle;
}

.mx #payment ul.wc_payment_methods > li > label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px 0 10px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.mx #payment ul.wc_payment_methods > li > label img {
  max-height: 26px;
  width: auto;
  margin-left: auto;
}

.mx #payment .payment_box {
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--slate-50);
  color: var(--ink-soft);
  font-size: 14.5px;
}

.mx #payment .payment_box::before {
  display: none;
}

.mx #payment .payment_box p:first-child {
  margin-top: 0;
}

.mx #payment .payment_box p:last-child {
  margin-bottom: 0;
}

/* Gateway card fields (NMI Collect.js / Easy Pay Direct iframes, WooCommerce's credit-card form). */
.mx #payment .payment_box fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.mx #payment .payment_box .form-row {
  margin-bottom: 12px;
}

.mx #payment .payment_box iframe {
  max-width: 100%;
}

.mx #payment .payment_box .wc-credit-card-form,
.mx #payment .payment_box .wc-payment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mx #payment .payment_box .wc-credit-card-form .form-row-wide,
.mx #payment .payment_box .wc-payment-form .form-row-wide {
  grid-column: 1 / -1;
}

.mx #payment .payment_box .wc-credit-card-form .form-row-first,
.mx #payment .payment_box .wc-credit-card-form .form-row-last {
  grid-column: span 1;
}

.mx #payment .payment_box input.input-text,
.mx #payment .payment_box .CollectJSInlineIframe,
.mx #payment .payment_box [id^="ccnumber"],
.mx #payment .payment_box [id^="ccexp"],
.mx #payment .payment_box [id^="cvv"] {
  min-height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--panel);
}

.mx #payment .wc-credit-card-form-card-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* WooCommerce's "no payment method" message (until the Easy Pay Direct gateway is enabled). */
.mx #payment ul.wc_payment_methods > li.woocommerce-notice,
.mx #payment ul.wc_payment_methods > li.woocommerce-info {
  margin: 0;
  padding: 14px 16px 14px 44px;
  border: 1px dashed var(--blue-200);
  background: var(--blue-50);
  box-shadow: none;
}

.mx #payment .place-order {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.mx .woocommerce-terms-and-conditions-wrapper {
  color: var(--ink-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.mx .woocommerce-privacy-policy-text p {
  margin: 0;
}

.mx .woocommerce-terms-and-conditions-wrapper .validate-required {
  margin-top: 10px;
}

.mx .woocommerce-terms-and-conditions-wrapper input[type="checkbox"],
.mx .form-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.mx-submit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mx #place_order,
.mx .mx-btn-pay {
  width: 100%;
  min-height: 60px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.25;
  white-space: normal;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}

@media (hover: hover) {
  .mx #place_order:hover {
    background: var(--accent-hover);
  }
}

.mx #place_order:disabled,
.mx #place_order.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mx-submit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
}

.mx-submit-note .mx-icon {
  color: var(--success);
}

/* WooCommerce's processing overlay */
.mx .blockUI.blockOverlay {
  border-radius: inherit;
  background: rgb(255 255 255 / 0.7) !important;
}

/* ------------------------------------------------------------------------ order summary (OrderSummary) */
.mx-co-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.mx-summary {
  padding: 0;
  overflow: hidden;
}

.mx-summary-head {
  padding: 20px 22px 14px;
  background: linear-gradient(180deg, var(--blue-50), var(--white));
  border-bottom: 1px solid var(--line);
}

.mx-summary-head .mx-sec-eyebrow {
  margin-bottom: 2px;
}

.mx-summary-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.mx #order_review {
  padding: 6px 22px 4px;
}

.mx table.woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 14.5px;
}

.mx table.woocommerce-checkout-review-order-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.mx table.woocommerce-checkout-review-order-table th,
.mx table.woocommerce-checkout-review-order-table td {
  padding: 10px 0;
  border: 0;
  background: none;
  text-align: left;
  vertical-align: top;
}

.mx table.woocommerce-checkout-review-order-table .cart_item td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mx table.woocommerce-checkout-review-order-table td.product-name {
  position: relative;
  padding-left: 84px;
  min-height: 72px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.mx-line,
.mx-line-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mx-line-thumb {
  position: absolute;
  top: 12px;
  left: 0;
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: radial-gradient(ellipse 70% 60% at 50% 60%, var(--white), var(--blue-50));
}

.mx-line-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.mx-line-name {
  font-size: 15px;
}

.mx .mx-sku {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  color: var(--accent-hover);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.mx table.woocommerce-checkout-review-order-table .product-quantity {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}

.mx table.woocommerce-checkout-review-order-table td.product-total,
.mx table.woocommerce-checkout-review-order-table tfoot td {
  padding-left: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.mx table.woocommerce-checkout-review-order-table tfoot th {
  color: var(--ink-soft);
  font-weight: 500;
}

.mx table.woocommerce-checkout-review-order-table tfoot tr:first-child th,
.mx table.woocommerce-checkout-review-order-table tfoot tr:first-child td {
  padding-top: 14px;
}

.mx table.woocommerce-checkout-review-order-table .order-total th,
.mx table.woocommerce-checkout-review-order-table .order-total td {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.mx table.woocommerce-checkout-review-order-table .order-total th {
  font-weight: 700;
}

.mx table.woocommerce-checkout-review-order-table .includes_tax {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 500;
}

/* When the payment block is left in its stock place (MATTIC_BRAND_PAYMENT_IN_SUMMARY). */
.mx #order_review #payment {
  margin: 8px -22px 0;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

.mx-included {
  margin: 0 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.mx-included-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mx-included-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}

.mx-included-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  line-height: 1.4;
}

.mx-included-list .mx-icon {
  width: 20px;
  height: 20px;
  margin-top: -1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--success);
  stroke-width: 3;
}

.mx-disclosure {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  background: var(--slate-50);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.mx-disclosure p {
  margin: 0;
}

.mx-disclosure p:first-child {
  display: flex;
  gap: 10px;
}

.mx-disclosure p:first-child .mx-icon {
  margin-top: 2px;
  color: var(--accent);
}

.mx-disclosure strong {
  color: var(--ink);
}

.mx-disclosure-fine {
  margin-top: 10px !important;
  color: var(--ink-muted);
  font-size: 12.5px;
}

.mx-side-help {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

.mx-side-help a {
  font-weight: 700;
}

/* ---------------------------------------------------------------------------- shop hero (shop.css) */
.mx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 78% 20%, rgb(79 112 255 / 0.28), transparent 65%),
    radial-gradient(ellipse 60% 80% at 10% 100%, rgb(38 72 142 / 0.45), transparent 70%),
    linear-gradient(168deg, var(--navy-800), var(--navy-900) 55%, var(--navy-950));
  color: var(--ondark-ink);
}

.mx-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px var(--gutter) 48px;
  text-align: center;
}

.mx-hero .mx-eyebrow {
  color: var(--blue-400);
}

.mx-hero-title {
  max-width: 20ch;
  margin: 0 auto;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.06;
}

.mx-hero-title em {
  display: block;
  color: #7f9bff;
  font-style: normal;
}

.mx-hero-sub {
  max-width: 44rem;
  margin: 16px auto 0;
  color: var(--ondark-ink-soft);
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 1.55;
}

.mx-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--ondark-ink);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.mx-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mx-hero-trust .mx-icon {
  color: var(--blue-400);
}

/* Filter pills (shop-chip) */
.mx-filter {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.admin-bar .mx-filter {
  top: 32px;
}

.mx-filter-scroller {
  display: flex;
  gap: 8px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.mx-filter-scroller::-webkit-scrollbar {
  display: none;
}

@media (min-width: 64rem) {
  .mx-filter-scroller {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
}

.mx .mx-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--slate-100);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), background-color var(--dur-fast) var(--ease);
}

.mx .mx-chip[aria-current="true"] {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

@media (hover: hover) {
  .mx .mx-chip:hover {
    border-color: var(--line-input);
    box-shadow: var(--shadow-2);
    transform: translateY(-1px);
  }

  .mx .mx-chip[aria-current="true"]:hover {
    border-color: var(--navy-900);
  }
}

.mx .mx-chip:active {
  transform: scale(0.98);
}

/* ------------------------------------------------------------------------ catalog grid & cards (cards.css) */
.mx-catalog {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter) 64px;
}

.mx-count {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 14.5px;
}

.mx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 40rem) {
  .mx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .mx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.mx-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
}

.mx-card[hidden] {
  display: none;
}

@media (hover: hover) {
  .mx-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-3);
    transform: translateY(-3px);
  }

  .mx-card:hover .mx-card-img {
    transform: scale(1.04);
  }
}

/* The clinical pedestal: the still's white ground multiplied onto a soft blue stage with a floor shadow. */
.mx-card-media,
.mx-pdp-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse 46% 7% at 50% 86%, rgb(10 23 51 / 0.12), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 42%, var(--white) 0%, var(--blue-50) 62%, var(--blue-100) 100%);
}

.mx-card-media img,
.mx-pdp-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 460ms var(--ease);
}

.mx-card-badges {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  pointer-events: none;
}

.mx .mx-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.mx .mx-badge-soft {
  background: var(--white);
  color: var(--accent-hover);
  box-shadow: var(--shadow-1);
}

.mx-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 4px 4px;
}

.mx-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.mx-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.mx-card-title a:hover {
  color: var(--accent);
}

.mx-card-line {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.mx-variant {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.mx-variant-label {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mx select.mx-select {
  height: 44px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  line-height: 42px;
}

.mx-variant-single {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.mx-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.mx .mx-card-meta .mx-sku {
  align-self: center;
}

.mx-price {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mx .mx-card-cta {
  width: 100%;
  margin-top: 6px;
}

.mx-empty {
  padding: 32px 0;
  color: var(--ink-muted);
  text-align: center;
}

/* -------------------------------------------------------------------------------- product page (pdp) */
.mx-pdp-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter) 64px;
}

.mx-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

.mx-crumbs a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.mx-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-section);
  background: var(--panel);
  box-shadow: var(--shadow-1);
}

@media (min-width: 56rem) {
  .mx-pdp {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding: 28px;
  }
}

.mx-pdp-media {
  border-radius: var(--radius-xl);
}

.mx-pdp-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
}

.mx-pdp-info .mx-eyebrow {
  margin: 0;
}

.mx-pdp-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
}

.mx-pdp-tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.mx-pdp-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mx .mx-chip-variant {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: 52px;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  background: var(--white);
}

.mx .mx-chip-variant small {
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.mx .mx-chip-variant[aria-current="true"] {
  border-color: var(--accent);
  background: var(--blue-50);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--accent);
}

.mx .mx-chip-variant[aria-current="true"] small {
  color: var(--accent-hover);
}

.mx-pdp-buy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mx-pdp-price {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mx-included-plain {
  margin: 6px 0 0;
  padding: 16px 0 0;
}

.mx-pdp-about {
  max-width: 48rem;
  margin: 36px auto 0;
}

.mx-pdp-h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.mx-prose {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.65;
}

.mx-prose h3 {
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.mx-prose ul {
  padding-left: 1.2em;
}

.mx-pdp-fine {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------- order received, cart, account */
.mx .woocommerce-order {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-1);
}

.mx ul.woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mx ul.woocommerce-order-overview strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.mx table.shop_table:not(.woocommerce-checkout-review-order-table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.mx table.shop_table:not(.woocommerce-checkout-review-order-table) th,
.mx table.shop_table:not(.woocommerce-checkout-review-order-table) td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.mx .woocommerce-order-details__title,
.mx .woocommerce-column__title {
  font-family: var(--font-display);
  font-weight: 500;
}

.mx .button:not(.mx-btn):not(#place_order) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.mx .button.alt:not(#place_order),
.mx .checkout-button {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: var(--white) !important;
}

.mx-404 {
  max-width: 40rem;
  margin: 40px auto;
  text-align: center;
}

/* ------------------------------------------------------------------------------------ footer.css */
.mx-foot {
  position: relative;
  margin-top: 24px;
  border-top: 3px solid var(--blue-500);
  background: var(--navy-900);
  color: var(--ondark-ink);
}

.mx-foot-pulse {
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  color: var(--ondark-accent);
  opacity: 0.8;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.mx-foot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 60rem;
  margin: 0 auto;
  padding: 44px var(--gutter) 28px;
  text-align: center;
}

.mx-foot-logo img {
  display: block;
  width: auto;
  height: 40px;
}

.mx-foot p {
  margin: 0;
}

.mx-foot a {
  color: #9db0ff;
  font-weight: 600;
}

.mx-foot-help {
  color: var(--ondark-ink);
  font-size: 15px;
}

.mx-foot-disclaimer {
  max-width: 46rem;
  padding: 12px 16px;
  border: 1px solid var(--ondark-line);
  border-radius: var(--radius-md);
  background: rgb(19 38 87 / 0.45);
  color: var(--ondark-ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.mx-foot-business {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 0;
  color: var(--ondark-muted);
  font-size: 13px;
  font-style: normal;
}

.mx-foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font-size: 13px;
}

.mx-foot-legal a {
  color: var(--ondark-ink-soft);
  font-weight: 500;
}

.mx-foot-copy {
  color: var(--ondark-muted);
  font-size: 12.5px;
}

/* ------------------------------------------------------------------------------------- phone tweaks */
@media (max-width: 63.99rem) {
  /* The protocol being bought comes first on a phone (the real checkout's summary sits above the form). */
  .mx-co-side {
    order: -1;
  }

  .mx-side-help {
    display: none;
  }
}

@media (max-width: 39.99rem) {
  .mx-trust {
    margin-bottom: 4px;
  }

  .mx-trust-pill {
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-md);
  }

  .mx-trust-pill .mx-dot {
    display: none;
  }

  .mx-trust-pill .mx-icon {
    display: none;
  }
}
