/*
 * Design language: checkout templates (T-117). Loaded after design-base-1.0.0.css by fc_design_enqueue();
 * every rule needs html.fcd. Reference: forcar-concepts-docs/reference/design-language.md
 *
 * Covers cart (is_cart), checkout and order-received (is_checkout). Body classes: .woocommerce-cart,
 * .woocommerce-checkout (also on order-received, which adds .woocommerce-order-received).
 * The "Passend zu Ihrem Fahrzeug" block (.other-prod-class, T-112) keeps its markup; only its look is adapted here.
 * Product card insides (cards-1.0.3.css) are not touched.
 */

/* ---------- page layout: no left sidebar, one wide column ---------- */
html.fcd :is(.woocommerce-cart, .woocommerce-checkout) #secondary {
  display: none;
}
html.fcd :is(.woocommerce-cart, .woocommerce-checkout) #primary {
  float: none;
  width: 100%;
  margin: 0;
}
/* the cart page prints a second visible h1 inside .woocommerce; the band already shows the title */
html.fcd :is(.woocommerce-cart, .woocommerce-checkout) #content .entry-title-new {
  display: none;
}
html.fcd :is(.woocommerce-cart, .woocommerce-checkout) #content .woocommerce-error {
  list-style: none;
}
html.fcd :is(.woocommerce-cart, .woocommerce-checkout) #content .woocommerce-error li {
  margin: 0;
}
/* shared label type */
html.fcd :is(.woocommerce-cart, .woocommerce-checkout) #content :is(table.shop_table thead th, .woocommerce-order-overview li) {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}


/* ---------- secondary (outlined) buttons in the cart: the base forces ink buttons with !important, so only these need it ---------- */
html.fcd .woocommerce-cart #content .woocommerce form :is(button[name='apply_coupon'], button[name='update_cart']):not(ul.products *) {
  background: transparent !important; /* beats the base's forced ink background */
  color: var(--ink) !important; /* same: base forces color #fff */
}
html.fcd .woocommerce-cart #content .woocommerce form :is(button[name='apply_coupon'], button[name='update_cart']):not(:disabled):hover {
  border-color: var(--ink) !important;
  background: var(--ink) !important; /* base hover is bronze-3 */
  color: #fff !important;
}

/* ================= CART ================= */
@media (min-width: 1024px) {
  html.fcd .woocommerce-cart #content .entry-content > .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 0 40px;
    align-items: start;
  }
  html.fcd .woocommerce-cart #content .entry-content > .woocommerce > :is(.woocommerce-notices-wrapper, .other-prod-class, .wc-empty-cart-message, .cart-empty, .return-to-shop) {
    grid-column: 1 / -1;
  }
}

/* empty cart: a centred block instead of an empty page */
html.fcd .woocommerce-cart #content :is(.cart-empty, .return-to-shop) {
  width: 100%; /* grid items with auto margins would otherwise shrink to their content */
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
html.fcd .woocommerce-cart #content .cart-empty {
  margin-top: 24px;
  margin-bottom: 0;
  padding: 48px 24px 12px;
  border-left: 0;
  border-top: 4px solid var(--bronze);
  background: var(--paper);
  font-family: var(--display);
  font-size: var(--fs-xl);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
html.fcd .woocommerce-cart #content .return-to-shop {
  margin-top: 0;
  margin-bottom: 64px;
  padding: 12px 24px 48px;
  background: var(--paper);
}
html.fcd .woocommerce-cart #content .return-to-shop .button {
  min-width: 260px;
}

