/* ============================================================
   HUMITEC RUNTIME BRAND SYSTEM
   Canonical UI tokens and final commerce component rules.

   Visual source: homepage + product detail pages.
   Human-readable specification: ../../DESIGN-SYSTEM.md
   Machine-readable reference: ../../design-tokens.json

   This file loads after main.css. New cart, checkout and order-confirmation
   styling belongs here so the funnel no longer grows through override layers.
============================================================ */

:root {
  /* Type */
  --hm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hm-weight-regular: 400;
  --hm-weight-medium: 500;
  --hm-weight-semibold: 600;
  --hm-weight-bold: 700;
  --hm-weight-extrabold: 800;
  --hm-text-xs: .75rem;
  --hm-text-sm: .875rem;
  --hm-text-md: 1rem;
  --hm-text-lg: 1.125rem;
  --hm-text-xl: 1.25rem;
  --hm-text-commerce-title: clamp(1.5rem, 2.5vw, 1.9rem);

  /* Brand */
  --hm-navy: #172554;
  --hm-blue: #1e3a8a;
  --hm-blue-action: #1d4ed8;
  --hm-cyan: #06b6d4;
  --hm-orange: #f97316;
  --hm-orange-hover: #ea580c;
  --hm-green: #16a34a;
  --hm-red: #b91c1c;

  /* Text and surfaces */
  --hm-heading: #111827;
  --hm-heading-cool: #0f172a;
  --hm-body: #1f2937;
  --hm-body-soft: #374151;
  --hm-muted: #64748b;
  --hm-quiet: #94a3b8;
  --hm-page: #f9fafb;
  --hm-surface: #ffffff;
  --hm-surface-subtle: #f8fafc;
  --hm-surface-blue: #eff6ff;
  --hm-surface-success: #f0fdf4;
  --hm-surface-danger: #fef2f2;
  --hm-border: #dfe5ee;
  --hm-border-soft: #edf1f6;
  --hm-border-input: #d1d9e5;

  /* Shape, elevation and rhythm */
  --hm-radius-control: .55rem;
  --hm-radius-card: .85rem;
  --hm-radius-panel: 1rem;
  --hm-radius-pill: 9999px;
  --hm-shadow-card: 0 1px 4px rgba(15, 23, 42, .05);
  --hm-shadow-float: 0 12px 30px rgba(15, 23, 42, .07);
  --hm-control-height: 3rem;
  --hm-button-height: 3.25rem;
  --hm-focus: 0 0 0 3px rgba(6, 182, 212, .2);
  --hm-content-max: 1280px;
}

body {
  font-family: var(--hm-font-sans);
  background: var(--hm-page);
  color: var(--hm-body);
}

/* One control language for the complete commerce funnel. */
.woocommerce-cart .page-content--wc,
.woocommerce-checkout .page-content--wc {
  padding-top: 1.5rem !important;
}

.woocommerce-cart .page-content--wc a:focus-visible,
.woocommerce-cart .page-content--wc button:focus-visible,
.woocommerce-cart .page-content--wc input:focus-visible,
.woocommerce-cart .page-content--wc summary:focus-visible,
.woocommerce-checkout .page-content--wc a:focus-visible,
.woocommerce-checkout .page-content--wc button:focus-visible,
.woocommerce-checkout .page-content--wc input:focus-visible,
.woocommerce-checkout .page-content--wc select:focus-visible,
.woocommerce-checkout .page-content--wc textarea:focus-visible {
  outline: 0;
  box-shadow: var(--hm-focus);
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
  border-radius: var(--hm-radius-control);
  font-family: var(--hm-font-sans);
  font-size: var(--hm-text-sm);
  font-weight: var(--hm-weight-bold);
  letter-spacing: 0;
  text-transform: none;
}

/* Progress is a utility, not a second page hero. */
.woocommerce-cart .hm-commerce-steps,
.woocommerce-checkout .hm-commerce-steps,
.woocommerce-order-received .hm-commerce-steps {
  width: min(100%, 44rem);
  margin: 0 0 1.5rem;
}

.hm-commerce-steps li,
.hm-commerce-steps li > a {
  gap: .4rem;
  color: #7c8799;
  font-size: var(--hm-text-xs);
  font-weight: var(--hm-weight-bold);
}

.hm-commerce-steps__number {
  width: 2rem;
  height: 2rem;
  border-color: var(--hm-border);
  background: var(--hm-surface);
  box-shadow: 0 0 0 4px var(--hm-page);
}

