@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-400-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --cap-background: oklch(98% .009 80);
  --cap-background-subtle: #f1ece3;
  --cap-surface: #fffdf9;
  --cap-surface-alt: #eae4d8;
  --cap-border: oklch(86% .017 79);
  --cap-border-strong: #b8af9f;
  --cap-text: oklch(22% .049 254);
  --cap-text-secondary: oklch(43% .037 255);
  --cap-text-muted: #6c665d;
  --cap-primary: #002f5f;
  --cap-primary-hover: #00264d;
  --cap-primary-deep: #001f3f;
  --cap-primary-soft: #dce8f5;
  --cap-gold: #b78a2f;
  --cap-gold-soft: #e8d7ae;
  --cap-gold-deep: #8e6b24;
  --cap-success: #2f6b45;
  --cap-warning: #9c6b12;
  --cap-danger: #8f2d2d;
  --cap-shadow: 0 2px 8px oklch(22% .049 254 / .06);
  --cap-focus: 0 0 0 3px rgba(183, 138, 47, 0.36);
  --cap-container: 1400px;
  --cap-pad: clamp(20px, 4vw, 40px);
  --cap-serif: 'Source Serif 4', Georgia, serif;
  font-family: 'Source Sans 3', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cap-background);
  color: var(--cap-text);
  font-size: 16px;
  overflow-x: clip;
}