/* cart table */
html.fcd .woocommerce-cart #content table.shop_table.cart {
  width: 100%;
  margin: 0 0 24px;
  border: 0;
  border-collapse: collapse;
  background: none;
}
html.fcd .woocommerce-cart #content table.shop_table.cart thead th {
  padding: 0 12px 12px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: none;
  color: var(--muted);
  text-align: left;
}
html.fcd .woocommerce-cart #content table.shop_table.cart tbody td {
  padding: 20px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  vertical-align: middle;
}
html.fcd .woocommerce-cart #content table.shop_table.cart tbody tr:first-child td {
  border-top: 0;
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-remove,
html.fcd .woocommerce-cart #content table.shop_table.cart th.product-remove {
  width: 40px;
  padding-left: 0;
  padding-right: 4px;
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-thumbnail,
html.fcd .woocommerce-cart #content table.shop_table.cart th.product-thumbnail {
  width: 104px;
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-thumbnail img {
  display: block;
  width: 88px;
  height: 88px;
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  object-fit: contain;
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-name a {
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-name a:hover {
  color: var(--bronze-3);
  text-decoration: underline;
}
/* YITH bundle and variation details under the product name */
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-name :is(dl, .variation) {
  margin: 8px 0 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text);
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-name :is(dt, dd) {
  display: inline;
  margin: 0;
  font-weight: 400;
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-name dt {
  font-weight: 700;
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-name dd p {
  display: inline;
  margin: 0;
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-name dd::after {
  content: '';
  display: block;
}
html.fcd .woocommerce-cart #content table.shop_table.cart tr.yith-wcpb-child-item td,
html.fcd .woocommerce-cart #content table.shop_table.cart tr.cart_item_bundled td {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--paper);
}
html.fcd .woocommerce-cart #content table.shop_table.cart td:is(.product-price, .product-subtotal) {
  font-size: var(--fs-md);
  white-space: nowrap;
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.product-subtotal {
  font-weight: 700;
}

/* remove: square icon button */
html.fcd .woocommerce-cart #content table.shop_table.cart a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: #fff;
  color: var(--ink) !important; /* WooCommerce core sets a.remove { color: red !important } */
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
html.fcd .woocommerce-cart #content table.shop_table.cart a.remove:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff !important; /* same core !important */
}

/* quantity stepper: square, one bordered unit */
html.fcd .woocommerce-cart #content .quantity .number-input {
  display: inline-flex;
  align-items: stretch;
  height: 48px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: #fff;
}
html.fcd .woocommerce-cart #content .quantity .number-input :is(a.stepdown, a.stepup) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  transition: background .2s;
}
html.fcd .woocommerce-cart #content .quantity .number-input :is(a.stepdown, a.stepup):hover {
  background: var(--paper);
}
html.fcd .woocommerce-cart #content .quantity .number-input input.qty {
  width: 52px;
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
html.fcd .woocommerce-cart #content .quantity .number-input input.qty::-webkit-outer-spin-button,
html.fcd .woocommerce-cart #content .quantity .number-input input.qty::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* coupon + update row */
html.fcd .woocommerce-cart #content table.shop_table.cart td.actions {
  padding: 24px 0 0;
  border-top: 2px solid var(--ink);
  background: none;
}
html.fcd .woocommerce-cart #content table.shop_table.cart td.actions::after {
  content: '';
  display: block;
  clear: both;
}
html.fcd .woocommerce-cart #content td.actions .coupon {
  float: left;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
html.fcd .woocommerce-cart #content td.actions .coupon #coupon_code {
  width: 220px;
  max-width: 100%;
}
html.fcd .woocommerce-cart #content td.actions > button[name='update_cart'] {
  float: right;
}
/* secondary buttons: outlined */
html.fcd .woocommerce-cart #content :is(button[name='apply_coupon'], button[name='update_cart']) {
  background: transparent;
  color: var(--ink);
}
html.fcd .woocommerce-cart #content :is(button[name='apply_coupon'], button[name='update_cart']):not(:disabled):hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
html.fcd .woocommerce-cart #content button[name='update_cart']:disabled {
  opacity: .45;
}

/* cart totals: white panel, 4 px bronze on top */
html.fcd .woocommerce-cart #content .cart-collaterals {
  width: 100%;
  float: none;
}
html.fcd .woocommerce-cart #content .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--bronze);
  background: #fff;
}
html.fcd .woocommerce-cart #content .cart_totals > h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
html.fcd .woocommerce-cart #content .cart-collaterals .cross-sells {
  display: none;
}

/* "Passend zu Ihrem Fahrzeug" (T-112) */
html.fcd .woocommerce-cart #content .other-prod-class {
  margin: 56px 0 24px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
html.fcd .woocommerce-cart #content .other-prod-class > h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: var(--fs-xl);
  font-weight: 900;
  font-style: italic;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