.hm-commerce-steps ol::before {
  top: 1rem;
  background: var(--hm-border);
}

.hm-commerce-steps li.is-active { color: var(--hm-blue); }
.hm-commerce-steps li.is-active .hm-commerce-steps__number {
  border-color: var(--hm-blue-action);
  background: var(--hm-blue-action);
}
.hm-commerce-steps li.is-complete,
.hm-commerce-steps li.is-complete > a { color: #166534; }
.hm-commerce-steps li.is-complete .hm-commerce-steps__number {
  border-color: #86efac;
  background: var(--hm-surface-success);
  color: var(--hm-green);
}
.hm-commerce-steps li.is-error { color: var(--hm-red); }
.hm-commerce-steps li.is-error .hm-commerce-steps__number {
  border-color: #fecaca;
  background: var(--hm-surface-danger);
  color: var(--hm-red);
}

/* Woo notices: quiet information first, status colour second. */
.woocommerce .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce .woocommerce-notices-wrapper .woocommerce-error,
.woocommerce .cart-empty.woocommerce-info {
  gap: .65rem;
  margin-bottom: 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface);
  color: var(--hm-body-soft);
  box-shadow: var(--hm-shadow-card);
  font-size: var(--hm-text-sm);
}
.woocommerce .woocommerce-message { border-color: #bbf7d0; }
.woocommerce .woocommerce-info,
.woocommerce .cart-empty.woocommerce-info { border-color: #bae6fd; }
.woocommerce .woocommerce-error { border-color: #fecaca; }

/* Shared card language: same border, radius and elevation as product pages. */
.hm-cart-panel,
.woocommerce-cart .hm-cart-summary,
.hm-checkout__aside,
.woocommerce-order-received .hm-receipt-head,
.woocommerce-order-received .hm-receipt-aside,
.woocommerce-order-received .hm-receipt-main table.order_details.shop_table,
.woocommerce-order-received .hm-receipt-main .woocommerce-columns--addresses address {
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-card);
  background: var(--hm-surface);
  box-shadow: var(--hm-shadow-card);
}

/* ------------------------------------------------------------
   Cart
------------------------------------------------------------ */
.hm-cart-panel { overflow: hidden; }
.hm-cart-panel__heading,
.hm-cart-summary__heading {
  min-height: 3.75rem;
  padding: 1rem 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--hm-border-soft);
}
.hm-cart-panel__heading h2,
.hm-cart-summary__heading h2 {
  color: var(--hm-navy);
  font-size: var(--hm-text-lg);
  font-weight: var(--hm-weight-extrabold);
  letter-spacing: -.015em;
}
.hm-cart-panel__heading > span {
  background: var(--hm-surface-blue);
  color: var(--hm-blue-action);
}
.hm-cart-summary__heading svg { color: var(--hm-blue-action); }

.woocommerce .hm-cart-table.shop_table thead th {
  background: var(--hm-surface-subtle);
  color: var(--hm-muted);
}
.woocommerce .hm-cart-table.shop_table tbody td {
  border-color: var(--hm-border-soft);
  background: var(--hm-surface);
}
.hm-cart-table .product-name a,
.hm-cart-table .product-price,
.hm-cart-table .product-subtotal { color: var(--hm-heading-cool); }

.hm-qty {
  grid-template-columns: 2.75rem minmax(3rem, 1fr) 2.75rem;
  min-height: 3rem;
  border-color: var(--hm-border-input);
  border-radius: var(--hm-radius-control);
}
.hm-qty__button {
  min-width: 2.75rem;
  min-height: 3rem;
  background: var(--hm-surface-subtle);
}
.hm-qty__button:hover { background: var(--hm-surface-blue); color: var(--hm-blue-action); }
.woocommerce-cart .hm-qty .quantity .qty { min-height: 3rem; }
.woocommerce .hm-cart-table a.remove {
  width: 2.75rem;
  height: 2.75rem;
}

.woocommerce .hm-cart-table.shop_table tbody tr.hm-cart-table__actions-row td.actions {
  border-color: var(--hm-border);
  background: var(--hm-surface-subtle);
}
.hm-cart-coupon summary { color: var(--hm-blue-action); }

.woocommerce-cart .hm-cart-summary {
  overflow: hidden;
  padding: 0;
}
.woocommerce-cart .hm-cart-summary table.shop_table {
  padding: .75rem 1.25rem .35rem;
}
.woocommerce-cart .hm-cart-summary table.shop_table th,
.woocommerce-cart .hm-cart-summary table.shop_table td {
  color: var(--hm-muted);
  font-size: var(--hm-text-sm);
}
.woocommerce-cart .hm-cart-summary table.shop_table .order-total th,
.woocommerce-cart .hm-cart-summary table.shop_table .order-total td {
  color: var(--hm-heading-cool);
  font-size: var(--hm-text-md);
}
.woocommerce-cart .hm-cart-summary table.shop_table .order-total .amount {
  color: var(--hm-navy);
  font-size: var(--hm-text-xl);
}
.woocommerce-cart .hm-cart-summary .wc-proceed-to-checkout {
  padding: .65rem 1.25rem 0;
}
.woocommerce-cart .hm-cart-summary .wc-proceed-to-checkout a.checkout-button {
  min-height: var(--hm-button-height);
  padding: .8rem 1rem;
  border-radius: var(--hm-radius-control);
  background: var(--hm-orange) !important;
  box-shadow: none;
  font-size: var(--hm-text-md);
}
.woocommerce-cart .hm-cart-summary .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--hm-orange-hover) !important;
}
.woocommerce-cart .hm-cart-summary .hm-trust {
  padding: 1rem 1.25rem 1.25rem;
  border-color: var(--hm-border-soft);
}

