/* Packaged copies of the same typefaces used by jointcomfortcare.com. */
@font-face {
  font-family: 'JCC Inter';
  src: url('fonts/inter-400.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JCC Inter';
  src: url('fonts/inter-500.woff') format('woff');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'JCC Inter';
  src: url('fonts/inter-600.woff') format('woff');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'JCC Lora';
  src: url('fonts/lora-500.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'JCC Lora';
  src: url('fonts/lora-600.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
/* JointComfort Care: shared palette, scoped to checkout/cart and the purchase selector. */
.jcc-commerce,
.jcc-purchase {
  --jcc-navy: #0f3563;
  --jcc-green: #5b8a5a;
  --jcc-forest: #2f4a3c;
  --jcc-amber: #f2a94c;
  --jcc-cream: #f6f5ef;
  --jcc-sand: #ebeae1;
  --jcc-ink: #1d2b26;
  --jcc-muted: #526158;
  --jcc-line: #e4e6df;
  --jcc-shadow: 0 12px 32px rgb(29 43 38 / 10%);
  --jcc-serif: 'JCC Lora', 'Lora', Georgia, serif;
  --jcc-sans: 'JCC Inter', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--jcc-ink);
  font-family: var(--jcc-sans);
  font-size: 17px;
  line-height: 1.6;
}

body.jcc-commerce,
body.jcc-purchase { background: var(--jcc-sand); }

.jcc-commerce :where(.woocommerce, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart) {
  color: var(--jcc-ink);
  font-family: var(--jcc-sans);
  --wc-form-color-text: #1d2b26;
  --wc-form-color-background: #fff;
  --wc-form-border-color: #cfd5cf;
  --wc-form-border-radius: 12px;
  --wc-separator-color: #e4e6df;
}

.jcc-checkout-brand {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.jcc-brand-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 10px 28px; border-radius: 28px; background: var(--jcc-cream); }
.jcc-commerce .jcc-brand,
.jcc-purchase .jcc-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .22em;
  min-height: 44px;
  color: var(--jcc-navy);
  font: 600 clamp(1.3rem, 3.5vw, 1.75rem)/1.3 var(--jcc-serif);
  text-decoration: none;
}
.jcc-brand span { color: var(--jcc-forest); font-style: italic; }
.jcc-brand img { display: block; width: min(260px, 100%); height: auto; object-fit: contain; mix-blend-mode: multiply; }
.jcc-purchase .jcc-card > img { display: block; width: min(100%, 260px); height: auto; }
.jcc-commerce .jcc-back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--jcc-forest); font-size: .95rem; font-weight: 500; text-underline-offset: 4px; }
.jcc-checkout-intro { padding: 30px 0 0; }
.jcc-commerce .jcc-checkout-intro h1 { margin: 0 0 6px; color: var(--jcc-ink); font: 500 clamp(1.9rem, 3.6vw, 2.6rem)/1.2 var(--jcc-serif); letter-spacing: -.01em; }
.jcc-delivery-note { margin: 8px 0 0; color: var(--jcc-muted); font-size: .94rem; }