/* carousel arrows: square like .fcy-arrow, kept inside the gutter */
html.fcd body .other-prod-class .owl-carousel .owl-nav button.owl-prev,
html.fcd body .other-prod-class .owl-carousel .owl-nav button.owl-next {
  width: 46px;
  height: 46px;
  border: 1px solid #cfcbc3;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  transition: background .2s, color .2s, border-color .2s;
}
html.fcd body .other-prod-class .owl-carousel .owl-nav button.owl-prev:hover,
html.fcd body .other-prod-class .owl-carousel .owl-nav button.owl-next:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
html.fcd body .other-prod-class .owl-carousel .owl-nav button.owl-prev {
  left: 8px;
}
html.fcd body .other-prod-class .owl-carousel .owl-nav button.owl-next {
  right: 8px;
}
html.fcd .other-prod-class .owl-carousel .owl-dots .owl-dot span {
  border-radius: 0;
}

/* ---- totals tables (cart totals + checkout review): block rows, label left / value right ---- */
html.fcd :is(.cart_totals, #order_review) table.shop_table {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: none;
}
html.fcd :is(.cart_totals, #order_review) table.shop_table :is(thead, tbody, tfoot) {
  display: block;
}
html.fcd :is(.cart_totals, #order_review) table.shop_table tr {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  border: 0;
  background: none;
}
html.fcd :is(.cart_totals, #order_review) table.shop_table :is(th, td) {
  display: block;
  width: auto;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 1.4;
  text-align: right;
}
html.fcd :is(.cart_totals, #order_review) table.shop_table td::before {
  display: none; /* Storefront mobile data-title label; the row already has its th */
}
html.fcd :is(.cart_totals, #order_review) table.shop_table tr:not(:first-child) {
  border-top: 1px solid var(--line);
}
html.fcd :is(.cart_totals, #order_review) table.shop_table tfoot tr:first-child {
  border-top: 1px solid var(--line);
}
html.fcd :is(.cart_totals, #order_review) table.shop_table :is(tbody, tfoot) th {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-align: left;
  text-transform: uppercase;
}
/* shipping row: label above, options below */
html.fcd :is(.cart_totals, #order_review) table.shop_table tr.shipping :is(th, td) {
  flex: 1 1 100%;
  text-align: left;
}
html.fcd :is(.cart_totals, #order_review) table.shop_table tr.shipping th {
  padding-bottom: 0;
}
html.fcd :is(.cart_totals, #order_review) table.shop_table tr.shipping td {
  padding-top: 8px;
}
html.fcd :is(.cart_totals, #order_review) .woocommerce-shipping-destination {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
html.fcd :is(.cart_totals, #order_review) .shipping-calculator-button {
  color: var(--bronze-3);
  font-weight: 700;
}
/* total */
html.fcd :is(.cart_totals, #order_review) table.shop_table tr.order-total {
  margin-top: 4px;
  border-top: 2px solid var(--ink);
}
html.fcd :is(.cart_totals, #order_review) table.shop_table tr.order-total th {
  color: var(--ink);
  font-size: var(--fs-sm);
}
html.fcd :is(.cart_totals, #order_review) table.shop_table tr.order-total td {
  text-align: right;
}
html.fcd :is(.cart_totals, #order_review) table.shop_table tr.order-total td strong {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1.1;
}
html.fcd :is(.cart_totals, #order_review) table.shop_table tr.order-total td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 400;
}

/* selectable boxes: shipping options and payment methods (radio inside, whole box is the label) */
html.fcd :is(.cart_totals, #order_review) ul.woocommerce-shipping-methods,
html.fcd #payment ul.wc_payment_methods {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
}
html.fcd :is(.cart_totals, #order_review) ul.woocommerce-shipping-methods li,
html.fcd #payment ul.wc_payment_methods > li {
  position: relative;
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
html.fcd :is(.cart_totals, #order_review) ul.woocommerce-shipping-methods li:hover,
html.fcd #payment ul.wc_payment_methods > li:hover {
  border-color: var(--field-line);
}
html.fcd :is(.cart_totals, #order_review) ul.woocommerce-shipping-methods li:has(input:checked),
html.fcd #payment ul.wc_payment_methods > li:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
html.fcd :is(.cart_totals, #order_review) ul.woocommerce-shipping-methods li input[type='radio'],
html.fcd #payment ul.wc_payment_methods > li.wc_payment_method > input[type='radio']:first-child {
  position: absolute;
  top: 17px;
  left: 16px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}
html.fcd :is(.cart_totals, #order_review) ul.woocommerce-shipping-methods li label,
html.fcd #payment ul.wc_payment_methods > li > label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  padding: 14px 16px 14px 46px;
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}
/* the single shipping method case (no radio) */
html.fcd :is(.cart_totals, #order_review) ul.woocommerce-shipping-methods li:not(:has(input)) label {
  padding-left: 16px;
}


/* main-2.0.24.css hides `tfoot tr:nth-child(2), tfoot tr:nth-child(3) { display: none !important }` site-wide, which removes the
   shipping and the total row from the checkout review table. The total must be visible before ordering. */
html.fcd #order_review table.shop_table tfoot tr:is(:nth-child(2), :nth-child(3)) {
  display: flex !important;
}

/* Storefront icons.css hides the payment radio (clip) and draws an icon-font disc as label::before; the icon font is missing
   here (black discs). Show the native radio instead. */
html.fcd #payment ul.wc_payment_methods > li.wc_payment_method > input[type='radio']:first-child {
  clip: auto;
  clip-path: none;
  width: 18px;
  height: 18px;
  overflow: visible;
  opacity: 1;
}
html.fcd #payment ul.wc_payment_methods > li > label::before,
html.fcd #payment ul.wc_payment_methods > li > label::after {
  display: none;
}