/* ------------------------------------------------------------
   Checkout
------------------------------------------------------------ */
@media (min-width: 1020px) {
  .hm-checkout {
    grid-template-columns: minmax(0, 1fr) 24rem;
    column-gap: 2rem;
  }
}

.hm-checkout__secure {
  min-height: 2.75rem;
  margin-bottom: 1.5rem;
  padding: .65rem .85rem;
  border: 1px solid #bbf7d0;
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface-success);
  color: #166534;
  font-size: var(--hm-text-sm);
  box-shadow: none;
}

.hm-checkout__section-heading h2,
.woocommerce-checkout .hm-checkout__main h3 {
  color: var(--hm-navy);
  font-size: var(--hm-text-lg);
  font-weight: var(--hm-weight-extrabold);
  letter-spacing: -.015em;
}

.woocommerce form .form-row { margin-bottom: .9rem; }
.woocommerce form .form-row label {
  margin-bottom: .3rem;
  color: var(--hm-body-soft);
  font-size: .78rem;
  font-weight: var(--hm-weight-bold);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single,
.woocommerce-account .woocommerce-Input.input-text {
  min-height: var(--hm-control-height);
  padding: .72rem .85rem;
  border-color: var(--hm-border-input);
  border-radius: var(--hm-radius-control);
  color: var(--hm-heading-cool);
  font-size: .9375rem;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-account .woocommerce-Input.input-text:focus {
  border-color: var(--hm-cyan);
  box-shadow: var(--hm-focus);
}
.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid .select2-selection {
  border-color: #dc2626;
}
.woocommerce-checkout .woocommerce-invalid input.input-text:focus,
.woocommerce-checkout .woocommerce-invalid .select2-selection:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .14);
}

.hm-checkout__aside {
  overflow: hidden;
  margin: 0;
  padding: 0 0 1.1rem;
}
.hm-checkout__summary-heading {
  min-height: 3.75rem;
  padding: 1rem 1.15rem;
  border: 0;
  border-bottom: 1px solid var(--hm-border-soft);
}
.hm-checkout__summary-heading #order_review_heading {
  color: var(--hm-navy);
  font-size: var(--hm-text-lg);
  font-weight: var(--hm-weight-extrabold);
  letter-spacing: -.015em;
  text-transform: none;
}
.hm-checkout__summary-heading a {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: flex-end;
  color: var(--hm-blue-action);
  font-size: var(--hm-text-xs);
  font-weight: var(--hm-weight-bold);
}

.woocommerce-checkout #ship-to-different-address .woocommerce-form__label-for-checkbox,
.woocommerce-checkout .woocommerce-account-fields .woocommerce-form__label-for-checkbox,
.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .5rem;
  padding: .25rem 0;
  cursor: pointer;
}
.woocommerce-checkout .woocommerce-account-fields label.woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
}
.woocommerce-checkout #ship-to-different-address .woocommerce-form__label-for-checkbox input[type="checkbox"],
.woocommerce-checkout .woocommerce-account-fields .woocommerce-form__label-for-checkbox input[type="checkbox"],
.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}