body.capitaurum-commerce {
  background: var(--cap-background);
  color: var(--cap-text);
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

body.capitaurum-commerce,
body.capitaurum-commerce button,
body.capitaurum-commerce input,
body.capitaurum-commerce select,
body.capitaurum-commerce textarea {
  font: inherit;
}

body.capitaurum-commerce img,
body.capitaurum-commerce svg {
  display: block;
  height: auto;
  max-width: 100%;
}

body.capitaurum-commerce a {
  color: inherit;
  text-decoration: none;
}

body.capitaurum-commerce a:focus-visible,
body.capitaurum-commerce button:focus-visible,
body.capitaurum-commerce input:focus-visible,
body.capitaurum-commerce select:focus-visible,
body.capitaurum-commerce textarea:focus-visible,
body.capitaurum-commerce summary:focus-visible {
  border-radius: 8px;
  box-shadow: var(--cap-focus);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.cap-container {
  margin: 0 auto;
  max-width: var(--cap-container);
  padding-inline: var(--cap-pad);
  width: 100%;
}

.cap-skip-link {
  background: var(--cap-surface);
  border: 2px solid var(--cap-primary);
  color: var(--cap-primary);
  font-weight: 800;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 16px;
  transform: translateY(-160%);
  z-index: 1000;
}

.cap-skip-link:focus {
  transform: translateY(0);
}

.cap-preview {
  background: #fff4d6;
  border-bottom: 1px solid rgba(183, 138, 47, 0.42);
  color: #503a0b;
}

.cap-preview__inner {
  align-items: baseline;
  display: flex;
  font-size: 0.82rem;
  gap: 12px;
  line-height: 1.45;
  padding-block: 9px;
}

.cap-preview__inner strong {
  color: var(--cap-primary);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cap-header {
  background: var(--cap-background);
  border-bottom: 1px solid var(--cap-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-bar .cap-header {
  top: 32px;
}

.cap-topbar {
  background: var(--cap-primary);
  color: #f8f6f2;
  font-size: 0.86rem;
}

.cap-topbar__inner {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 38px;
}

.cap-topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.cap-topbar a {
  color: #f8f6f2;
  font-weight: 650;
}

.cap-nav-shell {
  align-items: center;
  display: grid;
  gap: clamp(14px, 2vw, 26px);
  grid-template-columns: auto 1fr;
  max-width: 1400px;
  min-height: 84px;
  position: relative;
}

.cap-brand,
.cap-footer-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.cap-brand {
  min-width: 188px;
}

.cap-brand__mark,
.cap-footer-brand__mark {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 14px;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  overflow: hidden;
}

.cap-brand__mark {
  background: var(--cap-primary);
  height: 48px;
  width: 48px;
}

.cap-brand__mark img {
  height: 36px;
  object-fit: contain;
  width: 36px;
}

.cap-brand__copy {
  display: grid;
  gap: 2px;
}

.cap-brand strong {
  font-family: var(--cap-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

.cap-brand small {
  color: var(--cap-text-muted);
  font-size: 0.76rem;
}

.cap-nav {
  align-items: center;
  display: flex;
  gap: clamp(8px, 1vw, 15px);
  justify-content: flex-end;
}

.cap-nav > a,
.cap-nav-menu > summary,
.cap-header-search > summary {
  align-items: center;
  color: var(--cap-text-secondary);
  cursor: pointer;
  display: inline-flex;
  font-size: clamp(0.78rem, 0.82vw, 0.9rem);
  font-weight: 700;
  list-style: none;
  min-height: 44px;
  padding-block: 12px;
  white-space: nowrap;
}

.cap-nav a:hover,
.cap-nav-menu summary:hover,
.cap-header-search summary:hover {
  color: var(--cap-gold-deep);
}

.cap-nav-menu {
  position: relative;
}

.cap-nav-menu summary {
  gap: 7px;
}

.cap-nav-menu summary::-webkit-details-marker,
.cap-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.cap-nav-menu summary::after {
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  height: 6px;
  margin-top: -3px;
  transform: rotate(45deg);
  width: 6px;
}

.cap-nav-menu > div {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  box-shadow: var(--cap-shadow);
  display: grid;
  gap: 3px;
  min-width: 180px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
}

.cap-nav-menu:not([open]) > div {
  display: none;
}

.cap-nav-menu > div a {
  border-radius: 6px;
  padding: 10px 12px;
}

.cap-nav-menu > div a:hover {
  background: var(--cap-background-subtle);
}

.cap-header-search {
  position: relative;
}

.cap-header-search > summary {
  align-items: center;
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  list-style: none;
  min-height: 44px;
  padding: 0;
  width: 44px;
}

.cap-header-search > summary::-webkit-details-marker {
  display: none;
}

.cap-header-search[open] > summary {
  background: var(--cap-background-subtle);
  border-color: var(--cap-border-strong);
  color: var(--cap-text);
}

.cap-header-icon {
  fill: none;
  height: 21px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.cap-header-search__panel {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  box-shadow: var(--cap-shadow);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 40px));
  z-index: 35;
}

.cap-header-search:not([open]) .cap-header-search__panel {
  display: none;
}

.cap-header-search__panel label {
  color: var(--cap-text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  grid-column: 1 / -1;
}

.cap-header-search__panel input {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border-strong);
  border-radius: 8px;
  color: var(--cap-text);
  min-height: 44px;
  min-width: 0;
  padding: 10px 12px;
  width: 100%;
}

.cap-header-search__panel button {
  background: var(--cap-primary);
  border: 0;
  border-radius: 8px;
  color: #f8f6f2;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding-inline: 16px;
}

.cap-header-search__panel button:hover {
  background: var(--cap-primary-hover);
}

.cap-nav .cap-cart-link {
  align-items: center;
  background: var(--cap-primary);
  border-radius: 8px;
  color: #f8f6f2;
  flex: 0 0 44px;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  position: relative;
  width: 44px;
}

.cap-cart-link span,
.cap-mobile-actions__cart span {
  align-items: center;
  background: var(--cap-gold-soft);
  border: 2px solid var(--cap-surface);
  border-radius: 999px;
  color: var(--cap-primary);
  display: inline-flex;
  font-size: 0.68rem;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding-inline: 4px;
  position: absolute;
  right: -6px;
  top: -6px;
}

.cap-nav .cap-cart-link:hover {
  background: var(--cap-primary-hover);
  color: #f8f6f2;
}

.cap-mobile-actions {
  display: none;
  grid-column: 2;
  grid-row: 1;
}

body.capitaurum-commerce .cap-mobile-actions__cart {
  align-items: center;
  background: var(--cap-primary);
  border-radius: 8px;
  color: #f8f6f2;
  display: inline-flex;
  flex: 0 0 44px;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  position: relative;
  width: 44px;
}

body.capitaurum-commerce .cap-mobile-actions__cart:hover {
  background: var(--cap-primary-hover);
  color: #f8f6f2;
}

.cap-mobile-menu {
  justify-self: end;
  position: relative;
}

.cap-mobile-menu > summary {
  border: 1px solid var(--cap-border-strong);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  min-height: 44px;
  padding: 10px 14px;
}

.cap-mobile-menu nav {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  box-shadow: var(--cap-shadow);
  display: grid;
  min-width: min(300px, calc(100vw - 40px));
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
}

.cap-mobile-menu:not([open]) nav {
  display: none;
}

.cap-mobile-menu nav a {
  border-radius: 6px;
  color: var(--cap-text-secondary);
  font-weight: 750;
  min-height: 44px;
  padding: 11px 12px;
}

.cap-mobile-menu nav a:hover {
  background: var(--cap-background-subtle);
  color: var(--cap-text);
}

.cap-mobile-menu__label {
  border-top: 1px solid var(--cap-border);
  color: var(--cap-gold-deep);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  margin-top: 5px;
  padding: 12px 12px 4px;
  text-transform: uppercase;
}

.cap-mobile-menu nav .cap-mobile-menu__cart {
  align-items: center;
  background: var(--cap-primary);
  color: #f8f6f2;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 6px;
}

.cap-mobile-menu__cart span {
  align-items: center;
  background: #f8f6f2;
  border-radius: 999px;
  color: var(--cap-primary);
  display: inline-flex;
  font-size: 0.72rem;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding-inline: 6px;
}

.cap-main {
  min-height: 62vh;
}

.cap-page-head {
  background: var(--cap-background-subtle);
  border-bottom: 1px solid var(--cap-border);
  padding-block: clamp(40px, 6vw, 72px);
}

.cap-page-head__inner {
  max-width: 920px;
}

.cap-eyebrow {
  color: var(--cap-gold-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.cap-page-head h1 {
  font-family: var(--cap-serif);
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  font-weight: 600;
  line-height: 1;
  margin: 0;
  overflow-wrap: break-word;
}

.cap-page-head p:not(.cap-eyebrow) {
  color: var(--cap-text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 720px;
}

.cap-page-head--center .cap-page-head__inner {
  text-align: center;
}

.cap-page-head--center p {
  margin-inline: auto;
}

.cap-commerce-section {
  padding-block: clamp(40px, 6vw, 80px);
}

body.woocommerce-cart .cap-page-head,
body.woocommerce-checkout .cap-page-head,
body.woocommerce-account .cap-page-head {
  padding-block: clamp(28px, 4vw, 48px);
}

body.woocommerce-cart .cap-page-head h1,
body.woocommerce-checkout .cap-page-head h1,
body.woocommerce-account .cap-page-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.45rem);
}

body.woocommerce-cart .cap-page-head p:not(.cap-eyebrow),
body.woocommerce-checkout .cap-page-head p:not(.cap-eyebrow),
body.woocommerce-account .cap-page-head p:not(.cap-eyebrow) {
  margin-top: 12px;
}

body.woocommerce-cart .cap-commerce-section,
body.woocommerce-checkout .cap-commerce-section,
body.woocommerce-account .cap-commerce-section {
  padding-block: clamp(28px, 4vw, 56px);
}

body.woocommerce-cart.capitaurum-commerce .cap-page-head {
  background-color: var(--cap-background-subtle);
  background-image: linear-gradient(90deg, #f1ece3 0%, #f1ece3 48%, rgba(241, 236, 227, .92) 72%, rgba(241, 236, 227, .76) 100%), url('../images/cart/cart-banner.webp');
  background-position: center, right 48%;
  background-repeat: no-repeat;
  background-size: cover, 560px auto;
  padding-block: 24px;
}

body.woocommerce-cart.capitaurum-commerce .cap-page-head h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

body.woocommerce-cart.capitaurum-commerce .cap-page-head p:not(.cap-eyebrow) {
  margin-top: 8px;
}

body.woocommerce-cart.capitaurum-commerce .cap-commerce-section {
  padding-block: 28px 40px;
}

body.woocommerce-checkout.capitaurum-commerce .cap-page-head {
  padding-block: 24px;
}

body.woocommerce-checkout.capitaurum-commerce .cap-page-head__inner {
  max-width: var(--cap-container);
}

body.woocommerce-checkout.capitaurum-commerce .cap-page-head h1 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}

body.woocommerce-checkout.capitaurum-commerce .cap-page-head p:not(.cap-eyebrow) {
  margin-top: 8px;
}

body.woocommerce-checkout.capitaurum-commerce .cap-commerce-section {
  padding-block: 24px;
}

.cap-commerce-content {
  min-width: 0;
}

.cap-prose {
  color: var(--cap-text-secondary);
  line-height: 1.65;
  max-width: 860px;
}

.cap-prose :is(h1, h2, h3),
body.capitaurum-commerce .woocommerce-products-header__title,
body.capitaurum-commerce .woocommerce-loop-product__title,
body.capitaurum-commerce .product_title {
  font-family: var(--cap-serif);
  font-weight: 600;
}

body.capitaurum-commerce .cap-button,
body.capitaurum-commerce .woocommerce a.button,
body.capitaurum-commerce .woocommerce button.button,
body.capitaurum-commerce .woocommerce input.button,
body.capitaurum-commerce .wc-block-components-button:not(.is-link) {
  align-items: center;
  background: var(--cap-primary);
  border: 1px solid var(--cap-primary);
  border-radius: 8px;
  color: #f8f6f2;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.cap-button {
  margin-top: 24px;
}

body.capitaurum-commerce .cap-button:hover,
body.capitaurum-commerce .woocommerce a.button:hover,
body.capitaurum-commerce .woocommerce button.button:hover,
body.capitaurum-commerce .woocommerce input.button:hover,
body.capitaurum-commerce .wc-block-components-button:not(.is-link):hover {
  background: var(--cap-primary-hover);
  border-color: var(--cap-primary-hover);
  color: #f8f6f2;
}

body.capitaurum-commerce .woocommerce form .form-row input.input-text,
body.capitaurum-commerce .woocommerce form .form-row textarea,
body.capitaurum-commerce .woocommerce form .form-row select,
body.capitaurum-commerce .wc-block-components-text-input input,
body.capitaurum-commerce .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.capitaurum-commerce .wc-block-components-address-form select {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border-strong);
  border-radius: 8px;
  color: var(--cap-text);
  min-height: 48px;
  padding: 11px 13px;
}

body.capitaurum-commerce .woocommerce form .form-row label,
body.capitaurum-commerce .wc-block-components-form .wc-block-components-text-input label {
  color: var(--cap-text-secondary);
  font-weight: 700;
}

/* Same native input size as the address fields, with a proportionate desktop width. */
body.woocommerce-checkout.capitaurum-commerce .wc-block-components-address-form__capitaurum-billing_personnummer {
  max-width: 22rem;
}

/* The input's own label names it; retain the native section heading for AT. */
body.cap-checkout-compact-fields .wc-block-checkout__order-fields .wc-block-components-checkout-step__heading {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body.cap-checkout-compact-fields .wc-block-checkout__order-fields {
  margin-top: 0;
}

/* Restore space for the native floating label above the selected country. */
body.woocommerce-checkout.capitaurum-commerce .wc-block-components-country-input .wc-blocks-components-select__select {
  height: 48px;
  min-height: 48px;
  padding: 19px 36px 3px 13px;
}

body.woocommerce-checkout.capitaurum-commerce .cap-checkout-country-fixed {
  flex: 0 1 15rem;
  max-width: 100%;
}

body.woocommerce-checkout.capitaurum-commerce .cap-checkout-country-fixed .wc-blocks-components-select__select {
  appearance: none;
  cursor: default;
  padding-right: 13px;
  pointer-events: none;
}

body.woocommerce-checkout.capitaurum-commerce .cap-checkout-country-fixed .wc-blocks-components-select__expand {
  display: none;
}

.cap-checkout-questions {
  display: grid;
  gap: 14px;
  margin-block: 16px 20px;
}

.cap-checkout-question {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.cap-checkout-question legend {
  color: var(--cap-text-secondary);
  float: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  max-width: 65ch;
  padding: 0;
}

.cap-checkout-question__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cap-checkout-question__option {
  align-items: center;
  background: var(--cap-surface);
  border: 1px solid var(--cap-border-strong);
  border-radius: 6px;
  color: var(--cap-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  min-height: 44px;
  min-width: 68px;
  padding: 8px 10px;
}

.cap-checkout-question__option:hover {
  border-color: var(--cap-primary);
}

.cap-checkout-question__option:has(input:checked) {
  background: var(--cap-primary-soft);
  border-color: var(--cap-primary);
}

.cap-checkout-question__option:has(input:focus-visible) {
  outline: 2px solid var(--cap-primary);
  outline-offset: 3px;
}

.cap-checkout-question__option:has(input:disabled) {
  cursor: default;
  opacity: .65;
}

body.capitaurum-commerce .cap-checkout-question__option input[type="radio"] {
  accent-color: var(--cap-primary);
  appearance: auto;
  block-size: 18px;
  flex: 0 0 18px;
  inline-size: 18px;
  margin: 0;
  min-height: 0;
  padding: 0;
}

.cap-checkout-question[aria-invalid="true"] .cap-checkout-question__option {
  border-color: var(--cap-danger);
}

.cap-checkout-company {
  border-block: 1px solid var(--cap-border);
  margin-block: 24px;
}

.cap-checkout-company__toggle {
  align-items: center;
  color: var(--cap-primary);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 48px;
  padding-block: 12px;
}

.cap-checkout-company__toggle::-webkit-details-marker {
  display: none;
}

.cap-checkout-company__toggle::after {
  content: "+";
  flex: 0 0 20px;
  font-size: 22px;
  line-height: 1;
  text-align: center;
}

.cap-checkout-company[open] > .cap-checkout-company__toggle::after {
  content: "−";
}

.cap-checkout-company__toggle:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--cap-primary);
  outline-offset: 3px;
}

.cap-checkout-company__fields {
  display: grid;
  gap: 16px;
  padding-bottom: 20px;
}

.cap-checkout-company__fields .wc-block-components-text-input {
  margin-top: 0;
}

.cap-checkout-company__fields input {
  min-height: 48px;
}

body.capitaurum-commerce .cap-checkout-company__fields .wc-block-components-text-input.is-active input {
  min-height: 60px;
  padding: 28px 13px 8px;
}

/* These full questions must stay readable, rather than floating/ellipsized. */
body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-components-select-input-capitaurum-billing_fraga, .wc-block-components-select-input-capitaurum-billing_hemvist) .wc-blocks-components-select__container {
  background: transparent;
  line-height: 1.5;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-components-select-input-capitaurum-billing_fraga, .wc-block-components-select-input-capitaurum-billing_hemvist) .wc-blocks-components-select__label {
  color: var(--cap-text-secondary);
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  max-width: none;
  overflow: visible;
  overflow-wrap: break-word;
  position: static;
  text-overflow: clip;
  white-space: normal;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-components-select-input-capitaurum-billing_fraga, .wc-block-components-select-input-capitaurum-billing_hemvist) .wc-blocks-components-select__select {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border-strong);
  border-radius: 8px;
  color: var(--cap-text);
  height: 48px;
  min-height: 48px;
  padding: 10px 38px 10px 12px;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-components-select-input-capitaurum-billing_fraga, .wc-block-components-select-input-capitaurum-billing_hemvist) .wc-blocks-components-select__select[aria-invalid="true"] {
  border-color: var(--cap-danger);
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-components-select-input-capitaurum-billing_fraga, .wc-block-components-select-input-capitaurum-billing_hemvist) .wc-blocks-components-select__expand {
  bottom: 12px;
  top: auto;
  transform: none;
}

body.capitaurum-commerce .woocommerce table.shop_table,
body.capitaurum-commerce .woocommerce-cart-form,
body.capitaurum-commerce .cart_totals,
body.capitaurum-commerce .woocommerce-checkout-review-order,
body.capitaurum-commerce .woocommerce-form-login,
body.capitaurum-commerce .woocommerce-MyAccount-content,
body.capitaurum-commerce .wc-block-cart,
body.capitaurum-commerce .wc-block-checkout {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 12px;
  box-shadow: var(--cap-shadow);
}

body.capitaurum-commerce .woocommerce table.shop_table {
  border-collapse: collapse;
  overflow: hidden;
}

body.capitaurum-commerce .woocommerce table.shop_table th,
body.capitaurum-commerce .woocommerce table.shop_table td {
  border-color: var(--cap-border);
  padding: 16px;
}

body.capitaurum-commerce .woocommerce-cart-form,
body.capitaurum-commerce .cart_totals,
body.capitaurum-commerce .woocommerce-checkout-review-order,
body.capitaurum-commerce .woocommerce-form-login,
body.capitaurum-commerce .woocommerce-MyAccount-content {
  padding: clamp(18px, 3vw, 28px);
}

body.capitaurum-commerce .woocommerce-cart-form table.shop_table {
  border: 0;
  box-shadow: none;
}

body.capitaurum-commerce .woocommerce .quantity .qty {
  border: 1px solid var(--cap-border-strong);
  border-radius: 8px;
  min-height: 44px;
  width: 74px;
}

body.capitaurum-commerce .woocommerce-info,
body.capitaurum-commerce .woocommerce-message,
body.capitaurum-commerce .woocommerce-error,
body.capitaurum-commerce .wc-block-components-notice-banner {
  background: var(--cap-primary-soft);
  border: 1px solid rgba(0, 47, 95, 0.2);
  border-radius: 8px;
  color: var(--cap-text);
  margin-bottom: 24px;
  padding: 16px 18px;
}

body.capitaurum-commerce .woocommerce-info,
body.capitaurum-commerce .woocommerce-message {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

body.capitaurum-commerce .woocommerce-info .button,
body.capitaurum-commerce .woocommerce-message .button,
body.capitaurum-commerce .woocommerce-error .button {
  float: none;
  margin: 0 0 0 auto;
}

body.capitaurum-commerce .woocommerce-error {
  display: grid;
  gap: 8px;
}

body.capitaurum-commerce .wc-block-components-notice-banner {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
}

body.capitaurum-commerce .wc-block-components-notice-banner__content {
  min-width: 0;
}

body.capitaurum-commerce .woocommerce-error {
  background: #f8e6e4;
  border-color: rgba(143, 45, 45, 0.24);
}

body.capitaurum-commerce .woocommerce-info::before,
body.capitaurum-commerce .woocommerce-message::before {
  color: var(--cap-primary);
}

body.capitaurum-commerce .woocommerce .col2-set,
body.capitaurum-commerce .woocommerce-page .col2-set {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

body.capitaurum-commerce .woocommerce .col2-set .col-1,
body.capitaurum-commerce .woocommerce .col2-set .col-2,
body.capitaurum-commerce .woocommerce-page .col2-set .col-1,
body.capitaurum-commerce .woocommerce-page .col2-set .col-2 {
  float: none;
  width: 100%;
}

body.capitaurum-commerce .woocommerce-checkout #payment {
  background: var(--cap-background-subtle);
  border: 1px solid var(--cap-border);
  border-radius: 8px;
}

body.capitaurum-commerce .woocommerce-checkout #payment div.payment_box {
  background: var(--cap-surface-alt);
  color: var(--cap-text-secondary);
}

body.capitaurum-commerce .woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: var(--cap-surface-alt);
}

body.capitaurum-commerce .woocommerce-MyAccount-navigation ul {
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 8px;
}

body.capitaurum-commerce .woocommerce-MyAccount-navigation a {
  border-radius: 6px;
  color: var(--cap-text-secondary);
  display: block;
  font-weight: 700;
  padding: 11px 12px;
}

body.capitaurum-commerce .woocommerce-MyAccount-navigation .is-active a,
body.capitaurum-commerce .woocommerce-MyAccount-navigation a:hover {
  background: var(--cap-primary-soft);
  color: var(--cap-primary);
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-sidebar-layout,
body.woocommerce-checkout.capitaurum-commerce .wc-block-components-sidebar-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-cart,
body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-main,
body.woocommerce-checkout.capitaurum-commerce .wc-block-components-main,
body.woocommerce-cart.capitaurum-commerce .wc-block-components-sidebar,
body.woocommerce-checkout.capitaurum-commerce .wc-block-components-sidebar {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  width: 100%;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-main,
body.woocommerce-checkout.capitaurum-commerce .wc-block-components-main {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 12px;
  box-shadow: var(--cap-shadow);
  padding: clamp(16px, 2.2vw, 24px);
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-sidebar,
body.woocommerce-checkout.capitaurum-commerce .wc-block-components-sidebar {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 12px;
  box-shadow: var(--cap-shadow);
  padding: 20px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-components-sidebar {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Native checkout groups use the approved light form treatment. Woo retains
   every control, validation message, calculated amount and selected rate. */
body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__main {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form > :is(.wc-block-components-checkout-step, .cap-checkout-company) {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  margin: 0 0 12px;
  min-width: 0;
  padding: clamp(16px, 1.5vw, 18px);
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-components-checkout-step__content {
  padding: 0;
}

body.woocommerce-checkout .wc-block-checkout__form :is(input, select, textarea, button, summary) {
  scroll-margin-top: var(--cap-checkout-sticky-top, 9rem);
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-components-checkout-step__heading {
  align-items: start;
  gap: 12px;
  margin: 0 0 12px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-components-checkout-step__title {
  color: var(--cap-primary);
  font-family: var(--cap-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__contact-fields, .wc-block-checkout__billing-fields, .wc-block-checkout__shipping-fields, .wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method, .wc-block-checkout__payment-method) .wc-block-components-checkout-step__title {
  align-items: center;
  display: flex;
  gap: 12px;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__contact-fields, .wc-block-checkout__billing-fields, .wc-block-checkout__shipping-fields, .wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method, .wc-block-checkout__payment-method) .wc-block-components-checkout-step__title::before {
  background: var(--cap-step-icon) center / contain no-repeat;
  content: '';
  flex: 0 0 24px;
  height: 24px;
  width: 24px;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields { --cap-step-icon: url('../icons/checkout/contact.svg'); }
body.woocommerce-checkout :is(.wc-block-checkout__billing-fields, .wc-block-checkout__shipping-fields) { --cap-step-icon: url('../icons/checkout/address.svg'); }
body.woocommerce-checkout :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) { --cap-step-icon: url('../icons/checkout/truck.svg'); }
body.woocommerce-checkout .wc-block-checkout__payment-method { --cap-step-icon: url('../icons/checkout/payment.svg'); }

/* Adjacent native customer/address/identity/company parts form one box. Their
   independent fieldsets, values and errors remain owned by WooCommerce. */
body.cap-checkout-compact-fields.capitaurum-commerce .wc-block-checkout__form > :is(.wc-block-checkout__contact-fields, .wc-block-checkout__shipping-fields, .wc-block-checkout__billing-fields, .wc-block-checkout__order-fields):has(+ :is(.wc-block-checkout__shipping-fields, .wc-block-checkout__billing-fields, .wc-block-checkout__order-fields, .cap-checkout-company)) {
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
  padding-bottom: 12px;
}

body.cap-checkout-compact-fields.capitaurum-commerce .wc-block-checkout__form > :is(.wc-block-checkout__contact-fields, .wc-block-checkout__shipping-fields, .wc-block-checkout__billing-fields, .wc-block-checkout__order-fields) + :is(.wc-block-checkout__shipping-fields, .wc-block-checkout__billing-fields, .wc-block-checkout__order-fields, .cap-checkout-company) {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-top: 0;
}

body.cap-checkout-compact-fields.capitaurum-commerce :is(.wc-block-checkout__shipping-fields, .wc-block-checkout__billing-fields) .wc-block-components-checkout-step__heading {
  border-top: 1px solid var(--cap-border);
  padding-top: 12px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form > .cap-checkout-questions {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--cap-border);
  border-radius: 0;
  margin: 16px 0 20px;
  padding: 16px 0 0;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input {
  margin-top: 12px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input input {
  height: 48px;
  min-height: 48px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input.is-active input {
  height: 48px;
  min-height: 48px;
  padding: 20px 13px 4px;
}

/* The approved customer view is rendered once through native Woo controls.
   Email/account stay in the native left contact column, phone in the right. */
body.woocommerce-checkout .wc-block-checkout__contact-fields:has(.cap-checkout-customer-phone) > .wc-block-components-checkout-step__content {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

body.woocommerce-checkout .wc-block-checkout__contact-fields:has(.cap-checkout-customer-phone) > .wc-block-components-checkout-step__content > :is(.wc-block-components-notices, .wc-block-components-notices__snackbar) { grid-column: 1 / -1; }
body.woocommerce-checkout .wc-block-checkout__contact-fields:has(.cap-checkout-customer-phone) > .wc-block-components-checkout-step__content > :is(.wc-block-components-notices, .wc-block-components-notices__snackbar):empty { display: none; }

body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-phone .wc-block-components-text-input {
  margin-top: 0;
}

body.cap-checkout-native-customer-layout.capitaurum-commerce .cap-checkout-country-fixed .wc-blocks-components-select__label {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body.cap-checkout-native-customer-layout.capitaurum-commerce .cap-checkout-country-fixed :is(.wc-blocks-components-select__container, .wc-blocks-components-select__select) {
  background: transparent;
  border: 0;
  box-shadow: none;
  height: 28px;
  min-height: 28px;
  padding: 0;
}

body.cap-checkout-native-customer-layout.capitaurum-commerce .cap-checkout-country-fixed .wc-blocks-components-select__select { color: var(--cap-text-secondary); font-size: .875rem; }

body.cap-checkout-native-customer-layout.capitaurum-commerce .wc-block-checkout__billing-fields:has(.wc-block-components-address-address-wrapper.is-editing) > .wc-block-components-checkout-step__heading-container {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 699px) {
  body.cap-checkout-native-customer-layout.capitaurum-commerce .wc-block-checkout__billing-fields:has(.wc-block-components-address-address-wrapper.is-editing) .cap-checkout-country-fixed {
    flex: 0 0 auto;
    margin-left: auto;
    width: auto;
  }

  body.cap-checkout-native-customer-layout.capitaurum-commerce .cap-checkout-country-fixed :is(.wc-blocks-components-select__container, .wc-blocks-components-select__select) {
    min-width: 0;
    text-align: right;
    width: auto;
  }
}

@media (min-width: 700px) {
  body.woocommerce-checkout .wc-block-checkout__contact-fields:has(.cap-checkout-customer-phone) > .wc-block-components-checkout-step__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Known native SE edit form only. Core fieldsets/controls stay in DOM order;
     one grid surface joins contact, identity and address without moving inputs. */
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid {
    display: grid;
    gap: 12px;
    /* Six equal field tracks; 6px edges plus the 12px gaps form 18px gutters. */
    grid-template-columns: 6px repeat(6, minmax(0, 1fr)) 6px;
    isolation: isolate;
    position: relative;
  }

  .cap-checkout-customer-grid::before {
    background: var(--cap-surface);
    border: 1px solid var(--cap-border);
    border-radius: 8px;
    content: '';
    grid-column: 1 / -1;
    grid-row: 1 / 7;
    z-index: -1;
  }

  .cap-checkout-customer-grid > * { grid-column: 1 / -1; min-width: 0; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid > .wc-block-checkout__contact-fields { background: transparent; border: 0; grid-row: 1; margin: 0; padding: 18px 18px 0; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid > :is(.wc-block-checkout__billing-fields, .wc-block-checkout__order-fields),
  .cap-checkout-customer-grid :is(.wc-block-checkout__billing-fields, .wc-block-checkout__order-fields) > .wc-block-components-checkout-step__content,
  .cap-checkout-customer-grid :is(.wc-block-checkout__billing-fields, .wc-block-checkout__order-fields) .wc-block-components-address-form,
  .cap-checkout-customer-grid .wc-block-checkout__billing-fields :is(.wc-block-components-address-address-wrapper.is-editing, .wc-block-components-address-address-wrapper.is-editing > .wc-block-components-address-form-wrapper) { display: contents; }

  .cap-checkout-customer-grid .wc-block-checkout__billing-fields > :is(.wc-block-components-checkout-step__heading, .wc-block-components-checkout-step__heading-container) {
    clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px;
  }

  .cap-checkout-customer-grid :is(.wc-block-checkout__billing-fields, .wc-block-checkout__order-fields) :is(.wc-block-components-notices, .wc-block-components-notices__snackbar) { grid-column: 1 / -1; }
  .cap-checkout-customer-grid :is(.wc-block-checkout__billing-fields, .wc-block-checkout__order-fields) :is(.wc-block-components-notices, .wc-block-components-notices__snackbar):empty { display: none; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid .wc-block-components-text-input { margin-top: 0; min-width: 0; width: auto; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid .wc-block-components-address-form__capitaurum-billing_personnummer { grid-column: 2 / 4; grid-row: 2; margin-inline: 0; max-width: none; }
  body.cap-checkout-compact-fields.capitaurum-commerce .cap-checkout-customer-grid .wc-block-components-address-form__first_name { grid-column: 4 / 6; grid-row: 2; margin-inline: 0; width: auto; }
  body.cap-checkout-compact-fields.capitaurum-commerce .cap-checkout-customer-grid .wc-block-components-address-form__last_name { grid-column: 6 / 8; grid-row: 2; margin-inline: 0; width: auto; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid .cap-checkout-country-fixed { align-self: start; grid-column: 6 / 8; grid-row: 1; justify-self: end; margin: 18px 0 0; max-width: 100%; width: auto; }
  .cap-checkout-customer-grid .cap-checkout-country-fixed .wc-blocks-components-select__select { text-align: right; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid .wc-block-components-address-form__address_1 { grid-column: 2 / 8; grid-row: 3; margin-inline: 0; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid :is(.wc-block-components-address-form__address_2, .wc-block-components-address-form__address_2-toggle) { grid-column: 2 / 8; grid-row: 4; margin-inline: 0; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid .wc-block-components-address-form__city { grid-column: 2 / 5; grid-row: 5; margin-inline: 0; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid .wc-block-components-address-form__postcode { grid-column: 5 / 8; grid-row: 5; margin-inline: 0; }
  body.woocommerce-checkout.capitaurum-commerce.cap-checkout-native-customer-layout .cap-checkout-customer-grid > .cap-checkout-company { background: transparent; border: 0; grid-row: 6; margin: 0; padding: 0 18px 18px; }

}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__order-fields .wc-block-components-text-input:first-child {
  margin-top: 0;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__contact-fields .wc-block-components-text-input:first-of-type,
body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .cap-checkout-company__fields .wc-block-components-text-input {
  margin-top: 0;
}

body.woocommerce-checkout .cap-checkout-company__fields {
  gap: 12px;
  padding-bottom: 12px;
}

body.woocommerce-checkout .cap-checkout-company__toggle {
  align-items: center;
  display: flex;
  gap: 12px;
}

body.woocommerce-checkout .cap-checkout-company__toggle::before {
  background: url('../icons/checkout/company.svg') center / contain no-repeat;
  content: '';
  flex: 0 0 22px;
  height: 22px;
}

body.woocommerce-checkout .cap-checkout-company__toggle::after {
  margin-left: auto;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form > .cap-checkout-company {
  padding-block: 4px 8px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form > .cap-checkout-company:not([open]) .cap-checkout-company__toggle {
  min-height: 44px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form > .wc-block-checkout__order-notes {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-block: 20px;
  padding: 0;
}

body.woocommerce-checkout :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

body.woocommerce-checkout :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__option {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border-strong);
  border-radius: 6px;
  min-height: 72px;
  padding: 16px 16px 16px 48px;
}

@media (min-width: 700px) {
  body.woocommerce-checkout .cap-checkout-company__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-checkout :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-checkout :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__label-group {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  body.woocommerce-checkout :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__secondary-label {
    text-align: left;
  }

  body.cap-checkout-compact-fields.capitaurum-commerce .wc-block-checkout__form:not(.cap-checkout-customer-grid) :is(.wc-block-checkout__billing-fields, .wc-block-checkout__shipping-fields) .wc-block-components-address-form :is(.wc-block-components-address-form__first_name, .wc-block-components-address-form__last_name) {
    flex: 0 0 calc(50% - 6px);
    width: calc(50% - 6px);
  }

  body.cap-checkout-compact-fields.capitaurum-commerce .wc-block-checkout__form:not(.cap-checkout-customer-grid) :is(.wc-block-checkout__billing-fields, .wc-block-checkout__shipping-fields) .wc-block-components-address-form:has(> .cap-checkout-country-fixed:not(.cap-checkout-country-inline-source)) > .cap-checkout-country-fixed {
    flex: 0 0 28%;
    width: 28%;
  }

  body.cap-checkout-compact-fields.capitaurum-commerce .wc-block-checkout__form:not(.cap-checkout-customer-grid) :is(.wc-block-checkout__billing-fields, .wc-block-checkout__shipping-fields) .wc-block-components-address-form:has(> .cap-checkout-country-fixed:not(.cap-checkout-country-inline-source)) :is(.wc-block-components-address-form__first_name, .wc-block-components-address-form__last_name) {
    flex-basis: calc(36% - 12px);
    margin-top: 0;
    width: calc(36% - 12px);
  }
}

body.woocommerce-checkout :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__option:has(input:checked) {
  background: oklch(97% .013 252);
  border-color: var(--cap-primary);
  box-shadow: inset 0 0 0 1px var(--cap-primary);
}

body.woocommerce-checkout :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__option:has(input:focus-visible) {
  outline: 3px solid var(--cap-gold);
  outline-offset: 3px;
}

body.woocommerce-checkout [data-cap-shipping-kind] .wc-block-components-radio-control__label {
  align-items: center;
  display: flex;
  gap: 10px;
}

body.woocommerce-checkout :is([data-cap-shipping-kind='pickup'], [data-cap-shipping-kind='truck']) .wc-block-components-radio-control__label::before {
  background: url('../icons/checkout/truck.svg') center / contain no-repeat;
  content: '';
  flex: 0 0 24px;
  height: 24px;
}

body.woocommerce-checkout [data-cap-shipping-kind='pickup'] .wc-block-components-radio-control__label::before {
  background-image: url('../icons/checkout/pickup.svg');
}

.cap-checkout-summary-link {
  font-size: .9375rem;
  padding: 0 0 10px;
  text-align: right;
}

.cap-checkout-summary-link a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  text-underline-offset: 3px;
}

body.woocommerce-checkout.capitaurum-commerce .wp-block-woocommerce-checkout-order-summary-block {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  padding: 20px;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
  padding: 0 0 16px;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
  font-family: var(--cap-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item {
  background: var(--cap-background-subtle);
  border-radius: 4px;
  margin-top: 8px;
  padding: 16px 12px;
}

body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  min-height: 52px;
  width: 100%;
}

.cap-checkout-support {
  margin-top: 20px;
  padding: 0 4px;
}

.cap-checkout-support h2 {
  font-family: var(--cap-serif);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 14px;
}

.cap-checkout-support ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cap-checkout-support li {
  align-items: start;
  display: flex;
  gap: 12px;
}

.cap-checkout-support li :is(strong, span:not(.cap-checkout-support__icon)) {
  display: block;
}

.cap-checkout-support li strong {
  font-size: 1rem;
}

.cap-checkout-support li :is(span:not(.cap-checkout-support__icon), a) {
  color: var(--cap-text-secondary);
  font-size: .9375rem;
}

.cap-checkout-support__icon {
  background: var(--cap-support-icon) center / contain no-repeat;
  flex: 0 0 24px;
  height: 24px;
}

.cap-checkout-support__icon--company { --cap-support-icon: url('../icons/checkout/company.svg'); }
.cap-checkout-support__icon--truck { --cap-support-icon: url('../icons/checkout/truck.svg'); }
.cap-checkout-support__icon--payment { --cap-support-icon: url('../icons/checkout/payment.svg'); }
.cap-checkout-support__icon--pickup { --cap-support-icon: url('../icons/checkout/pickup.svg'); }
.cap-checkout-support__icon--headset { --cap-support-icon: url('../icons/checkout/headset.svg'); }
.cap-checkout-support__icon--shield { --cap-support-icon: url('../icons/checkout/shield.svg'); }

.cap-checkout-support__reviews {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.cap-checkout-support__review {
  align-items: center;
  border-top: 1px solid var(--cap-border);
  display: grid;
  gap: 12px;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px 0 2px;
  text-decoration: none;
}

.cap-checkout-support__reviews img {
  height: auto;
  max-height: 31px;
  max-width: 104px;
  object-fit: contain;
}

.cap-checkout-support__review:first-child img {
  max-width: 80px;
}

.cap-checkout-support__review-summary {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 7px;
  justify-content: start;
  line-height: 1.4;
}

.cap-checkout-support__stars {
  color: #d9cdb5;
  display: inline-block;
  font-size: 1rem;
  letter-spacing: .04em;
  line-height: 1.4;
  position: relative;
  white-space: nowrap;
}

.cap-checkout-support__stars::before { content: '★★★★★'; }
.cap-checkout-support__stars > span {
  color: #a76a18;
  inset: 0 auto 0 0;
  overflow: hidden;
  position: absolute;
  width: var(--cap-review-fill, 0%);
}

.cap-checkout-support__review-score { font-size: .8125rem; white-space: nowrap; }
.cap-checkout-support__review-summary small { color: var(--cap-text-secondary); font-size: .8125rem; grid-column: 1 / -1; }
.cap-checkout-support__review-arrow { font-size: 1.5rem; }
.cap-checkout-support li span.cap-checkout-support__help-links { align-items: center; column-gap: 10px; display: flex; flex-wrap: wrap; row-gap: 0; }
.cap-checkout-support li span.cap-checkout-support__help-links > a { align-items: center; color: var(--cap-primary); display: inline-flex; justify-self: start; min-height: 28px; overflow-wrap: anywhere; text-decoration-color: var(--cap-border-strong); text-decoration-line: underline; text-underline-offset: 3px; }

@media (max-width: 389px) {
  .cap-checkout-support li span.cap-checkout-support__help-links { display: grid; gap: 0; }
  .cap-checkout-support li span.cap-checkout-support__help-separator { display: none; }
}

body.woocommerce-cart .wc-block-components-product-metadata__description,
body.woocommerce-checkout .wc-block-components-product-metadata__description {
  display: none;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-cart .wc-block-components-quantity-selector__button,
body.woocommerce-cart .wc-block-components-quantity-selector__input {
  min-height: 44px;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button {
  min-width: 44px;
}

/* Two 44px targets, a three-digit input, and the frame's borders. */
body.woocommerce-cart.capitaurum-commerce .wc-block-components-quantity-selector {
  border-color: var(--cap-border-strong);
  border-radius: 5px;
  flex-shrink: 0;
  width: calc(88px + 3rem + 2px);
}

/* Keep Woo's cart rows and controls intact, with the compact shop treatment. */
body.woocommerce-cart.capitaurum-commerce :is(.wc-block-components-main, .wc-block-components-sidebar) {
  border-radius: 8px;
  box-shadow: none;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-main {
  padding: 20px 24px 8px;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-cart {
  font-size: 1rem;
  margin-bottom: 0;
}

body.woocommerce-cart.capitaurum-commerce table.wc-block-cart-items {
  margin: 0;
}

body.woocommerce-cart.capitaurum-commerce table.wc-block-cart-items th {
  color: var(--cap-text-secondary);
  font-size: .8125rem;
  font-weight: 600;
  padding-bottom: 14px;
  text-transform: none;
}

body.woocommerce-cart.capitaurum-commerce table.wc-block-cart-items .wc-block-cart-items__row td {
  padding-block: 22px;
  vertical-align: top;
}

body.woocommerce-cart.capitaurum-commerce table.wc-block-cart-items .wc-block-cart-item__image {
  padding-right: 18px;
  width: 106px;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-cart-item__image img {
  background: var(--cap-surface);
  border-color: var(--cap-border);
  border-radius: 5px;
  height: 88px;
  object-fit: contain;
  width: 88px;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-cart-item__product .wc-block-components-product-name {
  color: var(--cap-primary);
  font-family: var(--cap-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-cart-item__product .wc-block-components-product-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-cart-item__prices {
  color: var(--cap-text-secondary);
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-cart-item__total {
  color: var(--cap-primary);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-cart-item__quantity {
  padding-top: 12px;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-product-metadata {
  color: var(--cap-text-secondary);
  font-size: .875rem;
  line-height: 1.45;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-cart__totals-title {
  color: var(--cap-primary);
  font-family: var(--cap-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0 0 16px;
  text-transform: none;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-totals-item {
  font-size: .9375rem;
  line-height: 1.45;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-totals-item__value {
  font-variant-numeric: tabular-nums;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-totals-coupon__button {
  color: var(--cap-primary);
  font-size: .9375rem;
  min-height: 44px;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-totals-footer-item {
  align-items: start;
  background: var(--cap-background-subtle);
  border-radius: 5px;
  gap: 8px 14px;
  margin-top: 12px;
  padding: 16px 14px;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  color: var(--cap-primary);
  font-family: var(--cap-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  min-width: 0;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--cap-primary);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-cart__submit-button {
  border-radius: 5px;
  font-size: 1rem;
  min-height: 48px;
}

body.woocommerce-cart .wc-block-cart__empty-cart__title {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  font-family: var(--cap-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin: 0 0 28px;
  padding: 32px 24px;
}

body.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  content: none;
}

body.woocommerce-cart .cap-cart-empty {
  align-items: center;
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 32px;
  padding: 32px;
}

body.woocommerce-cart .cap-cart-empty__icon {
  align-items: center;
  background: var(--cap-background-subtle);
  border-radius: 50%;
  color: var(--cap-gold-deep);
  display: flex;
  height: 64px;
  justify-content: center;
  width: 64px;
}

body.woocommerce-cart .cap-cart-empty__icon svg { height: 30px; width: 30px; }
body.woocommerce-cart .cap-cart-empty__copy { align-items: center; column-gap: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
body.woocommerce-cart .cap-cart-empty__copy h2 { color: var(--cap-primary); font-family: var(--cap-serif); font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 600; line-height: 1.2; margin: 0; }
body.woocommerce-cart .cap-cart-empty__copy p { color: var(--cap-text-secondary); grid-column: 1; line-height: 1.5; margin: 8px 0 0; max-width: 55ch; }
body.woocommerce-cart .cap-cart-empty .cap-button { border-radius: 5px; gap: 12px; grid-column: 2; grid-row: 1 / span 2; margin: 0; white-space: nowrap; }

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-separator {
  display: none;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) {
  color: var(--cap-primary);
  font-family: var(--cap-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 28px 0 16px;
  text-align: left;
}

/* Cart recommendations use both the legacy product grid and newer product blocks. */
body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__products, .wc-block-product-template) {
  gap: 16px;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(var(--cap-cart-columns, 4), minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-grid.has-1-columns { --cap-cart-columns: 1; }
body.woocommerce-cart.capitaurum-commerce .wc-block-grid.has-2-columns { --cap-cart-columns: 2; }
body.woocommerce-cart.capitaurum-commerce .wc-block-grid.has-3-columns { --cap-cart-columns: 3; }
body.woocommerce-cart.capitaurum-commerce .wc-block-grid.has-4-columns { --cap-cart-columns: 4; }
body.woocommerce-cart.capitaurum-commerce .wc-block-grid.has-5-columns { --cap-cart-columns: 5; }
body.woocommerce-cart.capitaurum-commerce .wc-block-grid.has-6-columns { --cap-cart-columns: 6; }

body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product, .wc-block-product) {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  text-align: left;
}

body.woocommerce-cart.capitaurum-commerce .wc-block-grid__product {
  font-size: 1rem;
  max-width: none;
}

body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-image, .wp-block-woocommerce-product-image) {
  display: block;
  margin: 0;
  width: 100%;
}

body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-image, .wp-block-woocommerce-product-image) img {
  height: 144px;
  max-height: 144px;
  object-fit: contain;
  width: 100%;
}

body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-title, .wc-block-product .wp-block-post-title) {
  color: var(--cap-primary);
  font-family: var(--cap-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-block: 12px 8px;
  overflow-wrap: anywhere;
}

body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-price, .wp-block-woocommerce-product-price) {
  color: var(--cap-primary);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-bottom: 12px;
  margin-inline: 0;
  text-align: left;
  width: 100%;
}

body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-add-to-cart, .wc-block-components-product-button) {
  align-self: stretch;
  margin-top: auto;
  width: 100%;
}

body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-add-to-cart .wp-block-button__link, .wc-block-components-product-button__button) {
  align-items: center;
  background: var(--cap-primary);
  border: 1px solid var(--cap-primary);
  border-radius: 5px;
  color: #f8f6f2;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  justify-content: center;
  line-height: 1.35;
  min-height: 44px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-add-to-cart .wp-block-button__link, .wc-block-components-product-button__button):hover {
  background: var(--cap-primary-hover);
  border-color: var(--cap-primary-hover);
  color: #f8f6f2;
}

body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-add-to-cart .wp-block-button__link, .wc-block-components-product-button__button):focus-visible {
  box-shadow: var(--cap-focus);
  outline: 2px solid var(--cap-gold-deep);
  outline-offset: 3px;
}

body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-add-to-cart .wp-block-button__link, .wc-block-components-product-button__button):is(:disabled, [aria-disabled="true"], .disabled) {
  background: var(--cap-background-subtle);
  border-color: var(--cap-border-strong);
  color: var(--cap-text-secondary);
  cursor: not-allowed;
  opacity: 1;
}

body.woocommerce-cart .cap-cart-continue {
  align-items: center;
  border: 1px solid var(--cap-border-strong);
  border-radius: 5px;
  color: var(--cap-primary);
  display: inline-flex;
  font-size: .9375rem;
  font-weight: 600;
  gap: 10px;
  margin-block: 16px 22px;
  min-height: 44px;
  padding: 8px 14px;
  text-decoration: none;
}

body.woocommerce-cart .cap-cart-continue:hover { background: var(--cap-background-subtle); border-color: var(--cap-primary); }

body.woocommerce-cart .cap-cart-support {
  border-top: 1px solid var(--cap-border);
  display: grid;
  gap: 12px 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 20px 16px;
}

body.woocommerce-cart .cap-cart-support > a {
  align-items: start;
  color: var(--cap-text-secondary);
  display: flex;
  font-size: .8125rem;
  gap: 12px;
  line-height: 1.4;
  min-height: 44px;
  text-decoration: none;
}

body.woocommerce-cart .cap-cart-support svg { color: var(--cap-gold-deep); flex: 0 0 24px; height: 24px; margin-top: 3px; width: 24px; }
body.woocommerce-cart .cap-cart-support strong { color: var(--cap-primary); display: block; font-size: .9375rem; font-weight: 600; margin-bottom: 3px; }
body.woocommerce-cart .cap-cart-support a > span > span { display: block; }
body.woocommerce-cart .cap-cart-support a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

body.woocommerce-cart .cap-cart-discover { margin-top: 36px; }

body.woocommerce-cart .cap-cart-discover__heading {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
  margin-bottom: 16px;
}

body.woocommerce-cart .cap-cart-discover__heading h2 { color: var(--cap-primary); font-family: var(--cap-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.3; margin: 0; }
body.woocommerce-cart .cap-cart-discover__heading a { align-items: center; color: var(--cap-primary); display: inline-flex; font-size: .9375rem; gap: 10px; min-height: 44px; text-underline-offset: 3px; }
body.woocommerce-cart .cap-cart-categories { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }

body.woocommerce-cart .cap-cart-category {
  align-items: center;
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 6px;
  color: var(--cap-text-secondary);
  display: grid;
  gap: 8px 12px;
  grid-template-columns: minmax(0, 1fr) 80px;
  min-width: 0;
  padding: 16px;
  position: relative;
  text-decoration: none;
}

body.woocommerce-cart .cap-cart-category strong { color: var(--cap-primary); display: block; font-family: var(--cap-serif); font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
body.woocommerce-cart .cap-cart-category > span > span { display: block; font-size: .8125rem; line-height: 1.4; max-width: 18ch; }
body.woocommerce-cart .cap-cart-category img { height: 76px; object-fit: contain; width: 80px; }
body.woocommerce-cart .cap-cart-category__arrow { color: var(--cap-primary); font-size: 1.125rem; grid-column: 1 / -1; line-height: 1; }
body.woocommerce-cart .cap-cart-category:hover { border-color: var(--cap-border-strong); background: var(--cap-background-subtle); }
body.woocommerce-cart .cap-cart-category:hover strong { text-decoration: underline; text-underline-offset: 3px; }
body.woocommerce-cart :is(.cap-cart-continue, .cap-cart-support a, .cap-cart-category, .cap-cart-discover__heading a):focus-visible { outline: 2px solid var(--cap-primary); outline-offset: 3px; }

@media (max-width: 959px) {
  body.woocommerce-cart.capitaurum-commerce .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-cart.capitaurum-commerce .wc-block-grid.has-1-columns .wc-block-grid__products {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__products, .wc-block-product-template) {
    gap: 16px;
  }

  body.woocommerce-cart .cap-cart-empty__copy { display: block; }
  body.woocommerce-cart .cap-cart-empty .cap-button { margin-top: 16px; }
  body.woocommerce-cart .cap-cart-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  body.woocommerce-cart.capitaurum-commerce .cap-page-head { background-image: none; }
  body.woocommerce-cart.capitaurum-commerce .wc-block-cart-item__quantity { flex-wrap: wrap; width: 100%; }
  body.woocommerce-cart.capitaurum-commerce .wc-block-components-main { padding: 16px 16px 0; }
  body.woocommerce-cart.capitaurum-commerce .wc-block-components-sidebar { padding: 18px; }
  body.woocommerce-cart .cap-cart-empty { align-items: start; gap: 16px; padding: 24px 20px; }
  body.woocommerce-cart .cap-cart-empty__icon { height: 44px; width: 44px; }
  body.woocommerce-cart .cap-cart-empty__icon svg { height: 24px; width: 24px; }
  body.woocommerce-cart .cap-cart-empty__copy h2 { font-size: 1.5rem; }
  body.woocommerce-cart .cap-cart-empty__copy p { font-size: .9375rem; }
  body.woocommerce-cart .cap-cart-empty .cap-button { font-size: .9375rem; padding-inline: 14px; white-space: normal; }
  body.woocommerce-cart .cap-cart-support { gap: 16px; grid-template-columns: minmax(0, 1fr); padding-block: 20px; }
  body.woocommerce-cart .cap-cart-support > a { align-items: center; }
  body.woocommerce-cart .cap-cart-discover { margin-top: 28px; }
  body.woocommerce-cart .cap-cart-discover__heading { margin-bottom: 12px; }
  body.woocommerce-cart .cap-cart-categories { gap: 12px; }
  body.woocommerce-cart .cap-cart-category { gap: 12px 4px; grid-template-columns: minmax(0, 1fr) auto; padding: 16px 12px; }
  body.woocommerce-cart .cap-cart-category > span:first-child { grid-column: 1 / -1; }
  body.woocommerce-cart .cap-cart-category > span > span { max-width: none; }
  body.woocommerce-cart .cap-cart-category img { grid-column: 1; grid-row: 2; height: 64px; width: 80px; }
  body.woocommerce-cart .cap-cart-category__arrow { align-self: end; grid-column: 2; grid-row: 2; }
  body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product, .wc-block-product) { padding: 12px; }
  body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-image, .wp-block-woocommerce-product-image) img { height: 116px; max-height: 116px; }
  body.woocommerce-cart.capitaurum-commerce :is(.wc-block-grid__product-add-to-cart .wp-block-button__link, .wc-block-components-product-button__button) { padding-inline: 8px; }
}

@media (max-width: 359px) {
  body.woocommerce-cart.capitaurum-commerce .cap-brand__copy { display: none; }
  body.woocommerce-cart.capitaurum-commerce .wc-block-grid__products {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-cart .cap-cart-empty { grid-template-columns: minmax(0, 1fr); }
  body.woocommerce-cart .cap-cart-category strong { font-size: 1rem; }
  body.woocommerce-cart .cap-cart-category > span > span { font-size: .8125rem; }
}

@media (min-width: 960px) {
  body.woocommerce-cart.capitaurum-commerce .wc-block-components-sidebar-layout,
  body.woocommerce-checkout.capitaurum-commerce .wc-block-components-sidebar-layout {
    gap: clamp(24px, 3vw, 40px);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }

  body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__sidebar {
    max-height: calc(100dvh - var(--cap-checkout-sticky-top, 9rem) - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    position: sticky;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    top: var(--cap-checkout-sticky-top, 9rem);
  }

  body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__sidebar:focus-visible { outline: 2px solid var(--cap-primary); outline-offset: 3px; }
}

@media (max-width: 959px) {
  body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__sidebar.is-sticky {
    position: static;
    top: auto;
  }

  /* Flatten the neutral column wrapper into the existing grid on mobile.
     Summary stays first, then the unchanged form, then the support facts.
     React controls and their document order remain untouched. */
  body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__sidebar {
    display: contents;
  }

  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-summary-link {
    order: 0;
  }

  body.woocommerce-checkout.capitaurum-commerce .wp-block-woocommerce-checkout-order-summary-block {
    order: 1;
  }

  body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__main {
    order: 2;
  }

  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-support {
    margin-top: 0;
    order: 3;
  }
}

body.capitaurum-commerce .wc-block-components-product-name,
body.capitaurum-commerce .wc-block-cart-item__product .wc-block-components-product-name {
  color: var(--cap-text);
  font-weight: 750;
}

body.capitaurum-commerce .wc-block-components-totals-wrapper,
body.capitaurum-commerce .wc-block-cart-items__row {
  border-color: var(--cap-border);
}

body.capitaurum-commerce .wc-block-components-order-summary-item__image img,
body.capitaurum-commerce .wc-block-cart-item__image img {
  background: var(--cap-background-subtle);
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  object-fit: contain;
}

.cap-footer {
  background: var(--cap-primary-deep);
  border-top: 1px solid oklch(80% .026 250 / .2);
  color: oklch(98% .009 80);
  padding: 64px 0 24px;
}

.cap-footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.5fr repeat(3, 1fr);
}

.cap-footer__intro p {
  max-width: 330px;
}

.cap-footer__contact {
  margin-top: 24px;
}

.cap-footer-brand {
  margin-bottom: 16px;
}

.cap-footer-brand__mark {
  background: #f8f6f2;
  border-radius: 12px;
  height: 42px;
  width: 42px;
}

.cap-footer-brand__mark img {
  height: 31px;
  object-fit: contain;
  width: 31px;
}

.cap-footer-brand strong,
.cap-footer-brand small {
  display: block;
}

.cap-footer-brand strong {
  color: oklch(98% .009 80);
  font-family: var(--cap-serif);
  font-size: 26px;
  font-weight: 600;
}

.cap-footer-brand small {
  color: oklch(85% .02 250);
  font-size: 0.8rem;
  margin-top: 2px;
}

.cap-footer h2 {
  color: oklch(98% .009 80);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.cap-footer p,
body.capitaurum-commerce .cap-footer a,
.cap-footer__bottom {
  color: oklch(85% .02 250);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cap-footer p {
  margin: 0 0 12px;
}

.cap-footer nav {
  display: grid;
  gap: 9px;
}

body.capitaurum-commerce .cap-footer a:hover {
  color: oklch(98% .009 80);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cap-footer__bottom {
  border-top: 1px solid oklch(80% .026 250 / .2);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
}

@media (max-width: 1240px) {
  .cap-nav {
    display: none;
  }

  .cap-mobile-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-self: end;
  }

  .cap-header-search--mobile {
    position: static;
  }

  .cap-header-search--mobile .cap-header-search__panel {
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    width: auto;
  }
}

@media (max-width: 1020px) {
  .cap-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.capitaurum-commerce .woocommerce .col2-set,
  body.capitaurum-commerce .woocommerce-page .col2-set {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .admin-bar .cap-header {
    top: 46px;
  }
}

/* Woo's mobile checkout action can remain fixed while the footer is in view.
   Reserve its clearance after the last footer content, not inside the cart. */
@media (max-width: 782px) and (min-height: 501px) {
  body.woocommerce-cart:has(.wc-block-cart__submit-container--sticky) .cap-footer {
    padding-bottom: calc(24px + 92px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 680px) {
  .cap-preview__inner,
  .cap-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-block: 8px;
  }

  .cap-topbar__inner > span {
    display: none;
  }

  .cap-topbar__links {
    justify-content: flex-start;
    gap: 12px;
  }

  .cap-nav-shell {
    min-height: 68px;
  }

  .cap-brand {
    min-width: 0;
  }

  .cap-brand small {
    display: none;
  }

  .cap-brand strong {
    font-size: 18px;
  }

  .cap-brand__mark {
    height: 40px;
    width: 40px;
  }

  .cap-page-head {
    padding-block: 40px;
  }

  .cap-page-head h1 {
    font-size: clamp(2.2rem, 11vw, 3.05rem);
  }

  .cap-commerce-section {
    padding-block: 40px;
  }

  body.woocommerce-cart .cap-page-head,
  body.woocommerce-checkout .cap-page-head,
  body.woocommerce-account .cap-page-head {
    padding-block: 28px;
  }

  body.woocommerce-cart .cap-page-head h1,
  body.woocommerce-checkout .cap-page-head h1,
  body.woocommerce-account .cap-page-head h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  body.woocommerce-cart .cap-commerce-section,
  body.woocommerce-checkout .cap-commerce-section,
  body.woocommerce-account .cap-commerce-section {
    padding-block: 28px;
  }

  body.woocommerce-cart .wc-block-cart__submit-container--sticky {
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.woocommerce-cart.capitaurum-commerce .wc-block-cart__main,
  body.woocommerce-cart.capitaurum-commerce .wc-block-cart-items,
  body.woocommerce-cart.capitaurum-commerce .wc-block-cart-items thead,
  body.woocommerce-cart.capitaurum-commerce .wc-block-cart-items tbody,
  body.woocommerce-cart.capitaurum-commerce .wc-block-cart-items__row {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  body.woocommerce-cart.capitaurum-commerce .wc-block-cart-items {
    display: block;
    table-layout: fixed;
  }

  body.woocommerce-cart.capitaurum-commerce .wc-block-cart-items thead,
  body.woocommerce-cart.capitaurum-commerce .wc-block-cart-items tbody {
    display: block;
  }

  /* Override Blocks' mobile grid areas, including its implicit third column. */
  body.woocommerce-cart.capitaurum-commerce table.wc-block-cart-items .wc-block-cart-items__row {
    column-gap: 12px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    row-gap: 8px;
  }

  body.woocommerce-cart.capitaurum-commerce table.wc-block-cart-items .wc-block-cart-items__row td {
    padding-block: 18px 0;
  }

  body.woocommerce-cart.capitaurum-commerce table.wc-block-cart-items .wc-block-cart-item__image {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
    padding-right: 0;
    width: 64px;
  }

  body.woocommerce-cart.capitaurum-commerce .wc-block-cart-item__image img {
    height: 72px;
    width: 64px;
  }

  body.woocommerce-cart.capitaurum-commerce table.wc-block-cart-items .wc-block-cart-item__product {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: auto;
  }

  body.woocommerce-cart.capitaurum-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    min-width: 0;
    padding-block: 0 18px;
    width: auto;
  }

  body.woocommerce-cart.capitaurum-commerce .wc-block-components-product-name,
  body.woocommerce-cart.capitaurum-commerce .wc-block-cart-item__product {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body.woocommerce-cart.capitaurum-commerce .wc-block-components-quantity-selector {
    max-width: 100%;
  }

  body.capitaurum-commerce .woocommerce-info .button,
  body.capitaurum-commerce .woocommerce-message .button,
  body.capitaurum-commerce .woocommerce-error .button {
    margin-left: 0;
    width: 100%;
  }

  body.capitaurum-commerce .woocommerce table.shop_table_responsive tr td,
  body.capitaurum-commerce .woocommerce-page table.shop_table_responsive tr td {
    padding: 12px;
  }

}

/* Match the public Astro footer, including its compact mobile contact block. */
@media (max-width: 700px) {
  .cap-footer {
    padding-top: 40px;
  }

  .cap-footer__grid {
    gap: 24px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cap-footer__intro,
  .cap-footer__information {
    grid-column: 1 / -1;
  }

  .cap-footer__contact {
    display: grid;
    gap: 8px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
  }

  .cap-footer__contact h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .cap-footer__contact p {
    margin-bottom: 0;
    overflow-wrap: anywhere;
  }

  .cap-footer__contact-links {
    grid-row: span 2;
  }

  .cap-footer__information nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .cap-footer__bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
  }
}

/* Checkout reference revision: native controls, static labels and blue choices.
   Field order, values, validation, rate amounts and order submission are native. */
body.woocommerce-checkout.capitaurum-commerce {
  --cap-background: #f6f3ec;
  --cap-surface: #fffefd;
  --cap-border: #e3ded5;
  --cap-focus: 0 0 0 3px rgb(0 47 95 / .18);
  background: var(--cap-background);
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form > .wc-block-components-checkout-step,
body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid::before,
body.woocommerce-checkout.capitaurum-commerce .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout.capitaurum-commerce .cap-checkout-support {
  box-shadow: 0 4px 18px rgb(31 45 65 / .045);
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input {
  display: flex;
  flex-direction: column;
  text-align: left;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .cap-checkout-country-inline-source {
  display: none;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input:has(> .cap-checkout-personnummer-country) {
  display: grid;
  grid-template-columns: minmax(0, 22rem) auto;
  column-gap: 1rem;
  max-width: 100%;
}

.cap-checkout-personnummer-country {
  align-self: center;
  color: var(--cap-text-secondary);
  font-size: .875rem;
  grid-area: 2 / 2;
  justify-self: start;
  line-height: 1.4;
}

.wc-block-components-text-input:has(> .cap-checkout-personnummer-country) > label,
.wc-block-components-text-input:has(> .cap-checkout-personnummer-country) > .wc-block-components-validation-error {
  grid-column: 1 / -1;
}

.wc-block-components-text-input:has(> .cap-checkout-personnummer-country) > input {
  grid-area: 2 / 1;
  min-width: 0;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input > label {
  color: var(--cap-primary);
  display: block;
  font-size: .875rem;
  font-weight: 600;
  left: auto;
  line-height: 1.4;
  margin: 0 0 5px;
  max-width: none;
  opacity: 1;
  order: -1;
  overflow: visible;
  pointer-events: auto;
  position: static;
  text-overflow: clip;
  top: auto;
  transform: none;
  transition: none;
  white-space: normal;
  width: auto;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input input,
body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input.is-active input {
  background: #fff;
  border: 1px solid #c4cdd7;
  border-radius: 5px;
  font-size: 1rem;
  height: 40px;
  line-height: 1.25;
  min-height: 40px;
  padding: 8px 11px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input.has-error input {
  border-color: var(--cap-danger);
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input input::placeholder {
  color: #6b7280;
  font-weight: 400;
  opacity: 1;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input input:focus {
  border-color: var(--cap-primary);
  box-shadow: 0 0 0 2px rgb(0 47 95 / .12);
  outline: 0;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-validation-error p {
  font-size: .875rem;
  line-height: 1.4;
  margin: 5px 0 0;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-components-checkout-step__description {
  color: var(--cap-text-secondary);
  font-size: .9375rem;
  line-height: 1.45;
  margin: 4px 0 0;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form > .cap-checkout-company .cap-checkout-company__toggle {
  font-size: .9375rem;
  min-height: 44px;
  padding-block: 8px;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control {
  gap: 10px;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__option {
  align-items: center;
  background: #fff;
  border: 1px solid #d6dce3;
  border-radius: 6px;
  display: grid;
  gap: 5px 10px;
  grid-template-columns: 20px 36px minmax(0, 1fr) auto;
  min-height: 100px;
  padding: 14px;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__option:has(input:checked) {
  background: #eef4fb;
  border-color: var(--cap-primary);
  box-shadow: inset 0 0 0 1px var(--cap-primary);
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__option:has(input:focus-visible) {
  outline: 3px solid rgb(0 47 95 / .3);
  outline-offset: 3px;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__option > input[type='radio'] {
  accent-color: var(--cap-primary);
  align-self: center;
  border-color: var(--cap-primary);
  grid-column: 1;
  grid-row: 1 / 3;
  height: 20px;
  left: auto;
  margin: 0;
  min-height: 20px;
  position: relative;
  top: auto;
  transform: none;
  width: 20px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-components-radio-control__input:checked::before {
  background: var(--cap-primary);
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) :is(.wc-block-components-radio-control__option-layout, .wc-block-components-radio-control__label-group) {
  display: contents;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__description-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  grid-column: 3 / -1;
  grid-row: 2;
  min-width: 0;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) [data-cap-shipping-description]:has(.wc-block-components-radio-control__description-group)::after { grid-row: 3; }

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__label {
  color: var(--cap-primary);
  display: block;
  font-size: 1rem;
  font-weight: 700;
  grid-column: 3;
  grid-row: 1;
  line-height: 1.3;
  min-width: 0;
  white-space: normal;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__label::before { content: none; }

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__secondary-label {
  align-self: center;
  color: var(--cap-primary);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  grid-column: 4;
  grid-row: 1;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__option::before {
  align-self: center;
  background: var(--cap-primary);
  content: '';
  grid-column: 2;
  grid-row: 1 / 3;
  height: 36px;
  mask: url('../icons/checkout/truck.svg') center / contain no-repeat;
  width: 36px;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) [data-cap-shipping-kind='pickup']::before {
  mask-image: url('../icons/checkout/pickup.svg');
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) [data-cap-shipping-kind='neutral']::before {
  background: transparent;
  mask: none;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__option::after { content: none; }

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) :is(.wc-block-components-radio-control__description, .wc-block-components-radio-control__secondary-description),
body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) [data-cap-shipping-description]::after {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--cap-text-secondary);
  font-size: .875rem;
  font-weight: 400;
  grid-column: 3 / -1;
  grid-row: 2;
  height: auto;
  inset: auto;
  line-height: 1.45;
  margin: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
  position: static;
  text-align: left;
  white-space: normal;
  width: auto;
}

body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) [data-cap-shipping-description]::after {
  content: attr(data-cap-shipping-description);
  display: block;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
  background: #fff;
  border: 1px solid #d6dce3;
  border-radius: 6px;
  box-shadow: none;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
  background: #eef4fb;
  border-color: var(--cap-primary);
  box-shadow: inset 0 0 0 1px var(--cap-primary);
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method :is(.wc-block-components-radio-control--highlight-checked, .wc-block-components-radio-control-accordion-option)::after {
  display: none;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control__option {
  background: transparent;
  border: 0;
  min-height: 52px;
  padding: 10px 16px 2px 48px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control__input {
  accent-color: var(--cap-primary);
  border-color: var(--cap-primary);
  left: 16px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control__option:has(input[value='bacs']) .wc-block-components-radio-control__label {
  align-items: center;
  color: var(--cap-primary);
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 12px;
  line-height: 1.3;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-components-radio-control-accordion-option:has(input[value='bacs']) { position: relative; }
body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control__option:has(input[value='bacs']) { padding-left: 104px; position: static; }
body.woocommerce-checkout.capitaurum-commerce .wc-block-components-radio-control-accordion-option:has(input[value='bacs']) .wc-block-components-radio-control__input { margin-top: 0; top: 50%; transform: translateY(-50%); }

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control__option:has(input[value='bacs']) .wc-block-components-radio-control__label::before {
  background: url('../icons/checkout/bank.svg') center / contain no-repeat;
  content: '';
  height: 38px;
  left: 48px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content {
  color: var(--cap-text-secondary);
  font-size: .875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 0 16px 14px 92px;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-components-radio-control-accordion-option:has(input[value='bacs']) .wc-block-components-radio-control-accordion-content { white-space: pre-line; }
body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(input[value='bacs']) .wc-block-components-radio-control-accordion-content { padding-left: 104px; }

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content p { margin: 0 0 7px; }
body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content p:last-child { margin-bottom: 0; }

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content [data-cap-payment-details] { font-size: .875rem; line-height: 1.45; margin: 0; white-space: normal; }
body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content [data-cap-payment-note] { align-items: start; color: var(--cap-text-secondary); display: flex; font-size: .875rem; gap: 6px; line-height: 1.45; margin: 2px 0 0; white-space: normal; }
body.woocommerce-checkout [data-cap-payment-note]::before { background: var(--cap-gold); content: ''; flex: 0 0 16px; height: 16px; margin-top: 2px; mask: url('../icons/checkout/lock.svg') center / contain no-repeat; width: 16px; }

body.woocommerce-checkout.capitaurum-commerce .cap-checkout-support {
  background: var(--cap-surface);
  border: 1px solid var(--cap-border);
  border-radius: 8px;
  margin-top: 18px;
  padding: 22px;
}

body.woocommerce-checkout .cap-checkout-support h2 {
  border-bottom: 1px solid var(--cap-border);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
  padding-bottom: 16px;
}

body.woocommerce-checkout .cap-checkout-support ul { gap: 0; }
body.woocommerce-checkout .cap-checkout-support li { align-items: center; border-bottom: 1px solid var(--cap-border); gap: 15px; padding: 15px 0; }
body.woocommerce-checkout .cap-checkout-support li:last-child { border-bottom: 0; padding-bottom: 0; }
body.woocommerce-checkout .cap-checkout-support li strong { font-size: 1rem; line-height: 1.35; }
body.woocommerce-checkout .cap-checkout-support li span:not(.cap-checkout-support__icon) { font-size: .875rem; line-height: 1.45; }

body.woocommerce-checkout .cap-checkout-support__icon {
  align-self: start;
  background: var(--cap-gold);
  flex: 0 0 34px;
  height: 34px;
  margin-top: 2px;
  mask: var(--cap-support-icon) center / contain no-repeat;
  width: 34px;
}

body.woocommerce-checkout .cap-checkout-support__reviews { margin-top: 18px; }
body.woocommerce-checkout .cap-checkout-summary-link { font-size: .875rem; padding: 0; position: absolute; right: 20px; top: 16px; }
body.woocommerce-checkout .cap-checkout-summary-link a { min-height: 36px; text-decoration-line: underline; }

body.woocommerce-checkout.capitaurum-commerce .wp-block-woocommerce-checkout-order-summary-block {
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
  border-bottom: 1px solid var(--cap-border);
  margin-top: 0;
  padding: 0 80px 14px 0;
}

body.woocommerce-checkout .checkout-order-summary-block-fill-wrapper > .wc-block-components-checkout-step__heading { padding-right: 80px; }
body.woocommerce-checkout .wc-block-checkout.is-mobile .wc-block-components-checkout-order-summary__title { padding-right: 0; }
body.woocommerce-checkout .wc-block-checkout.is-mobile .wc-block-components-checkout-order-summary__content .cap-checkout-summary-link { padding-bottom: 6px; position: static; }

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
  color: var(--cap-primary);
  font-size: 1.375rem;
  margin-left: 0;
}

body.woocommerce-checkout.capitaurum-commerce .wc-block-components-order-summary-item { align-items: start; column-gap: 12px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; padding: 16px 0; row-gap: 4px; }
body.woocommerce-checkout .wc-block-components-order-summary-item__image { grid-column: 1; grid-row: 1 / span 3; margin-right: 0; width: 56px; }
body.woocommerce-checkout.capitaurum-commerce .wc-block-components-order-summary-item__image img { background: #fff; border: 1px solid var(--cap-border); border-radius: 5px; height: 62px; object-fit: contain; width: 56px; }
body.woocommerce-checkout .wc-block-components-order-summary-item__description { display: contents; }
body.woocommerce-checkout .wc-block-components-order-summary-item__description > * { grid-column: 2 / -1; min-width: 0; }
body.woocommerce-checkout .wc-block-components-order-summary-item__description > h3 { grid-row: 1; margin: 0; }
body.woocommerce-checkout .wc-block-components-order-summary-item__description > .wc-block-cart-item__prices { align-self: center; grid-column: 2; grid-row: 2; margin: 0; }
body.woocommerce-checkout .wc-block-components-order-summary-item__description > .wc-block-components-product-metadata { grid-row: 3; margin-top: 0; }
body.woocommerce-checkout.capitaurum-commerce .wc-block-components-order-summary-item .wc-block-components-product-name { font-size: .9375rem; font-weight: 700; line-height: 1.35; }
body.woocommerce-checkout :is(.wc-block-components-order-summary-item__individual-prices, .wc-block-components-order-summary-item__description > .wc-block-cart-item__prices) { color: var(--cap-text-secondary); font-size: .875rem; line-height: 1.4; }
body.woocommerce-checkout .wc-block-components-order-summary-item__total-price { align-self: center; color: var(--cap-primary); font-size: .875rem; font-variant-numeric: tabular-nums; font-weight: 700; grid-column: 3; grid-row: 2; justify-self: end; padding-top: 0; white-space: nowrap; }
body.woocommerce-checkout .wc-block-components-totals-coupon__button { color: var(--cap-primary); font-size: .9375rem; min-height: 44px; padding-block: 10px; }
body.woocommerce-checkout .wc-block-components-totals-item { font-size: .9375rem; }

body.woocommerce-checkout .wc-block-components-totals-footer-item {
  align-items: center;
  background: #edf3fa;
  border: 1px solid #dce6f2;
  border-radius: 6px;
  display: grid;
  gap: 6px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 12px;
  padding: 15px 12px;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { color: var(--cap-primary); display: block; font-size: .75rem; font-weight: 400; line-height: 1.5; white-space: pre-line; }
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label::first-line { font-family: var(--cap-serif); font-size: 1.125rem; font-weight: 600; }
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--cap-primary); font-family: var(--cap-serif); font-size: 1.375rem; font-weight: 600; justify-self: end; white-space: nowrap; }
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__description { grid-column: 1 / -1; }
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__description:empty { display: none; }

body.woocommerce-checkout .cap-checkout-payment-reminder {
  align-items: start;
  color: var(--cap-text-secondary);
  display: flex;
  font-size: .8125rem;
  gap: 8px;
  line-height: 1.45;
  margin: 12px 0 0;
}

body.woocommerce-checkout .cap-checkout-payment-reminder__icon {
  background: var(--cap-gold);
  flex: 0 0 20px;
  height: 20px;
  mask: url('../icons/checkout/lock.svg') center / contain no-repeat;
  width: 20px;
}

body.woocommerce-checkout :is(.wc-block-components-checkout-order-summary__content, .checkout-order-summary-block-fill) {
  display: flex;
  flex-direction: column;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title[aria-expanded='false'] + .wc-block-components-checkout-order-summary__content { display: none; }
/* Woo's opening animation writes inline display:block; retain the footer order only while expanded. */
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title[aria-expanded='true'] + .wc-block-components-checkout-order-summary__content { display: flex !important; }

/* Woo renders the footer after all summary children. Keep its native total
   ahead of the note in both the visual and accessible reading order. */
@supports (reading-flow: flex-visual) {
  body.woocommerce-checkout :is(.wc-block-components-checkout-order-summary__content, .checkout-order-summary-block-fill, .wc-block-components-checkout-order-summary__content-container):has(> .cap-checkout-summary-notes) {
    display: flex;
    flex-direction: column;
    reading-flow: flex-visual;
  }
}
body.woocommerce-checkout .cap-checkout-summary-notes { order: 1; }
body.woocommerce-checkout .cap-checkout-price-note { color: var(--cap-text-secondary); font-size: .8125rem; line-height: 1.45; margin: 12px 0 0; }

body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle { display: none; }

body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form > .wc-block-checkout__order-notes { margin-block: 8px; }
body.woocommerce-checkout .wc-block-components-textarea { background: #fff; border: 1px solid #c4cdd7; border-radius: 5px; font-size: .9375rem; line-height: 1.45; min-height: 76px; padding: 10px 12px; }
body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form > .cap-checkout-questions { background: var(--cap-surface); border: 1px solid var(--cap-border); border-radius: 8px; gap: 16px; margin: 4px 0 8px; padding: 18px; }
body.woocommerce-checkout .cap-checkout-question legend { color: var(--cap-primary); font-size: .9375rem; line-height: 1.4; margin-bottom: 8px; }
body.woocommerce-checkout .cap-checkout-question__option { border-color: #c4cdd7; border-radius: 5px; min-height: 44px; min-width: 70px; padding: 8px 11px; }
body.woocommerce-checkout .cap-checkout-question__option:has(input:checked) { background: #eef4fb; border-color: var(--cap-primary); box-shadow: inset 0 0 0 1px var(--cap-primary); }

body.woocommerce-checkout :is(.wc-block-checkout__terms, .wc-block-components-checkbox__label) { color: var(--cap-text-secondary); font-size: .9375rem; line-height: 1.45; }
body.woocommerce-checkout :is(.wc-block-checkout__terms, .wc-block-components-checkbox__label) a { color: var(--cap-primary); font-weight: 600; text-decoration-line: underline; text-underline-offset: 3px; }
body.woocommerce-checkout .wc-block-components-checkbox__input[type='checkbox']:checked { background-color: var(--cap-primary); border-color: var(--cap-primary); }
body.woocommerce-checkout .wc-block-components-checkbox__mark { fill: #fff; }

body.woocommerce-checkout.capitaurum-commerce .cap-page-head { padding-block: 20px; }
body.woocommerce-checkout.capitaurum-commerce .cap-page-head__inner { max-width: var(--cap-container); text-align: left; }
body.woocommerce-checkout.capitaurum-commerce .cap-page-head .cap-eyebrow { margin-bottom: 8px; }
body.woocommerce-checkout.capitaurum-commerce .cap-page-head h1 { font-size: clamp(2rem, 3.2vw, 2.625rem); line-height: 1.1; }
body.woocommerce-checkout.capitaurum-commerce .cap-page-head p:not(.cap-eyebrow) { margin: 8px 0 0; max-width: 60ch; }

.cap-page-head__inner:has(.cap-checkout-progress) { max-width: var(--cap-container); }
.cap-checkout-progress { margin: 20px 0 0; width: 100%; }
.cap-checkout-progress ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.cap-checkout-progress li { position: relative; }
.cap-checkout-progress li:not(:last-child)::after { background: #c8cfd8; content: ''; height: 1px; left: calc(50% + 20px); position: absolute; top: 14px; width: calc(100% - 40px); }
.cap-checkout-progress li.is-complete::after { background: #8ba0b8; }
.cap-checkout-progress :is(a, li > span) { align-items: center; color: var(--cap-text-secondary); display: flex; flex-direction: column; font-size: .875rem; gap: 6px; line-height: 1.35; min-height: 54px; position: relative; text-decoration: none; z-index: 1; }
.cap-checkout-progress a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cap-checkout-progress .cap-checkout-progress__number { background: var(--cap-surface); border: 1px solid #aeb9c7; border-radius: 50%; display: grid; font-size: .875rem; font-weight: 600; height: 28px; line-height: 1; place-items: center; width: 28px; }
.cap-checkout-progress .is-current > :is(a, span) { color: var(--cap-primary); font-weight: 700; }
.cap-checkout-progress .is-current .cap-checkout-progress__number { background: var(--cap-primary); border-color: var(--cap-primary); color: #fff; }
.cap-checkout-progress .is-complete .cap-checkout-progress__number { border-color: var(--cap-primary); color: var(--cap-primary); }
body.woocommerce-checkout.capitaurum-commerce .cap-commerce-section { padding-top: 24px; }

@media (min-width: 700px) {
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-customer-grid > :is(.wc-block-checkout__shipping-option, .wc-block-checkout__payment-method) { margin-bottom: 0; }
}

@media (min-width: 960px) {
  .cap-page-head__inner:has(.cap-checkout-progress) { align-items: center; column-gap: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
  .cap-page-head__inner > .cap-checkout-progress { margin: 0; }
}

@media (max-width: 959px) {
  body.woocommerce-checkout.capitaurum-commerce .cap-commerce-section { padding-top: 20px; }
  body.woocommerce-checkout.capitaurum-commerce .cap-commerce-content > .wp-block-woocommerce-checkout,
  body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout { margin-top: 0; padding-top: 0; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-summary-link { margin: 0; padding: 0; }
  body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__actions { margin-bottom: 0; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-support { margin-block: 0; }
}

@media (max-width: 699px) {
  body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input input,
  body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__form .wc-block-components-text-input.is-active input { height: 44px; min-height: 44px; padding: 10px 11px; }
  body.woocommerce-checkout.capitaurum-commerce .cap-checkout-support { padding: 18px; }
  body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
  body.woocommerce-checkout.capitaurum-commerce :is(.wc-block-checkout__shipping-option, .wc-block-checkout__shipping-method) .wc-block-components-radio-control__option { min-height: 94px; padding: 12px; }
  body.woocommerce-checkout.capitaurum-commerce .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content { padding-left: 48px; }
  body.woocommerce-checkout.capitaurum-commerce .wc-block-components-order-summary-item { grid-template-columns: 48px minmax(0, 1fr) auto; }
  body.woocommerce-checkout .wc-block-components-order-summary-item__image { width: 48px; }
  body.woocommerce-checkout.capitaurum-commerce .wc-block-components-order-summary-item__image img { height: 54px; width: 48px; }
  body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 1.25rem; }
}