/* cart: proceed to checkout */
html.fcd .woocommerce-cart #content .wc-proceed-to-checkout {
  padding: 20px 0 0;
}
html.fcd .woocommerce-cart #content .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin: 0;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
}
html.fcd .woocommerce-cart #content .wc-proceed-to-checkout a.checkout-button:hover {
  border-color: var(--bronze-3);
  background: var(--bronze-3);
}

/* ================= CHECKOUT ================= */
html.fcd .woocommerce-checkout #content :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) .woocommerce-info {
  margin-bottom: 12px;
}
/* login + coupon drop-down forms: bordered panels */
html.fcd .woocommerce-checkout #content :is(form.woocommerce-form-login, form.checkout_coupon) {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--bronze);
  border-radius: 0;
  background: #fff;
}
html.fcd .woocommerce-checkout #content form.woocommerce-form-login > p:first-child {
  margin: 0 0 20px;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.55;
}
html.fcd .woocommerce-checkout #content form.checkout_coupon .clear {
  display: none;
}
html.fcd .woocommerce-checkout #content form.checkout_coupon .form-row {
  float: none;
  display: inline-block;
  margin: 0;
  padding: 0;
  vertical-align: top;
}
html.fcd .woocommerce-checkout #content form.checkout_coupon .form-row-first {
  width: calc(100% - 232px);
}
html.fcd .woocommerce-checkout #content form.checkout_coupon .form-row-last {
  width: 220px;
  margin-left: 8px;
}
html.fcd .woocommerce-checkout #content form.checkout_coupon #coupon_code {
  width: 100%;
}
html.fcd .woocommerce-checkout #content form.checkout_coupon .form-row-last .button {
  width: 100%;
}
@media (max-width: 640px) {
  html.fcd .woocommerce-checkout #content form.checkout_coupon .form-row:is(.form-row-first, .form-row-last) {
    display: block;
    width: 100%;
    margin: 0 0 12px;
  }
}

html.fcd .woocommerce-checkout #content form.woocommerce-form-login .clear {
  display: none;
}
html.fcd .woocommerce-checkout #content form.woocommerce-form-login .form-row {
  float: none;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
}
@media (min-width: 641px) {
  html.fcd .woocommerce-checkout #content form.woocommerce-form-login .form-row:is(.form-row-first, .form-row-last) {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
  }
  html.fcd .woocommerce-checkout #content form.woocommerce-form-login .form-row-last {
    margin-left: 12px;
  }
}
html.fcd .woocommerce-checkout #content form.woocommerce-form-login :is(.lost_password a, .showlogin) {
  color: var(--bronze-3);
  font-weight: 700;
}
html.fcd .woocommerce-checkout #content .woocommerce-form-login__submit {
  margin-right: 16px;
}
/* AIOWPS captcha inside the login form (plugin text is English: content finding) */
html.fcd .woocommerce-checkout #content .aiowps-captcha-equation strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: var(--fs-md);
}
html.fcd .woocommerce-checkout #content input.aiowps-captcha-answer {
  width: 80px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  font-size: var(--fs-md);
}
html.fcd .woocommerce-checkout #content .password-input {
  display: block;
  position: relative;
}
html.fcd .woocommerce-checkout #content .password-input input {
  padding-right: 52px;
}
html.fcd .woocommerce-checkout #content .show-password-input {
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: none;
}
html.fcd .woocommerce-checkout #content .show-password-input::after {
  color: var(--muted);
}