.woocommerce-checkout #order_review .hm-order-review.shop_table {
  padding-inline: 1.15rem;
}
.woocommerce-checkout #order_review .hm-order-review.shop_table tbody td,
.woocommerce-checkout #order_review .hm-order-review.shop_table tfoot th,
.woocommerce-checkout #order_review .hm-order-review.shop_table tfoot td {
  border-color: var(--hm-border-soft);
}
.hm-order-product__details strong { color: var(--hm-heading-cool); }
.woocommerce-checkout #order_review .hm-order-review.shop_table .order-total .amount {
  color: var(--hm-navy);
  font-size: var(--hm-text-xl);
}

.woocommerce #payment ul.payment_methods {
  margin: .85rem 1.15rem 0;
  padding: .25rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface);
}
.woocommerce #payment ul.payment_methods li {
  border-radius: var(--hm-radius-control);
  color: var(--hm-body-soft);
  font-size: var(--hm-text-sm);
}
.woocommerce #payment div.payment_box {
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface-blue);
  color: var(--hm-body-soft);
}
.woocommerce #payment div.payment_box::before { border-bottom-color: var(--hm-surface-blue); }
.woocommerce #payment .form-row.place-order {
  padding: 1rem 1.15rem 0;
}
.woocommerce #payment #place_order {
  min-height: var(--hm-button-height);
  padding: .8rem 1rem;
  border: 0;
  border-radius: var(--hm-radius-control);
  background: var(--hm-orange) !important;
  box-shadow: none;
  font-size: var(--hm-text-md);
}
.woocommerce #payment #place_order:hover { background: var(--hm-orange-hover) !important; }

.woocommerce-checkout .hm-checkout__aside .hm-trust {
  margin: 1rem 1.15rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--hm-border-soft);
}

/* ------------------------------------------------------------
   Order confirmation
------------------------------------------------------------ */
.woocommerce-order-received .hm-thanks {
  max-width: 72rem;
  margin: 0 auto;
}

.hm-receipt-empty {
  display: flex;
  max-width: 44rem;
  align-items: flex-start;
  gap: 1rem;
  margin: 1rem auto 2rem;
  padding: 1.5rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-card);
  background: var(--hm-surface);
  box-shadow: var(--hm-shadow-card);
}
.hm-receipt-empty__mark {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface-blue);
  color: var(--hm-blue-action);
}
.hm-receipt-empty__mark svg { width: 1.35rem; height: 1.35rem; }
.hm-receipt-empty__content { min-width: 0; }
.hm-receipt-empty__title {
  margin: 0;
  color: var(--hm-navy);
  font-size: var(--hm-text-commerce-title);
  font-weight: var(--hm-weight-extrabold);
  letter-spacing: -.025em;
  line-height: 1.18;
  text-wrap: balance;
}
.hm-receipt-empty__content > p {
  max-width: 35rem;
  margin: .55rem 0 0;
  color: var(--hm-muted);
  font-size: var(--hm-text-sm);
  line-height: 1.55;
  text-wrap: pretty;
}
.hm-receipt-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: 1rem;
}

.woocommerce-order-received form.woocommerce-verify-email {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  max-width: 44rem;
  align-items: end;
  margin: -1rem auto 2rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-card);
  background: var(--hm-surface);
  box-shadow: var(--hm-shadow-card);
}
.woocommerce-order-received form.woocommerce-verify-email > p:first-of-type { display: none; }
.woocommerce-order-received form.woocommerce-verify-email .form-row {
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
}
.woocommerce-order-received form.woocommerce-verify-email label {
  display: block;
  margin: 0 0 .3rem;
  color: var(--hm-body-soft);
  font-size: .78rem;
  font-weight: var(--hm-weight-bold);
}
.woocommerce-order-received form.woocommerce-verify-email input.input-text {
  width: 100%;
  min-height: var(--hm-control-height);
  padding: .72rem .85rem;
  border: 1px solid var(--hm-border-input);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface);
  color: var(--hm-heading-cool);
  font-size: .9375rem;
}
.woocommerce-order-received form.woocommerce-verify-email input.input-text:focus {
  border-color: var(--hm-cyan);
  outline: 0;
  box-shadow: var(--hm-focus);
}
.woocommerce-order-received form.woocommerce-verify-email button.button {
  min-height: var(--hm-button-height);
  margin: 0;
  padding: .8rem 1.15rem;
  border: 0;
  border-radius: var(--hm-radius-control);
  background: var(--hm-blue-action) !important;
  color: #fff !important;
  box-shadow: none;
  font-size: var(--hm-text-sm);
}
.woocommerce-order-received form.woocommerce-verify-email button.button:hover {
  background: var(--hm-blue) !important;
}