.jcc-commerce :where(.woocommerce, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart) :where(h1, h2, h3),
.jcc-purchase :where(h1, h2, h3) {
  color: var(--jcc-navy);
  font-family: var(--jcc-serif);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.jcc-commerce :where(.woocommerce, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart) a { color: var(--jcc-navy); text-underline-offset: 3px; }
.jcc-commerce .woocommerce form.checkout,
.jcc-commerce .woocommerce .cart_totals {
  box-sizing: border-box;
  padding: clamp(18px, 3vw, 30px);
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--jcc-shadow);
}
.jcc-commerce .woocommerce form .form-row label { color: var(--jcc-ink); font-weight: 500; }
.jcc-commerce .woocommerce form .form-row :where(input.input-text, textarea, select) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #cfd5cf;
  border-radius: 12px;
  background: #fff;
  color: var(--jcc-ink);
  font: 400 1rem/1.5 var(--jcc-sans);
}
.jcc-commerce .select2-container .select2-selection--single { height: auto; min-height: 48px; padding: 8px 4px; border-color: #cfd5cf; border-radius: 12px; }
.jcc-commerce .select2-container .select2-selection--single .select2-selection__arrow { top: 10px; }
.jcc-commerce .woocommerce table.shop_table { border-color: var(--jcc-line); border-radius: 14px; background: #fff; }
.jcc-commerce .woocommerce table.shop_table :where(th, td) { border-color: var(--jcc-line); }
.jcc-commerce .woocommerce-checkout #payment { border-radius: 16px; background: var(--jcc-cream); }
.jcc-commerce .woocommerce-checkout #payment div.payment_box { background: var(--jcc-sand); color: var(--jcc-ink); }
.jcc-commerce .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--jcc-sand); }
.jcc-commerce .woocommerce :where(.woocommerce-info, .woocommerce-message) { background: #fff; color: var(--jcc-ink); border-top-color: var(--jcc-forest); }
.jcc-commerce .woocommerce :where(.woocommerce-info, .woocommerce-message)::before { color: var(--jcc-forest); }

/* Native Blocks keep their floating labels, validation, payment fields and mobile ordering. */
.jcc-commerce :where(.wc-block-checkout, .wc-block-cart) { margin-top: 0; font-family: var(--jcc-sans); font-size: 17px; }
.jcc-commerce .wc-block-checkout .wc-block-components-checkout-step {
  box-sizing: border-box;
  min-width: 0;
  margin: 0 0 22px;
  padding: 28px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--jcc-shadow);
}
.jcc-commerce .wc-block-checkout .wc-block-components-checkout-step__heading-container { margin-bottom: 18px; }
.jcc-commerce .wc-block-checkout .wc-block-components-checkout-step__heading { margin: 0; }
.jcc-commerce .wc-block-checkout .wc-block-components-checkout-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--jcc-navy);
  font: 500 1.3rem/1.35 var(--jcc-serif);
  text-transform: none;
}
.jcc-commerce .wc-block-checkout .wc-block-components-checkout-step__title::before {
  content: '';
  display: block;
  position: static;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--jcc-green);
  transform: none;
}
/* Respect stores which enable Woo's own numbered steps. */
.jcc-commerce .wc-block-checkout__form--with-step-numbers .wc-block-components-checkout-step__title::before {
  content: counter(checkout-step);
  counter-increment: checkout-step;
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: #bccdb8;
  color: var(--jcc-forest);
  font: 600 .9rem/1 var(--jcc-sans);
}
.jcc-commerce .wc-block-components-sidebar { box-sizing: border-box; padding: 28px; border: 0; border-radius: 28px; background: #fff; box-shadow: var(--jcc-shadow); }
.jcc-commerce .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block { border: 0; border-radius: 0; font-size: .95rem; }
.jcc-commerce .wc-block-checkout .wc-block-components-checkout-order-summary__title { margin-top: 0; padding: 0 0 18px; color: var(--jcc-navy); font: 500 1.3rem/1.35 var(--jcc-serif); }
.jcc-commerce .wc-block-checkout .wc-block-components-checkout-order-summary__content { padding: 0; border: 0; }
.jcc-commerce .wc-block-components-form .wc-block-components-text-input input:not([type=checkbox]):not([type=radio]),
.jcc-commerce .wc-block-components-text-input input:not([type=checkbox]):not([type=radio]),
.jcc-commerce .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.jcc-commerce .wc-block-components-form .wc-block-components-textarea,
.jcc-commerce .wc-block-components-form .wc-block-components-select .wc-block-components-select__select {
  border: 1.5px solid #cfd5cf;
  border-radius: 12px;
  background: #fff;
  color: var(--jcc-ink);
  font-family: var(--jcc-sans);
  font-size: 1rem;
  box-shadow: none;
}
.jcc-commerce .wc-block-components-form .wc-block-components-text-input input:focus,
.jcc-commerce .wc-block-components-form .wc-block-components-select .wc-block-components-select__select:focus,
.jcc-commerce .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus { border-color: var(--jcc-green); box-shadow: 0 0 0 3px rgb(91 138 90 / 22%); }
.jcc-commerce .wc-block-components-form .wc-block-components-text-input.has-error input,
.jcc-commerce .wc-block-components-form .wc-block-components-select.has-error .wc-block-components-select__select { border-color: #c0392b; }
.jcc-commerce .wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name { color: var(--jcc-navy); font: 500 1.05rem/1.4 var(--jcc-serif); }
.jcc-commerce .wc-block-checkout .wc-block-components-order-summary-item__image img { border: 1px solid var(--jcc-line); border-radius: 14px; background: #fff; }
.jcc-commerce .wc-block-checkout .wc-block-components-product-metadata { color: var(--jcc-muted); font: 400 .85rem/1.5 var(--jcc-sans); }
.jcc-commerce .wc-block-checkout .wc-block-components-totals-item { padding-right: 0; padding-left: 0; }
.jcc-commerce .wc-block-checkout .wc-block-components-totals-footer-item { font-size: 1.25rem; }
.jcc-commerce .wc-block-checkout .wc-block-components-totals-discount { color: var(--jcc-forest); }
.jcc-commerce .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices { color: var(--jcc-muted); }

.jcc-commerce .woocommerce :where(a.button, button.button, input.button),
.jcc-commerce .wc-block-components-button:not(.is-link),
.jcc-purchase .jcc-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 2px solid var(--jcc-navy);
  border-radius: 999px;
  background: var(--jcc-navy);
  color: #fff;
  font: 600 1rem/1.4 var(--jcc-sans);
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}
.jcc-commerce .woocommerce :where(a.button, button.button, input.button):hover,
.jcc-commerce .wc-block-components-button:not(.is-link):hover,
.jcc-purchase .jcc-button:hover { border-color: #082748; background: #082748; color: #fff; }
.jcc-commerce .woocommerce #place_order,
.jcc-commerce .wc-block-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button,
.jcc-purchase .jcc-button[type=submit] { background: var(--jcc-amber); border-color: var(--jcc-amber); color: #2b1c05; }
.jcc-commerce .woocommerce #place_order:hover,
.jcc-commerce .wc-block-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button:hover,
.jcc-purchase .jcc-button[type=submit]:hover { background: #e7a041; border-color: #e7a041; color: #2b1c05; }
.jcc-commerce :where(.woocommerce, .wc-block-checkout, .wc-block-cart, .jcc-checkout-brand) :focus-visible,
.jcc-purchase :focus-visible { outline: 3px solid var(--jcc-navy); outline-offset: 4px; box-shadow: 0 0 0 2px #fff; }
.jcc-purchase .jcc-button:disabled,
.jcc-commerce .wc-block-components-button:disabled { opacity: .6; cursor: not-allowed; }
.jcc-commerce .wc-block-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button { border-radius: 999px; min-height: 56px; font-size: 1.1rem; box-shadow: none; }

/* Purchase selector is an ordinary server-rendered form; payment remains at Woo checkout. */
.jcc-purchase { box-sizing: border-box; margin: 0; padding: clamp(16px, 4vw, 42px); }
.jcc-purchase *, .jcc-purchase *::before, .jcc-purchase *::after { box-sizing: border-box; }
.jcc-purchase .jcc-card { width: min(100%, 700px); margin: 24px auto; padding: clamp(22px, 5vw, 42px); border: 1px solid var(--jcc-line); border-radius: 28px; background: #fff; box-shadow: 0 12px 32px rgb(29 43 38 / 8%); }
.jcc-purchase h1 { margin: 24px 0 12px; font-size: clamp(1.75rem, 4vw, 2.4rem); }
.jcc-purchase p { margin: 12px 0; }
.jcc-purchase a:not(.jcc-button):not(.jcc-brand) { color: var(--jcc-navy); text-underline-offset: 3px; }
.jcc-purchase .jcc-muted { color: var(--jcc-muted); font-size: .95rem; }
.jcc-purchase .jcc-field { display: block; margin: 20px 0; }
.jcc-purchase .jcc-field label,
.jcc-purchase label.jcc-field { color: var(--jcc-ink); font-weight: 600; }
.jcc-purchase :where(select, input[type=number], input[type=text], input[type=email]) { display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 11px 13px; border: 1px solid #89988b; border-radius: 10px; background: #fff; color: var(--jcc-ink); font: 400 1rem/1.5 var(--jcc-sans); }
.jcc-purchase select { padding-right: 36px; }
.jcc-purchase .jcc-product-list { display: grid; gap: 18px; margin: 22px 0; padding: 20px; border-radius: 16px; background: var(--jcc-cream); }
.jcc-purchase .jcc-product-list > div { display: flex; align-items: center; gap: 16px; }
.jcc-purchase .jcc-product-list img { width: 88px; height: 88px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 12px; }
.jcc-purchase .jcc-product-list p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.jcc-purchase .jcc-error { margin: 20px 0; padding: 14px 18px; border: 1px solid #a73524; border-left-width: 4px; border-radius: 10px; background: #fff3ef; color: #79291e; }
.jcc-purchase form > .jcc-button { width: 100%; margin-top: 8px; }

/* Page shell adapted from the supplied main site's checkout.html and styles.css. */
body.jcc-checkout-shell { margin: 0; padding: 0; background: var(--jcc-sand); color: var(--jcc-ink); font: 400 17px/1.6 var(--jcc-sans); }
.jcc-checkout-shell .jcc-shell-page { box-sizing: border-box; width: 100%; padding: 12px; }
.jcc-checkout-shell .jcc-shell-wrap { box-sizing: border-box; width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.jcc-checkout-shell .jcc-shell-header { position: static; margin: 12px; padding: 0; border: 0; border-bottom: 1px solid rgb(0 0 0 / 5%); border-radius: 28px; background: var(--jcc-cream); }
.jcc-checkout-shell .jcc-shell-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.jcc-checkout-shell .jcc-shell-header .jcc-brand { width: 260px; max-width: 100%; flex-shrink: 0; }
.jcc-checkout-shell .jcc-shell-header .jcc-brand img { width: 100%; height: auto; }
.jcc-checkout-shell .jcc-shell-secure { display: flex; align-items: center; gap: 8px; color: var(--jcc-muted); font-size: .92rem; font-weight: 500; }
.jcc-checkout-shell .jcc-shell-secure svg { flex-shrink: 0; }
.jcc-checkout-shell .jcc-shell-main { margin: 0; padding: 36px 0 70px; max-width: none; }
.jcc-checkout-shell .jcc-shell-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--jcc-forest); font-weight: 500; text-decoration: none; }
.jcc-checkout-shell .jcc-shell-back:hover { color: var(--jcc-navy); text-decoration: underline; text-underline-offset: 4px; }
.jcc-checkout-shell h1.jcc-shell-title { margin: 14px 0 6px; padding: 0; color: var(--jcc-ink); font: 500 clamp(1.9rem, 3.6vw, 2.6rem)/1.15 var(--jcc-sans); letter-spacing: -.01em; text-align: left; }
.jcc-checkout-shell .jcc-shell-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0 28px; padding: 0; color: var(--jcc-muted); font-size: .9rem; }
.jcc-checkout-shell .jcc-shell-steps a, .jcc-checkout-shell .jcc-shell-steps strong { color: var(--jcc-navy); font-weight: 600; text-decoration: none; }
.jcc-checkout-shell .jcc-shell-steps a { display: inline-flex; align-items: center; min-height: 32px; }
.jcc-checkout-shell .jcc-native-checkout { margin: 0; padding: 0; }
.jcc-checkout-shell .jcc-native-checkout > .wp-block-woocommerce-checkout { width: 100%; max-width: none; margin: 0; }
.jcc-checkout-shell .wc-block-checkout__form { counter-reset: jcc-checkout-step; }
.jcc-checkout-shell .wc-block-checkout .wc-block-components-checkout-step { counter-increment: jcc-checkout-step; }
.jcc-checkout-shell .wc-block-checkout .wc-block-components-checkout-step__title::before {
  content: counter(jcc-checkout-step);
  counter-increment: none;
  display: inline-grid;
  place-items: center;
  position: static;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bccdb8;
  color: var(--jcc-forest);
  font: 600 .9rem/1 var(--jcc-sans);
  transform: none;
}
.jcc-checkout-shell .wc-block-checkout .wc-block-components-checkout-step__content::before,
.jcc-checkout-shell .wc-block-checkout .wc-block-components-checkout-step__description::before { content: none; }
.jcc-checkout-shell .wc-block-checkout .wc-block-components-checkout-step__content { margin: 0; padding: 0; }
.jcc-checkout-shell .wc-block-checkout .wc-block-components-radio-control__option { margin-bottom: 10px; border-radius: 14px; }
.jcc-checkout-shell .wc-block-checkout .wc-block-components-radio-control__option-checked { background: #f1f6ef; }
.jcc-checkout-shell .wc-block-checkout .wc-block-components-radio-control__input { accent-color: var(--jcc-green); }
.jcc-checkout-shell .wc-block-checkout .wc-block-components-checkout-place-order-button { padding: 17px; }
.jcc-checkout-shell .jcc-shell-delivery-note { margin: 20px 0 0; color: var(--jcc-muted); font-size: .88rem; }
.jcc-checkout-shell .jcc-shell-footer { position: static; margin: 12px; padding: 60px 0 26px; border: 0; border-radius: 28px; background: var(--jcc-navy); color: #d7e0ec; }
.jcc-checkout-shell .jcc-shell-legal { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px; border: 0; color: #b7c6d9; font-size: .85rem; }
.jcc-checkout-shell .jcc-shell-legal > div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.jcc-checkout-shell .jcc-shell-legal a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.jcc-checkout-shell .jcc-shell-legal a:hover { color: var(--jcc-amber); text-decoration: underline; text-underline-offset: 4px; }
.jcc-checkout-shell :where(.jcc-shell-header, .jcc-shell-main, .jcc-shell-footer) :focus-visible { outline: 3px solid var(--jcc-amber); outline-offset: 3px; }

@media (min-width: 901px) {
  .jcc-commerce .wc-block-checkout.is-large.wc-block-components-sidebar-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .jcc-commerce .wc-block-checkout.is-large.wc-block-components-sidebar-layout > .wc-block-components-main { width: auto; min-width: 0; margin: 0; padding: 0; }
  .jcc-commerce .wc-block-checkout.is-large.wc-block-components-sidebar-layout > .wc-block-components-sidebar { width: auto; min-width: 0; margin: 0; padding: 28px; }
  .jcc-checkout-shell .wc-block-checkout.is-large.wc-block-components-sidebar-layout > .wc-block-components-sidebar { position: sticky; top: 96px; }
}
@media (max-width: 600px) {
  .jcc-brand-row { gap: 4px 16px; padding: 10px 18px; }
  .jcc-brand-row .jcc-brand img { width: 220px; }
  .jcc-checkout-intro { padding-top: 24px; }
  .jcc-commerce .wc-block-checkout .wc-block-components-checkout-step,
  .jcc-commerce .wc-block-components-sidebar { padding: 22px 18px; }
  .jcc-purchase .jcc-card { margin: 8px auto; }
  .jcc-purchase .jcc-product-list > div { gap: 12px; }
  .jcc-purchase .jcc-product-list img { width: 64px; height: 64px; }
}
@media (max-width: 640px) {
  .jcc-checkout-shell .jcc-shell-page { padding: 6px; }
  .jcc-checkout-shell .jcc-shell-wrap { width: min(1180px, calc(100% - 32px)); }
  .jcc-checkout-shell .jcc-shell-header, .jcc-checkout-shell .jcc-shell-footer { margin: 6px; }
  .jcc-checkout-shell .jcc-shell-nav { flex-wrap: wrap; gap: 4px 16px; }
  .jcc-checkout-shell .jcc-shell-header .jcc-brand { width: 220px; }
  .jcc-checkout-shell .jcc-shell-secure { min-height: 32px; font-size: .85rem; }
  .jcc-checkout-shell .jcc-shell-main { padding: 24px 0 44px; }
  .jcc-checkout-shell .jcc-shell-footer { padding: 28px 0 20px; }
  .jcc-checkout-shell .jcc-shell-steps { gap: 6px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .jcc-purchase *, .jcc-commerce .jcc-checkout-brand * { scroll-behavior: auto; transition: none; }
}