/* two columns: details left, order panel right */
@media (min-width: 1024px) {
  html.fcd .woocommerce-checkout #content form.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-rows: auto 1fr;
    gap: 0 40px;
    align-items: start;
  }
  html.fcd .woocommerce-checkout #content form.woocommerce-checkout #customer_details {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  html.fcd .woocommerce-checkout #content form.woocommerce-checkout #order_review_heading {
    grid-column: 2;
    grid-row: 1;
  }
  html.fcd .woocommerce-checkout #content form.woocommerce-checkout #order_review {
    grid-column: 2;
    grid-row: 2;
  }
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout #customer_details {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout #customer_details :is(.col-1, .col-2) {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
/* section headings */
html.fcd .woocommerce-checkout #content :is(.woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3, #order_review_heading, .woocommerce-order-details__title, .woocommerce-column__title, .woocommerce-order-downloads__title) {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
html.fcd .woocommerce-checkout #content .woocommerce-billing-fields > h3 {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
/* ship to a different address: a selectable box */
html.fcd .woocommerce-checkout #content #ship-to-different-address {
  margin: 8px 0 24px;
  padding: 0;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  font-style: normal;
  letter-spacing: var(--ls-label);
  line-height: 1.4;
  text-transform: uppercase;
}
html.fcd .woocommerce-checkout #content #ship-to-different-address:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
html.fcd .woocommerce-checkout #content #ship-to-different-address label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 16px;
  color: var(--ink);
  cursor: pointer;
}
html.fcd .woocommerce-checkout #content #ship-to-different-address input[type='checkbox'] {
  flex: none;
  position: static;
  top: 0;
  transform: none; /* the old rule centres it with translateY(-50%) for absolute positioning */
  width: 20px;
  height: 20px;
  margin: 0;
}
html.fcd .woocommerce-checkout #content .woocommerce-additional-fields {
  margin-top: 8px;
}