.woocommerce-order-received .hm-receipt-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  overflow: hidden;
  padding: 1.5rem;
  color: var(--hm-body);
}
.woocommerce-order-received .hm-receipt-head--failed {
  border-color: var(--hm-border);
  background: var(--hm-surface);
  box-shadow: var(--hm-shadow-card);
}
.hm-receipt-head__identity {
  gap: .85rem;
  align-items: flex-start;
}
.hm-receipt-head__mark {
  width: 2.75rem;
  height: 2.75rem;
  flex-basis: 2.75rem;
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface-success);
  color: var(--hm-green);
}
.hm-receipt-head--failed .hm-receipt-head__mark {
  background: var(--hm-surface-danger);
  color: var(--hm-red);
}
.hm-receipt-head__mark svg { width: 1.35rem; height: 1.35rem; }
.hm-receipt-head__status {
  min-height: auto;
  margin-bottom: .45rem;
  padding: .22rem .55rem;
  border-radius: var(--hm-radius-pill);
  background: var(--hm-surface-success);
  color: #166534;
  font-size: .7rem;
  font-weight: var(--hm-weight-bold);
}
.hm-receipt-head__status--open {
  background: var(--hm-surface-blue);
  color: var(--hm-blue);
}
.hm-receipt-head__status--failed {
  background: var(--hm-surface-danger);
  color: var(--hm-red);
}
.hm-receipt-head__title {
  max-width: 38rem;
  color: var(--hm-navy);
  font-size: var(--hm-text-commerce-title);
  font-weight: var(--hm-weight-extrabold);
  letter-spacing: -.025em;
  line-height: 1.18;
}
.hm-receipt-head__lead {
  max-width: 42rem;
  margin-top: .55rem;
  color: var(--hm-muted);
  font-size: var(--hm-text-sm);
  line-height: 1.55;
}
.hm-receipt-head__lead strong { color: var(--hm-heading-cool); }
.hm-receipt-head__amount {
  min-width: 10rem;
  align-self: center;
  padding-left: 1.5rem;
  border-left: 1px solid var(--hm-border);
  text-align: right;
}
.hm-receipt-head__amount > span {
  color: var(--hm-muted);
  font-size: var(--hm-text-xs);
}
.hm-receipt-head__amount > strong,
.hm-receipt-head__amount .woocommerce-Price-amount {
  color: var(--hm-navy);
  font-size: 1.5rem;
  font-weight: var(--hm-weight-extrabold);
}
.hm-receipt-meta {
  gap: .75rem;
  padding: 1rem 0 0 3.6rem;
  border-color: var(--hm-border-soft);
}
.hm-receipt-meta dt { color: var(--hm-muted); font-size: .7rem; }
.hm-receipt-meta dd { color: var(--hm-heading-cool); font-size: var(--hm-text-sm); }

.hm-receipt-head__actions {
  align-self: center;
  justify-content: flex-end;
  margin: 0;
}
.hm-receipt-head__text-link {
  color: var(--hm-blue-action);
  font-size: var(--hm-text-sm);
}

.hm-receipt-layout {
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.hm-receipt-main--failed { margin-top: 1.5rem; }
.woocommerce-order-received .hm-receipt-main .woocommerce-order-details__title,
.woocommerce-order-received .hm-receipt-main .woocommerce-column__title {
  margin-bottom: .65rem;
  color: var(--hm-navy);
  font-size: var(--hm-text-lg);
  font-weight: var(--hm-weight-extrabold);
}
.woocommerce-order-received .hm-receipt-main table.order_details.shop_table thead th {
  background: var(--hm-surface-subtle);
  color: var(--hm-muted);
}
.woocommerce-order-received .hm-receipt-main table.order_details.shop_table tbody td,
.woocommerce-order-received .hm-receipt-main table.order_details.shop_table tfoot td,
.woocommerce-order-received .hm-receipt-main table.order_details.shop_table tfoot th {
  padding: .8rem 1rem;
  border-color: var(--hm-border-soft);
  color: var(--hm-body-soft);
  font-size: var(--hm-text-sm);
}
.woocommerce-order-received .woocommerce-order-details .order-actions-button {
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 1px solid #bfdbfe !important;
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface-blue) !important;
  color: var(--hm-blue-action) !important;
  box-shadow: none;
  font-size: var(--hm-text-xs);
}
.woocommerce-order-received .woocommerce-order-details .order-actions-button:hover {
  border-color: #93c5fd !important;
  background: #dbeafe !important;
  color: var(--hm-blue) !important;
}
.woocommerce-order-received .hm-receipt-main .woocommerce-columns--addresses address {
  padding: 1rem;
  color: var(--hm-body-soft);
  font-size: var(--hm-text-sm);
}