/* field grid: first/last share a row, everything else spans */
html.fcd .woocommerce-checkout #content :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper, .woocommerce-account-fields .create-account) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
html.fcd .woocommerce-checkout #content :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper, .woocommerce-account-fields .create-account) .clear {
  display: none;
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout .form-row {
  float: none;
  width: auto;
  margin: 0 0 18px;
  padding: 0;
  grid-column: 1 / -1;
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout .form-row:is(.form-row-first, .form-row-last) {
  grid-column: auto;
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout .form-row :is(input.input-text, select, textarea, .woocommerce-input-wrapper, .select2-container) {
  width: 100%;
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout .form-row .woocommerce-input-wrapper {
  display: block;
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout .form-row select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e0f11' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  padding-right: 40px;
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout .form-row.woocommerce-validated :is(input.input-text, select) {
  border-color: var(--field-line);
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout .form-row.woocommerce-invalid label {
  color: var(--danger);
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout .form-row :is(.optional) {
  color: var(--muted);
  font-weight: 400;
}
html.fcd .woocommerce-checkout #content .form-row abbr.required {
  border: 0;
  text-decoration: none;
}
/* checkboxes (terms, remember me, create account) */
html.fcd .woocommerce-checkout #content :is(.woocommerce-form__label-for-checkbox, .woocommerce-form__label-for-checkbox.checkbox) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
html.fcd .woocommerce-checkout #content .woocommerce-form__input-checkbox {
  flex: none;
  position: static;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

/* order review panel */
html.fcd .woocommerce-checkout #content form.woocommerce-checkout #order_review_heading {
  float: none;
  width: auto;
  margin: 0;
  padding: 24px 24px 12px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--bronze);
  border-bottom: 0;
  background: #fff;
}
html.fcd .woocommerce-checkout #content form.woocommerce-checkout #order_review {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 24px 24px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table thead th {
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
  background: none;
  color: var(--muted);
  text-align: left;
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table thead tr {
  border-top: 0;
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table thead th.product-total {
  text-align: right;
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table tbody td {
  padding: 14px 0;
  font-size: var(--fs-sm);
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table tbody td.product-name {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  font-weight: 700;
  overflow-wrap: anywhere;
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table tbody td.product-total {
  flex: none;
  white-space: nowrap;
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table tbody tr:first-child {
  border-top: 0;
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table .product-quantity {
  color: var(--muted);
  font-weight: 700;
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table :is(dl, .variation) {
  margin: 6px 0 0;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 400;
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table :is(dt, dd) {
  display: inline;
  margin: 0;
}
html.fcd .woocommerce-checkout #content #order_review table.shop_table dd p {
  display: inline;
  margin: 0;
}

/* payment */
html.fcd .woocommerce-checkout #content #payment {
  margin-top: 24px;
  border: 0;
  border-radius: 0;
  background: none;
}
html.fcd .woocommerce-checkout #content #payment ul.wc_payment_methods {
  padding: 0;
}
html.fcd #payment ul.wc_payment_methods > li > label img {
  width: auto;
  max-width: 120px;
  max-height: 24px;
  margin: 0 0 0 auto;
  font-size: 0; /* hides the alt text when the logo URL fails (HeidiPay logo is broken, content finding) */
}
html.fcd #payment div.payment_box {
  margin: 0;
  padding: 0 16px 16px 46px;
  background: none;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
html.fcd #payment div.payment_box::before {
  display: none; /* core draws a speech-bubble arrow */
}
html.fcd #payment div.payment_box p {
  margin: 0;
}
html.fcd #payment div.payment_box a {
  color: var(--bronze-3);
  font-weight: 700;
}
html.fcd #payment .place-order {
  padding: 8px 0 0;
  margin: 0;
}
html.fcd #payment .woocommerce-terms-and-conditions-wrapper {
  margin: 0 0 20px;
}
html.fcd #payment .woocommerce-privacy-policy-text {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
html.fcd #payment .woocommerce-privacy-policy-text p {
  margin: 0;
}
html.fcd #payment .woocommerce-terms-and-conditions-checkbox-text {
  font-size: var(--fs-sm);
}
html.fcd #payment .validate-required .woocommerce-form__label-for-checkbox {
  padding: 14px 16px;
  border: 1px solid var(--line);
}
html.fcd .woocommerce-checkout #content #payment #place_order {
  display: flex;
  float: none;
  width: 100%;
  min-height: 52px;
  margin: 0;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
html.fcd .woocommerce-checkout #content #payment #place_order:hover {
  border-color: var(--bronze-3);
  background: var(--bronze-3);
}

/* ================= ORDER RECEIVED (standard WooCommerce markup; not testable without an order) ================= */
html.fcd .woocommerce-order-received #content .woocommerce-thankyou-order-received {
  margin: 0 0 24px;
  padding: 20px 24px;
  border-left: 4px solid var(--ok);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 700;
}
html.fcd .woocommerce-order-received #content ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-top: 4px solid var(--bronze);
  background: var(--line);
}
html.fcd .woocommerce-order-received #content ul.woocommerce-order-overview li {
  float: none;
  margin: 0;
  padding: 16px 20px;
  border: 0;
  background: #fff;
  color: var(--muted);
}
html.fcd .woocommerce-order-received #content ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: var(--fs-md);
  letter-spacing: 0;
  text-transform: none;
}
html.fcd .woocommerce-order-received #content :is(.woocommerce-order-details, .woocommerce-customer-details, .wc-bacs-bank-details-heading) {
  margin: 0 0 32px;
}
html.fcd .woocommerce-order-received #content table.woocommerce-table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: 0;
}
html.fcd .woocommerce-order-received #content table.woocommerce-table :is(th, td) {
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-md);
  text-align: left;
}
html.fcd .woocommerce-order-received #content table.woocommerce-table thead th {
  border-top: 0;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
}
html.fcd .woocommerce-order-received #content table.woocommerce-table tfoot th {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
}
html.fcd .woocommerce-order-received #content table.woocommerce-table :is(.product-total, tfoot td) {
  text-align: right;
}
html.fcd .woocommerce-order-received #content table.woocommerce-table .product-name a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
html.fcd .woocommerce-order-received #content .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
html.fcd .woocommerce-order-received #content .woocommerce-columns--addresses :is(.col-1, .col-2) {
  float: none;
  width: auto;
  max-width: none;
}
html.fcd .woocommerce-order-received #content address {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-style: normal;
  line-height: 1.6;
}
html.fcd .woocommerce-order-received #content ul.wc-bacs-bank-details {
  display: grid;
  gap: 4px;
  margin: 0 0 24px;
  padding: 20px;
  list-style: none;
  border: 1px solid var(--line);
  background: #fff;
}

/* ================= SMALL SCREENS ================= */
@media (max-width: 1023px) {
  html.fcd .woocommerce-cart #content .cart-collaterals {
    margin-top: 8px;
  }
  html.fcd .woocommerce-checkout #content form.woocommerce-checkout #order_review_heading {
    margin-top: 32px;
  }
}
@media (max-width: 768px) {
  /* Storefront responsive tables: every row is a block with data-title labels; rebuild it as a compact card row */
  html.fcd .woocommerce-cart #content table.shop_table.cart thead {
    display: none;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tbody tr.cart_item {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tbody tr.cart_item:first-child {
    border-top: 0;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tr.cart_item td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tr.cart_item td::before {
    display: none;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tr.cart_item td.product-thumbnail {
    grid-column: 1;
    grid-row: 1 / span 4;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tr.cart_item td.product-name {
    grid-column: 2;
    padding-right: 52px;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tr.cart_item td.product-remove {
    position: absolute;
    top: 14px;
    right: 0;
    width: auto;
    padding: 0;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tr.cart_item td:is(.product-price, .product-quantity, .product-subtotal) {
    grid-column: 2;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tr.cart_item td:is(.product-price, .product-quantity, .product-subtotal)::before {
    display: block;
    float: none;
    content: attr(data-title);
    flex: 0 0 auto;
    width: auto;
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tr.cart_item td:is(.product-price, .product-quantity, .product-subtotal) > * {
    margin-left: auto;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart a.remove {
    width: 44px;
    height: 44px;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart tr:has(> td.actions) {
    display: block;
  }
  html.fcd .woocommerce-cart #content table.shop_table.cart td.actions {
    display: block;
    padding-top: 20px;
    text-align: left;
  }
  html.fcd .woocommerce-cart #content td.actions .coupon {
    float: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 0 12px;
  }
  html.fcd .woocommerce-cart #content td.actions .coupon #coupon_code {
    width: 100%;
  }
  html.fcd .woocommerce-cart #content td.actions > button[name='update_cart'],
  html.fcd .woocommerce-cart #content td.actions .coupon button {
    float: none;
    display: flex;
    width: 100%;
  }
  html.fcd .woocommerce-cart #content .cart-collaterals .cart_totals {
    padding: 20px 16px;
  }
}
@media (max-width: 640px) {
  html.fcd .woocommerce-checkout #content :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper, .woocommerce-account-fields .create-account) {
    grid-template-columns: minmax(0, 1fr);
  }
  html.fcd .woocommerce-checkout #content form.woocommerce-checkout .form-row:is(.form-row-first, .form-row-last) {
    grid-column: 1 / -1;
  }
  html.fcd .woocommerce-checkout #content form.woocommerce-checkout :is(#order_review_heading) {
    padding: 20px 16px 12px;
  }
  html.fcd .woocommerce-checkout #content form.woocommerce-checkout #order_review {
    padding: 0 16px 20px;
  }
  html.fcd .woocommerce-checkout #content form:is(.woocommerce-form-login, .checkout_coupon) {
    padding: 20px 16px;
  }
  html.fcd .woocommerce-cart #content :is(.cart-empty, .return-to-shop) {
    margin-left: 0;
    margin-right: 0;
  }
  html.fcd .woocommerce-cart #content .return-to-shop .button {
    min-width: 0;
    width: 100%;
  }
  html.fcd body .other-prod-class .owl-carousel .owl-nav button.owl-prev {
    left: 0;
  }
  html.fcd body .other-prod-class .owl-carousel .owl-nav button.owl-next {
    right: 0;
  }
}