.woocommerce-order-received .hm-receipt-aside {
  position: sticky;
  top: 7.5rem;
  padding: 1.15rem;
  background: var(--hm-surface-subtle);
}
.hm-fulfilment h2,
.hm-receipt-help h2 {
  color: var(--hm-navy);
  font-size: var(--hm-text-md);
}
.hm-fulfilment__icon {
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface);
  color: var(--hm-blue-action);
}
.hm-fulfilment li:not(:last-child)::after { background: var(--hm-border); }
.hm-fulfilment li strong { color: var(--hm-navy); }
.hm-fulfilment li div span,
.hm-receipt-help p { color: var(--hm-muted); }
.hm-receipt-help { border-color: var(--hm-border); }
.hm-receipt-help a,
.hm-receipt-secondary { color: var(--hm-blue-action); }
.hm-receipt-help a { min-height: 2.75rem; }
.hm-receipt-secondary { min-height: 2.75rem; }

.hm-receipt-button {
  min-height: var(--hm-button-height);
  border-radius: var(--hm-radius-control);
  background: var(--hm-blue-action);
  color: #fff;
  font-size: var(--hm-text-sm);
}
.hm-receipt-button:hover,
.hm-receipt-button:focus-visible { background: var(--hm-blue); }
.hm-receipt-head--failed .hm-receipt-button--light {
  min-height: var(--hm-button-height);
  padding-inline: 1.15rem;
  background: var(--hm-orange);
  color: #fff;
}
.hm-receipt-head--failed .hm-receipt-button--light:hover,
.hm-receipt-head--failed .hm-receipt-button--light:focus-visible {
  background: var(--hm-orange-hover);
  color: #fff;
}

@media (max-width: 860px) {
  .hm-receipt-layout { grid-template-columns: 1fr; }
  .woocommerce-order-received .hm-receipt-aside { position: static; }
}

@media (max-width: 620px) {
  .woocommerce-cart .page-content--wc,
  .woocommerce-checkout .page-content--wc,
  .woocommerce-order-received .page-content--wc { padding-top: 1rem !important; }

  .woocommerce-cart .hm-commerce-steps,
  .woocommerce-checkout .hm-commerce-steps,
  .woocommerce-order-received .hm-commerce-steps { margin-bottom: 1.1rem; }

  .hm-commerce-steps li,
  .hm-commerce-steps li > a { font-size: .67rem; }

  .woocommerce-order-received .hm-receipt-head {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  .hm-receipt-head__mark {
    width: 2.5rem;
    height: 2.5rem;
    flex-basis: 2.5rem;
  }
  .hm-receipt-head__title { font-size: 1.4rem; }
  .hm-receipt-head__amount {
    padding: .85rem 0 0;
    border-top: 1px solid var(--hm-border-soft);
    border-left: 0;
    text-align: left;
  }
  .hm-receipt-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: .85rem 0 0;
  }
  .hm-receipt-head__actions { justify-content: stretch; }
  .hm-receipt-head--failed .hm-receipt-button--light { width: 100%; }
  .hm-receipt-layout { margin-top: 1rem; }
  .woocommerce-order-received .hm-receipt-aside { padding: 1rem; }
  .hm-receipt-empty {
    gap: .75rem;
    margin-top: .5rem;
    padding: 1rem;
  }
  .hm-receipt-empty__title { font-size: 1.4rem; }
  .hm-receipt-empty__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: .5rem;
  }
  .hm-receipt-empty__actions .hm-receipt-button,
  .hm-receipt-empty__actions .hm-receipt-secondary { width: 100%; }
  .woocommerce-order-received form.woocommerce-verify-email {
    grid-template-columns: 1fr;
    margin-top: -.5rem;
    padding: 1rem;
  }
  .woocommerce-order-received form.woocommerce-verify-email button.button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce-cart .page-content--wc *,
  .woocommerce-checkout .page-content--wc *,
  .woocommerce-order-received .page-content--wc * {
    scroll-behavior: auto !important;
  }
}
