/* HiGuppy Cart Page — professional live fish cart styling */

:root {
  --hg-cart-navy: #082747;
  --hg-cart-blue: #1747b8;
  --hg-cart-coral: #ff6b4a;
  --hg-cart-orange: #ff9f3f;
  --hg-cart-cream: #fff6e6;
  --hg-cart-sky: #eaf6ff;
  --hg-cart-muted: #667085;
  --hg-cart-line: #e3ebf7;
  --hg-cart-shadow: 0 18px 45px rgba(23, 71, 184, 0.1);
  --hg-cart-radius: 22px;
}

body.hg-cart-page-active {
  background: linear-gradient(180deg, #f7fbff 0%, #fff 240px);
  color: var(--hg-cart-navy);
  font-family: var(--hg-font-family);
}

body.hg-checkout-page-active,
body.hg-order-received-page-active,
body.hg-checkout-flow-active {
  background: linear-gradient(
    180deg,
    #eaf6ff 0,
    #eaf6ff 160px,
    #f2faff 300px,
    #f8fcff 520px,
    #fff 100%
  ) !important;
  background-color: #eaf6ff !important;
  color: var(--hg-cart-navy);
  font-family: var(--hg-font-family);
}

/* Beat higuppy-footer-fix / stability html:has(body.higuppy-site-shell) sky override. */
html:has(body.hg-checkout-flow-active.higuppy-site-shell),
html:has(body.hg-checkout-page-active.higuppy-site-shell),
html:has(body.hg-cart-page-active.higuppy-site-shell),
html:has(body.hg-order-received-page-active.higuppy-site-shell),
body.hg-checkout-flow-active.higuppy-site-shell,
body.hg-checkout-flow-active.higuppy-site-shell::before {
  background: linear-gradient(
    180deg,
    #eaf6ff 0,
    #eaf6ff 160px,
    #f2faff 300px,
    #f8fcff 520px,
    #fff 100%
  ) !important;
  background-color: #eaf6ff !important;
}

body.hg-checkout-flow-active.higuppy-site-shell > nav.hg-nav,
body.hg-checkout-flow-active > nav.hg-nav,
body.hg-checkout-flow-active nav#hgSiteNav.hg-nav {
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.84) !important;
  box-shadow: 0 18px 54px rgba(23, 71, 184, 0.1) !important;
}

body.hg-checkout-flow-active.higuppy-site-shell > .wp-site-blocks,
body.hg-checkout-flow-active .wp-site-blocks,
body.hg-checkout-flow-active .wp-site-blocks > .wp-block-group,
body.hg-checkout-flow-active main.wp-block-group {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Sidecart must stay opaque — checkout sky rules must not clear its panel. */
body.hg-checkout-flow-active .higuppy-sidebar-cart,
body.hg-checkout-flow-active .higuppy-sidebar-cart.is-open,
body.hg-cart-page-active .higuppy-sidebar-cart,
body.hg-cart-page-active .higuppy-sidebar-cart.is-open {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
}

body.hg-checkout-flow-active .higuppy-sidebar-cart-overlay.is-active,
body.hg-cart-page-active .higuppy-sidebar-cart-overlay.is-active {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Scrollbar track was gray (#c0c0c0) against sky — match page canvas. */
html:has(body.hg-checkout-flow-active),
body.hg-checkout-flow-active {
  scrollbar-width: thin;
  scrollbar-color: #9eb6d4 #eaf6ff;
}

html:has(body.hg-checkout-flow-active)::-webkit-scrollbar,
body.hg-checkout-flow-active::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html:has(body.hg-checkout-flow-active)::-webkit-scrollbar-track,
body.hg-checkout-flow-active::-webkit-scrollbar-track {
  background: #eaf6ff;
}

html:has(body.hg-checkout-flow-active)::-webkit-scrollbar-thumb,
body.hg-checkout-flow-active::-webkit-scrollbar-thumb {
  background: #9eb6d4;
  border-radius: 999px;
  border: 3px solid #eaf6ff;
  background-clip: padding-box;
}

body.hg-checkout-page-active .woocommerce,
body.hg-order-received-page-active .woocommerce {
  margin: 0;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hg-cart-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 36px;
  margin-bottom: 8px;
}

.hg-cart-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(253, 187, 45, 0.18), transparent 28%),
    radial-gradient(circle at 18% 88%, rgba(21, 191, 208, 0.12), transparent 24%),
    linear-gradient(180deg, var(--hg-cart-sky) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hg-cart-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
}

.hg-cart-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 700;
  color: var(--hg-cart-muted);
}

.hg-cart-breadcrumb a {
  color: var(--hg-cart-coral);
  text-decoration: none;
}

.hg-cart-breadcrumb a:hover {
  text-decoration: underline;
}

.hg-cart-eyebrow {
  margin: 0 0 10px;
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hg-cart-coral);
}

.hg-cart-hero__title {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--hg-cart-navy);
}

.hg-cart-hero__title span {
  color: var(--hg-cart-coral);
}

.hg-cart-hero__lead {
  margin: 0 auto 24px;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--hg-cart-muted);
}

.hg-cart-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.hg-cart-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--hg-cart-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 700;
  color: var(--hg-cart-muted);
  box-shadow: 0 8px 24px rgba(8, 39, 71, 0.05);
}

.hg-cart-steps li.is-current {
  border-color: rgba(255, 107, 74, 0.35);
  background: #fff;
  color: var(--hg-cart-navy);
  box-shadow: var(--hg-cart-shadow);
}

.hg-cart-steps__num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(8, 39, 71, 0.08);
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 800;
}

.hg-cart-steps li.is-current .hg-cart-steps__num {
  background: linear-gradient(135deg, var(--hg-cart-coral), var(--hg-cart-orange));
  color: #fff;
}

.hg-cart-steps li.is-complete {
  border-color: rgba(23, 71, 184, 0.16);
  color: var(--hg-cart-navy);
}

.hg-cart-steps li.is-complete .hg-cart-steps__num {
  background: rgba(23, 71, 184, 0.12);
  color: var(--hg-cart-blue);
}

.hg-cart-steps__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.hg-cart-steps__link:hover {
  color: var(--hg-cart-coral);
  text-decoration: none;
}

.hg-cart-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.hg-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hg-cart-btn--primary {
  background: linear-gradient(135deg, var(--hg-cart-coral), var(--hg-cart-orange));
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(255, 107, 74, 0.28);
}

.hg-cart-btn--primary:hover {
  transform: translateY(-2px);
  color: #fff !important;
  text-decoration: none;
}

.hg-cart-btn--ghost {
  background: #fff;
  color: var(--hg-cart-navy) !important;
  border: 1px solid var(--hg-cart-line);
}

.hg-cart-btn--ghost:hover {
  border-color: rgba(255, 107, 74, 0.35);
  color: var(--hg-cart-coral) !important;
  text-decoration: none;
}

/* ─── Main layout ──────────────────────────────────────────── */
.hg-cart-main {
  padding: 8px 0 48px;
}

.hg-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

body.hg-cart-page-active .woocommerce-cart-form {
  grid-column: 1;
}

body.hg-cart-page-active .cart-collaterals {
  grid-column: 2;
  width: 100% !important;
  float: none !important;
}

body.hg-cart-page-active .cart-collaterals .cross-sells {
  display: none;
}

/* ─── WooCommerce Cart Block layout ─────────────────────────── */
body.hg-cart-page-active .wp-block-woocommerce-cart {
  width: min(1180px, calc(100% - 48px));
  max-width: none !important;
  margin: 0 auto !important;
}

body.hg-cart-page-active .wp-block-woocommerce-filled-cart-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 28px;
  align-items: start;
  width: 100% !important;
}

body.hg-cart-page-active .wp-block-woocommerce-cart-items-block,
body.hg-cart-page-active .wp-block-woocommerce-cart-totals-block {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--hg-cart-line);
  border-radius: var(--hg-cart-radius);
  background: #fff;
  box-shadow: var(--hg-cart-shadow);
}

body.hg-cart-page-active .wp-block-woocommerce-cart-totals-block {
  position: sticky;
  top: 92px;
  width: 100% !important;
  max-width: none !important;
}

body.hg-cart-page-active .wp-block-woocommerce-cart-order-summary-heading-block {
  color: var(--hg-cart-navy);
  font-size: 22px;
  font-weight: 800;
}

body.hg-cart-page-active .wp-block-woocommerce-cart-order-summary-coupon-form-block,
body.hg-cart-page-active .wp-block-woocommerce-cart-order-summary-totals-block,
body.hg-cart-page-active .wp-block-woocommerce-proceed-to-checkout-block,
body.hg-cart-page-active .wp-block-woocommerce-cart-accepted-payment-methods-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hg-cart-line);
}

body.hg-cart-page-active .wp-block-woocommerce-proceed-to-checkout-block a,
body.hg-cart-page-active .wc-block-components-button {
  width: 100% !important;
  min-height: 52px !important;
  padding: 14px 22px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--hg-cart-coral), var(--hg-cart-orange)) !important;
  color: #fff !important;
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(255, 107, 74, 0.22) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.hg-cart-page-active .wp-block-woocommerce-proceed-to-checkout-block a:hover,
body.hg-cart-page-active .wc-block-components-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 16px 32px rgba(255, 107, 74, 0.28) !important;
}

body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto !important;
  padding: 36px 24px;
  border: 1px solid var(--hg-cart-line);
  border-radius: var(--hg-cart-radius);
  background: #fff;
  box-shadow: var(--hg-cart-shadow);
}

/* ─── Empty-cart product carousel ────────────────────────────── */
body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-collection {
  width: 100% !important;
  max-width: none !important;
  overflow: hidden;
}

body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wc-block-product-template {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  width: 100%;
  margin: 18px 0 0 !important;
  padding: 0 0 8px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wc-block-product-template > .wc-block-product {
  flex: 0 0 calc((100% - 32px) / 3) !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  scroll-snap-align: start;
}

body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wc-block-product-template > .wc-block-product > .wp-block-group {
  min-width: 0;
}

body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wc-block-product-template .wc-block-components-product-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: cover !important;
  border-radius: 16px;
}

body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wc-block-product-template .wp-block-post-terms {
  margin: 12px 0 5px !important;
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.3;
}

body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wc-block-product-template .wp-block-post-title {
  margin: 0 !important;
  font-size: 17px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wc-block-product-template .wp-block-woocommerce-product-price {
  margin-top: 10px !important;
  font-size: 16px;
  line-height: 1.2;
}

body.hg-cart-page-active .wp-block-woocommerce-cart > .wp-block-woocommerce-filled-cart-block {
  margin-bottom: 0 !important;
}

/* ─── Cart table card ────────────────────────────────────────── */
body.hg-cart-page-active .woocommerce-cart-form {
  background: #fff;
  border: 1px solid var(--hg-cart-line);
  border-radius: var(--hg-cart-radius);
  box-shadow: var(--hg-cart-shadow);
  overflow: hidden;
}

body.hg-cart-page-active .shop_table.cart {
  width: 100%;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 !important;
}

body.hg-cart-page-active .shop_table.cart thead th {
  padding: 18px 20px;
  border: 0 !important;
  border-bottom: 1px solid var(--hg-cart-line) !important;
  background: linear-gradient(180deg, #fbfdff, #fff);
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hg-cart-muted);
}

body.hg-cart-page-active .shop_table.cart tbody tr {
  transition: background 0.2s ease;
}

body.hg-cart-page-active .shop_table.cart tbody tr:hover {
  background: rgba(234, 246, 255, 0.45);
}

body.hg-cart-page-active .shop_table.cart td,
body.hg-cart-page-active .shop_table.cart th {
  padding: 20px !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--hg-cart-line) !important;
  vertical-align: middle !important;
}

body.hg-cart-page-active .shop_table.cart tbody tr:last-child td {
  border-bottom: 0 !important;
}

body.hg-cart-page-active .shop_table.cart .product-thumbnail img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--hg-cart-line);
  background: var(--hg-cart-sky);
}

body.hg-cart-page-active .shop_table.cart .product-name a {
  color: var(--hg-cart-navy);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

body.hg-cart-page-active .shop_table.cart .product-name a:hover {
  color: var(--hg-cart-coral);
}

body.hg-cart-page-active .shop_table.cart .product-price,
body.hg-cart-page-active .shop_table.cart .product-subtotal {
  font-size: 16px;
  font-weight: 700;
  color: var(--hg-cart-navy);
}

body.hg-cart-page-active .shop_table.cart .product-remove a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 107, 74, 0.08);
  color: var(--hg-cart-coral) !important;
  font-size: 22px;
  line-height: 1;
  text-decoration: none !important;
}

body.hg-cart-page-active .shop_table.cart .product-remove a:hover {
  background: var(--hg-cart-coral);
  color: #fff !important;
}

body.hg-cart-page-active .shop_table.cart .quantity .qty {
  width: 72px;
  min-height: 44px;
  border: 1px solid var(--hg-cart-line);
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--hg-cart-navy);
}

body.hg-cart-page-active .shop_table.cart .actions {
  padding: 18px 20px !important;
  background: #fbfdff;
}

body.hg-cart-page-active .shop_table.cart .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.hg-cart-page-active .shop_table.cart .coupon label {
  display: none;
}

body.hg-cart-page-active .shop_table.cart .coupon .input-text {
  min-width: min(240px, 100%);
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hg-cart-line);
  border-radius: 999px;
  background: #fff;
}

body.hg-cart-page-active .shop_table.cart .actions .button {
  min-height: 44px !important;
  border-radius: 999px !important;
}

body.hg-cart-page-active .shop_table.cart .actions .button[name="update_cart"] {
  background: #fff !important;
  color: var(--hg-cart-navy) !important;
  border: 1px solid var(--hg-cart-line) !important;
  box-shadow: none !important;
}

/* ─── Order summary ─────────────────────────────────────────── */
body.hg-cart-page-active .cart_totals {
  background: #fff;
  border: 1px solid var(--hg-cart-line);
  border-radius: var(--hg-cart-radius);
  box-shadow: var(--hg-cart-shadow);
  padding: 24px;
  position: sticky;
  top: 92px;
}

body.hg-cart-page-active .cart_totals > h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hg-cart-navy);
}

body.hg-cart-page-active .cart_totals .shop_table {
  border: 0 !important;
  margin: 0 0 18px !important;
}

body.hg-cart-page-active .cart_totals .shop_table th,
body.hg-cart-page-active .cart_totals .shop_table td {
  padding: 12px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hg-cart-line) !important;
  background: transparent !important;
  font-size: var(--hg-font-size-body, 16px);
}

body.hg-cart-page-active .cart_totals .shop_table tr.order-total th,
body.hg-cart-page-active .cart_totals .shop_table tr.order-total td {
  border-bottom: 0 !important;
  padding-top: 16px !important;
  font-size: 18px;
  font-weight: 800;
  color: var(--hg-cart-navy);
}

body.hg-cart-page-active .cart_totals .shop_table tr.order-total .woocommerce-Price-amount {
  color: var(--hg-cart-coral);
}

body.hg-cart-page-active .wc-proceed-to-checkout {
  margin: 0;
  padding: 0;
}

body.hg-cart-page-active .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  text-align: center;
}

body.hg-cart-page-active .cart_totals .woocommerce-shipping-destination,
body.hg-cart-page-active .cart_totals .woocommerce-shipping-calculator {
  font-size: var(--hg-font-size-body, 16px);
  color: var(--hg-cart-muted);
}

/* Hide duplicate checkout steps from theme */
body.hg-cart-page-active .woocommerce-checkout-steps,
body.hg-cart-page-active .checkout-steps,
body.hg-cart-page-active .et-cart-progress,
body.hg-cart-page-active .cart-progress {
  display: none !important;
}

/* ─── Empty cart ─────────────────────────────────────────────── */
.hg-cart-empty-card {
  background: #fff;
  border: 1px solid var(--hg-cart-line);
  border-radius: calc(var(--hg-cart-radius) + 4px);
  box-shadow: var(--hg-cart-shadow);
  padding: clamp(28px, 5vw, 48px);
  margin-bottom: 8px;
}

.hg-cart-empty {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.hg-cart-empty__icon {
  margin: 0 auto 20px;
}

.hg-cart-empty h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hg-cart-navy);
}

.hg-cart-empty p {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--hg-cart-muted);
}

.hg-cart-empty__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hg-cart-empty__trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 700;
  color: var(--hg-cart-muted);
}

.hg-cart-empty__trust li::before {
  content: "✓ ";
  color: var(--hg-cart-coral);
}

body.hg-cart-page-active .return-to-shop {
  display: none !important;
}

body.hg-cart-page-active .cart-empty.woocommerce-info {
  display: none !important;
}

/* ─── Trust section ─────────────────────────────────────────── */
.hg-cart-trust {
  margin-top: 28px;
  padding: 0 0 56px;
  position: relative;
  z-index: 0;
}

body.hg-cart-page-active .wp-block-woocommerce-cart + .hg-cart-trust {
  margin-top: 24px;
}

/* Checkout: never pull policies under the sticky Place Order / summary cards. */
body.hg-checkout-page-active .hg-cart-main + .hg-cart-trust,
body.hg-checkout-page-active .hg-cart-trust {
  margin-top: 40px !important;
  clear: both;
  z-index: 0;
}

body.hg-checkout-page-active .hg-checkout-layout,
body.hg-checkout-page-active .wc-block-components-sidebar-layout,
body.hg-checkout-page-active .wp-block-woocommerce-checkout {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

body.hg-checkout-page-active .wc-block-components-sidebar,
body.hg-checkout-page-active .wc-block-components-main,
body.hg-checkout-page-active #order_review {
  z-index: 1;
}

.hg-cart-trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 18px;
}

.hg-cart-trust__intro h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--hg-cart-navy);
}

.hg-cart-trust__intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hg-cart-muted);
}

.hg-cart-trust__cards {
  display: grid;
  gap: 14px;
}

.hg-cart-trust-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 18px 20px;
  border: 1px solid var(--hg-cart-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(8, 39, 71, 0.05);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hg-cart-trust-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 74, 0.35);
  box-shadow: var(--hg-cart-shadow);
  text-decoration: none;
}

.hg-cart-trust-card__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--hg-cart-sky);
  font-size: 22px;
}

.hg-cart-trust-card strong {
  color: var(--hg-cart-navy);
  font-size: 16px;
}

.hg-cart-trust-card span:last-child {
  grid-column: 2;
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.55;
  color: var(--hg-cart-muted);
}

.hg-cart-trust__note {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 74, 0.22);
  background: linear-gradient(180deg, #fff8f4, #fff);
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.65;
  color: var(--hg-cart-muted);
}

.hg-cart-trust__note strong {
  color: var(--hg-cart-navy);
}

.hg-cart-trust__note a {
  color: var(--hg-cart-coral);
  font-weight: 700;
  text-decoration: none;
}

.hg-cart-trust__note a:hover {
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  body.hg-cart-page-active .wp-block-woocommerce-filled-cart-block {
    display: block !important;
    width: 100% !important;
  }

  body.hg-cart-page-active .wp-block-woocommerce-cart-items-block,
  body.hg-cart-page-active .wp-block-woocommerce-cart-totals-block {
    width: 100% !important;
    max-width: none !important;
  }

  body.hg-cart-page-active .wp-block-woocommerce-cart-totals-block {
    position: static;
  }

  body.hg-cart-page-active .wp-block-woocommerce-cart + .hg-cart-trust {
    margin-top: 20px;
  }

  .hg-cart-layout {
    grid-template-columns: 1fr;
  }

  body.hg-cart-page-active .cart-collaterals {
    grid-column: 1;
  }

  body.hg-cart-page-active .cart_totals {
    position: static;
  }

  .hg-cart-trust__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.hg-cart-page-active .wp-block-woocommerce-cart,
  body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block {
    width: calc(100% - 16px) !important;
    max-width: none !important;
  }

  body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block {
    padding: 24px 18px;
  }

  body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-collection > .wp-block-group {
    align-items: center;
  }

  body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wc-block-product-template > .wc-block-product {
    flex-basis: calc((100% - 16px) / 2) !important;
  }

  body.hg-cart-page-active .wp-block-woocommerce-empty-cart-block .wc-block-product-template .wp-block-post-title {
    font-size: var(--hg-font-size-body, 16px);
  }

  body.hg-cart-page-active .wp-block-woocommerce-cart-items-block,
  body.hg-cart-page-active .wp-block-woocommerce-cart-totals-block {
    padding: 18px;
    border-radius: 18px;
  }

  body.hg-cart-page-active .wp-block-woocommerce-filled-cart-block {
    gap: 16px;
  }

  body.hg-cart-page-active .wc-block-cart-items {
    display: block;
    width: 100%;
  }

  body.hg-cart-page-active .wc-block-cart-items__header {
    display: none;
  }

  body.hg-cart-page-active .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--hg-cart-line) !important;
  }

  body.hg-cart-page-active .wc-block-cart-items__row:last-child {
    border-bottom: 0 !important;
    padding-bottom: 2px !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__image,
  body.hg-cart-page-active .wc-block-cart-item__product,
  body.hg-cart-page-active .wc-block-cart-item__total {
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__image img {
    display: block;
    width: 84px !important;
    height: 84px !important;
    object-fit: cover;
    border-radius: 14px;
  }

  body.hg-cart-page-active .wc-block-components-product-name {
    display: block;
    margin: 2px 0 5px;
    color: var(--hg-cart-navy);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
  }

  body.hg-cart-page-active .wc-block-cart-item__prices {
    margin: 0;
    color: var(--hg-cart-muted);
    font-size: var(--hg-font-size-body, 16px);
  }

  body.hg-cart-page-active .wc-block-components-product-metadata {
    display: none;
  }

  body.hg-cart-page-active .wc-block-cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
  }

  body.hg-cart-page-active .wc-block-components-quantity-selector {
    min-height: 40px;
    border: 1px solid #b8c7d9;
    border-radius: 10px;
    background: #fff;
  }

  body.hg-cart-page-active .wc-block-components-quantity-selector__input {
    width: 38px;
    min-width: 38px;
    font-size: var(--hg-font-size-body, 16px);
  }

  body.hg-cart-page-active .wc-block-cart-item__remove-link {
    margin: 0;
    color: var(--hg-cart-navy);
  }

  body.hg-cart-page-active .wc-block-cart-item__total {
    padding-top: 2px !important;
    color: var(--hg-cart-navy);
    font-size: var(--hg-font-size-body, 16px);
    font-weight: 800;
    white-space: nowrap;
  }

  body.hg-cart-page-active .wp-block-woocommerce-cart-order-summary-heading-block {
    margin-bottom: 2px;
    font-size: 20px;
  }

  body.hg-cart-page-active .wp-block-woocommerce-cart-order-summary-coupon-form-block,
  body.hg-cart-page-active .wp-block-woocommerce-cart-order-summary-totals-block,
  body.hg-cart-page-active .wp-block-woocommerce-proceed-to-checkout-block {
    margin-top: 12px;
    padding-top: 12px;
  }

  body.hg-cart-page-active .wc-block-components-panel__button {
    min-height: 36px;
    padding: 4px 0;
    font-size: 16px;
    font-weight: 700;
  }

  body.hg-cart-page-active .wc-block-components-totals-footer-item {
    align-items: center;
    margin: 0;
    padding: 4px 0 2px;
  }

  body.hg-cart-page-active .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 20px;
    font-weight: 800;
  }

  body.hg-cart-page-active .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: var(--hg-cart-coral);
    font-size: 22px;
    font-weight: 800;
  }

  .hg-cart-hero {
    padding-top: 16px;
  }

  body.hg-cart-page-active .shop_table.cart thead {
    display: none;
  }

  body.hg-cart-page-active .shop_table.cart tbody tr {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 4px 14px;
    padding: 18px 16px;
  }

  body.hg-cart-page-active .shop_table.cart td {
    display: block;
    padding: 0 !important;
    border: 0 !important;
  }

  body.hg-cart-page-active .shop_table.cart .product-thumbnail {
    grid-row: 1 / span 4;
  }

  body.hg-cart-page-active .shop_table.cart .product-name {
    grid-column: 2;
    font-size: var(--hg-font-size-body, 16px);
  }

  body.hg-cart-page-active .shop_table.cart .product-price::before {
    content: "Unit price: ";
    font-weight: 600;
    color: var(--hg-cart-muted);
  }

  body.hg-cart-page-active .shop_table.cart .product-quantity::before {
    content: "Quantity: ";
    font-weight: 600;
    color: var(--hg-cart-muted);
  }

  body.hg-cart-page-active .shop_table.cart .product-subtotal::before {
    content: "Line total: ";
    font-weight: 600;
    color: var(--hg-cart-muted);
  }

  body.hg-cart-page-active .shop_table.cart .product-remove {
    grid-column: 2;
    margin-top: 6px;
  }

  body.hg-cart-page-active .shop_table.cart .actions {
    display: block;
  }

  body.hg-cart-page-active .shop_table.cart .coupon,
  body.hg-cart-page-active .shop_table.cart .actions .button {
    width: 100%;
  }

}

/* Final cart polish: align the product panel with CART TOTALS and unify the shell. */
body.hg-cart-page-active {
  background: #f4faff !important;
}

body.hg-cart-page-active .hg-nav {
  background: rgba(247, 251, 255, 0.96) !important;
  border-color: #dfeaf2 !important;
}

body.hg-cart-page-active .hg-cart-hero,
body.hg-cart-page-active .hg-cart-hero__bg {
  background: linear-gradient(180deg, #f7fbff 0%, #f4faff 100%) !important;
}

body.hg-cart-page-active .wc-block-components-sidebar-layout.wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px) !important;
  gap: 28px !important;
  align-items: start !important;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.hg-cart-page-active .wc-block-components-sidebar-layout.wc-block-cart .wc-block-components-main.wc-block-cart__main,
body.hg-cart-page-active .wc-block-components-sidebar-layout.wc-block-cart .wc-block-components-sidebar.wc-block-cart__sidebar {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.hg-cart-page-active .wc-block-components-sidebar-layout.wc-block-cart .wc-block-components-main.wc-block-cart__main {
  padding: 24px !important;
  border: 1px solid var(--hg-cart-line) !important;
  border-radius: var(--hg-cart-radius) !important;
  background: #fff !important;
  box-shadow: var(--hg-cart-shadow) !important;
}

body.hg-cart-page-active .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.hg-cart-page-active .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  font-weight: 900;
}

body.hg-cart-page-active .hg-cart-steps li {
  position: relative;
}

@media (min-width: 769px) {
  body.hg-cart-page-active .hg-cart-steps li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -23px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hg-cart-coral);
    font-size: 18px;
    font-weight: 900;
    z-index: 2;
  }
}

/* Brand contrast: coral/orange and deep-green cart controls always use white text. */
body.hg-cart-page-active nav#hgSiteNav.hg-nav .hg-menu-spotlight__cta,
body.hg-cart-page-active nav#hgSiteNav.hg-nav .hg-menu-spotlight__cta:hover,
body.hg-cart-page-active nav#hgSiteNav.hg-nav .hg-menu-spotlight__cta:focus-visible,
body.hg-cart-page-active nav#hgSiteNav.hg-nav .hg-menu-spotlight__cta:active,
body.hg-cart-page-active .wc-block-components-button,
body.hg-cart-page-active .wc-block-components-button:hover,
body.hg-cart-page-active .wc-block-components-button:focus-visible,
body.hg-cart-page-active .wc-block-components-button:active,
body.hg-cart-page-active .wp-block-woocommerce-proceed-to-checkout-block a,
body.hg-cart-page-active .wc-proceed-to-checkout .checkout-button,
body.hg-checkout-page-active .wc-block-components-checkout-place-order-button,
body.hg-checkout-page-active #place_order {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Checkout Blocks: retain the floating select label and compact item details on mobile. */
@media (max-width: 768px) {
  body.hg-checkout-page-active .wc-blocks-components-select__container {
    min-height: 56px !important;
  }

  body.hg-checkout-page-active .wc-blocks-components-select__label {
    top: 7px !important;
    z-index: 1 !important;
    color: var(--hg-cart-navy) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    transform: none !important;
  }

  body.hg-checkout-page-active .wc-blocks-components-select__select {
    min-height: 56px !important;
    padding: 22px 42px 7px 12px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__description {
    display: block !important;
    min-width: 0 !important;
    color: var(--hg-cart-navy) !important;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__description .wc-block-components-product-name {
    margin: 0 0 4px !important;
    color: var(--hg-cart-navy) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__description .wc-block-cart-item__prices,
  body.hg-checkout-page-active .wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
    margin: 0 !important;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
    display: none !important;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__individual-prices,
  body.hg-checkout-page-active .wc-block-components-order-summary-item__individual-price,
  body.hg-checkout-page-active .wc-block-components-order-summary-item__total-price,
  body.hg-checkout-page-active .wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount,
  body.hg-checkout-page-active .wc-block-components-totals-item__value,
  body.hg-checkout-page-active .wc-block-components-totals-item__value .wc-block-formatted-money-amount {
    color: var(--hg-cart-navy) !important;
    font-weight: 800 !important;
  }

  /* WooCommerce renders a second collapsed summary in the mobile sidebar. */
  body.hg-checkout-page-active .wc-block-components-sidebar > .wp-block-woocommerce-checkout-order-summary-block {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.hg-cart-page-active .wc-block-components-sidebar-layout.wc-block-cart {
    display: block !important;
    width: calc(100% - 16px) !important;
  }

  body.hg-cart-page-active .wc-block-components-sidebar-layout.wc-block-cart .wc-block-components-main.wc-block-cart__main {
    padding: 18px !important;
  }

  body.hg-cart-page-active .hg-cart-steps li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hg-cart-coral);
    font-size: var(--hg-font-size-body, 16px);
    font-weight: 900;
    z-index: 2;
  }
}

@media (max-width: 480px) {
  .hg-cart-hero__actions,
  .hg-cart-empty__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hg-cart-btn {
    width: 100%;
  }
}

/* Keep cart hero and header on the same quiet blue surface. */
body.hg-cart-page-active .hg-cart-hero,
body.hg-cart-page-active .hg-cart-hero__bg {
  background: #f7fbff !important;
  background-image: none !important;
}

/* ─── Checkout page ──────────────────────────────────────────── */

/* FSE constrained content (theme.json ~800px) was crushing the checkout grid.
   WooCommerce Blocks also set main to width:65%, which further shrinks columns
   inside our CSS grid. Reset both so the layout can fill the header rail. */
body.hg-checkout-flow-active .entry-content,
body.hg-checkout-flow-active .wp-block-post-content,
body.hg-checkout-page-active .entry-content,
body.hg-checkout-page-active .wp-block-post-content,
body.hg-cart-page-active .entry-content,
body.hg-cart-page-active .wp-block-post-content,
body.hg-order-received-page-active .entry-content,
body.hg-order-received-page-active .wp-block-post-content {
  width: min(1160px, calc(100% - 40px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.hg-checkout-flow-active .wp-block-site-title,
body.hg-checkout-flow-active .wp-block-site-logo,
body.hg-checkout-flow-active header.wp-block-template-part .wp-block-site-title,
body.hg-checkout-flow-active .wp-site-blocks > header .wp-block-site-title {
  display: none !important;
}

.hg-checkout-layout .wp-block-woocommerce-checkout,
body.hg-checkout-page-active .wp-block-woocommerce-checkout,
body.hg-checkout-page-active .wc-block-checkout {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
}

body.hg-checkout-page-active .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 28px;
  align-items: start;
  width: 100% !important;
  max-width: none !important;
}

body.hg-checkout-page-active .wc-block-components-sidebar-layout .wc-block-components-main,
body.hg-checkout-page-active .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.hg-checkout-page-active .wc-block-checkout__main,
body.hg-checkout-page-active .wc-block-checkout__sidebar {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.hg-checkout-page-active .wc-block-components-main,
body.hg-checkout-page-active .wc-block-components-sidebar {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--hg-cart-line);
  border-radius: var(--hg-cart-radius);
  background: #fff;
  box-shadow: var(--hg-cart-shadow);
}

body.hg-checkout-page-active .wc-block-components-sidebar {
  position: sticky;
  top: 92px;
}

body.hg-checkout-page-active .wc-block-components-checkout-step {
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--hg-cart-line);
}

body.hg-checkout-page-active .wc-block-components-checkout-step + .wc-block-components-checkout-step {
  margin-top: 22px;
}

body.hg-checkout-page-active .wc-block-components-checkout-step__title,
body.hg-checkout-page-active .wc-block-components-order-summary__title {
  color: var(--hg-cart-navy);
  font-size: 20px;
  font-weight: 800;
}

body.hg-checkout-page-active .wc-block-components-text-input input,
body.hg-checkout-page-active .wc-blocks-components-select__select,
body.hg-checkout-page-active .wc-block-components-textarea {
  min-height: 50px;
  border: 1px solid var(--hg-cart-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--hg-cart-navy) !important;
}

body.hg-checkout-page-active .wc-block-components-text-input input:focus,
body.hg-checkout-page-active .wc-blocks-components-select__select:focus,
body.hg-checkout-page-active .wc-block-components-textarea:focus {
  border-color: rgba(255, 107, 74, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.12) !important;
}

body.hg-checkout-page-active .wc-block-components-order-summary {
  margin: 0;
}

body.hg-checkout-page-active .wc-block-components-order-summary-item,
body.hg-checkout-page-active .wc-block-components-totals-item {
  border-color: var(--hg-cart-line) !important;
}

body.hg-checkout-page-active .wc-block-components-checkout-place-order-button {
  width: 100% !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--hg-cart-coral), var(--hg-cart-orange)) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(255, 107, 74, 0.22) !important;
}

body.hg-checkout-page-active .wc-block-components-checkout-place-order-button:hover {
  transform: translateY(-2px);
}

/* Status block is a full-bleed Woo wrapper — never a white card. */
body.hg-order-received-page-active .wc-block-order-confirmation-status,
body.hg-order-received-page-active .wc-block-order-confirmation-status.alignwide,
body.hg-order-received-page-active .wc-block-order-confirmation-status.has-background,
body.hg-order-received-page-active .wc-block-order-confirmation-status.has-font-size {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  font-size: inherit;
}

/* Hero blends into page sky under the floating header — one continuous surface. */
body.hg-order-received-page-active .hg-cart-hero,
body.hg-checkout-page-active .hg-cart-hero,
body.hg-cart-page-active .hg-cart-hero,
body.hg-checkout-flow-active .hg-cart-hero {
  margin: 0 0 4px !important;
  padding: 4px 0 28px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.hg-order-received-page-active .hg-cart-hero__bg,
body.hg-checkout-page-active .hg-cart-hero__bg,
body.hg-cart-page-active .hg-cart-hero__bg,
body.hg-checkout-flow-active .hg-cart-hero__bg {
  top: -120px !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: auto !important;
  border-radius: 0 !important;
  /* Accents only — page sky comes from html/body so header + hero stay one surface. */
  background:
    radial-gradient(circle at 88% 22%, rgba(253, 187, 45, 0.12), transparent 38%),
    radial-gradient(circle at 14% 78%, rgba(21, 191, 208, 0.07), transparent 34%) !important;
}

body.hg-order-received-page-active main.wp-block-group,
body.hg-order-received-page-active .wp-site-blocks,
body.hg-checkout-page-active main.wp-block-group,
body.hg-checkout-page-active .wp-site-blocks,
body.hg-cart-page-active main.wp-block-group,
body.hg-cart-page-active .wp-site-blocks {
  background: transparent !important;
  padding-top: 0 !important;
}

body.hg-order-received-page-active .hg-cart-main {
  width: min(1160px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.hg-order-received-page-active .hg-cart-hero__inner,
body.hg-order-received-page-active .hg-cart-trust > .hg-container {
  width: min(1160px, calc(100% - 40px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body.hg-order-received-page-active .hg-order-received-layout {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

body.hg-order-received-page-active .hg-order-received-layout > h1,
body.hg-order-received-page-active .hg-order-received-layout > p:empty {
  display: none !important;
}

body.hg-order-received-page-active .hg-cart-main > .wc-block-order-confirmation-summary,
body.hg-order-received-page-active .hg-cart-main > .wc-block-order-confirmation-totals-wrapper,
body.hg-order-received-page-active .hg-cart-main > .wc-block-order-confirmation-address-wrapper,
body.hg-order-received-page-active .hg-cart-main > .wc-block-order-confirmation-additional-information,
body.hg-order-received-page-active .hg-cart-main > .wp-block-columns {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-summary,
body.hg-order-received-page-active .wc-block-order-confirmation-billing-address,
body.hg-order-received-page-active .wc-block-order-confirmation-shipping-address {
  padding: 22px 24px !important;
  border: 1px solid var(--hg-cart-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(8, 39, 71, 0.06) !important;
  box-sizing: border-box !important;
}

/* Billing/shipping: one card with heading inside, no empty tall box. */
body.hg-order-received-page-active .wc-block-order-confirmation-billing-wrapper,
body.hg-order-received-page-active .wc-block-order-confirmation-shipping-wrapper {
  margin: 0 !important;
  padding: 22px 24px !important;
  border: 1px solid var(--hg-cart-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(8, 39, 71, 0.06) !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-billing-address,
body.hg-order-received-page-active .wc-block-order-confirmation-shipping-address {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-billing-address address,
body.hg-order-received-page-active .wc-block-order-confirmation-shipping-address address {
  margin: 0 !important;
  font-style: normal;
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.65;
  color: var(--hg-cart-navy);
}

/* Order details: one clean card (heading + rows), no nested table box. */
body.hg-order-received-page-active .wc-block-order-confirmation-totals-wrapper {
  margin-top: 12px !important;
  margin-bottom: 16px !important;
  padding: 24px 28px !important;
  border: 1px solid var(--hg-cart-line) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 14px 36px rgba(8, 39, 71, 0.07) !important;
  box-sizing: border-box !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-summary {
  margin-top: 12px !important;
  margin-bottom: 16px !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals-wrapper > .wp-block-heading,
body.hg-order-received-page-active .wc-block-order-confirmation-billing-wrapper > .wp-block-heading,
body.hg-order-received-page-active .wc-block-order-confirmation-shipping-wrapper > .wp-block-heading {
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hg-cart-navy) !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-address-wrapper {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  align-items: start !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-address-wrapper > * {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* Single address card should not stretch full rail. */
body.hg-order-received-page-active .wc-block-order-confirmation-address-wrapper:has(> :only-child) {
  grid-template-columns: minmax(280px, 520px) !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-summary-list {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.hg-order-received-page-active .wc-block-order-confirmation-summary-list-item {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 14px 16px;
  border: 1px solid var(--hg-cart-line);
  border-radius: 14px;
  background: #fbfdff;
  box-sizing: border-box;
}

body.hg-order-received-page-active .wc-block-order-confirmation-summary-list-item__key {
  display: block;
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hg-cart-muted);
}

body.hg-order-received-page-active .wc-block-order-confirmation-summary-list-item__value {
  display: block;
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--hg-cart-navy);
  word-break: break-word;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: transparent !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table thead th {
  padding: 0 0 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hg-cart-line) !important;
  background: transparent !important;
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hg-cart-muted) !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tbody td,
body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tfoot th,
body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tfoot td {
  padding: 18px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hg-cart-line) !important;
  background: transparent !important;
  vertical-align: middle !important;
  font-size: var(--hg-font-size-body, 16px);
  color: var(--hg-cart-navy);
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tbody tr:last-child td {
  border-bottom: 0 !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table .wc-block-order-confirmation-totals__total,
body.hg-order-received-page-active .wc-block-order-confirmation-totals__table thead .wc-block-order-confirmation-totals__total {
  text-align: right !important;
  white-space: nowrap;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tbody .wc-block-order-confirmation-totals__product a {
  color: var(--hg-cart-blue) !important;
  font-weight: 700;
  text-decoration: none;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tbody .wc-block-order-confirmation-totals__product a:hover {
  color: var(--hg-cart-coral) !important;
  text-decoration: underline;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tbody .product-quantity {
  margin-left: 6px;
  font-weight: 700;
  color: var(--hg-cart-muted);
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tfoot tr th,
body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tfoot tr td {
  padding: 16px 18px !important;
  border: 0 !important;
  background: linear-gradient(180deg, #f7fbff, #eef6ff) !important;
  font-size: 16px;
  font-weight: 800;
  color: var(--hg-cart-navy) !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tfoot tr th {
  border-radius: 14px 0 0 14px !important;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tfoot tr td {
  border-radius: 0 14px 14px 0 !important;
  color: var(--hg-cart-coral) !important;
  font-size: 18px;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tfoot {
  position: relative;
}

body.hg-order-received-page-active .wc-block-order-confirmation-totals__table tfoot::before {
  content: "";
  display: block;
  height: 12px;
}

.hg-checkout-layout form.checkout,
.hg-checkout-layout .woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

body.hg-checkout-page-active form.checkout .col2-set,
body.hg-checkout-page-active .woocommerce-checkout .col2-set {
  grid-column: 1;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.hg-checkout-page-active #order_review,
body.hg-checkout-page-active #order_review_heading {
  grid-column: 2;
}

body.hg-checkout-page-active #order_review_heading {
  grid-row: 1;
  margin: 0;
  padding: 24px 24px 0;
  background: #fff;
  border: 1px solid var(--hg-cart-line);
  border-bottom: 0;
  border-radius: var(--hg-cart-radius) var(--hg-cart-radius) 0 0;
  box-shadow: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--hg-cart-navy);
}

.hg-checkout-notice {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 107, 74, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8f4, #fff);
}

.hg-checkout-notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--hg-cart-navy);
  font-size: var(--hg-font-size-body, 16px);
}

.hg-checkout-notice p {
  margin: 0;
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.65;
  color: var(--hg-cart-muted);
}

body.hg-checkout-page-active .col2-set .col-1,
body.hg-checkout-page-active .col2-set .col-2,
body.hg-checkout-page-active #customer_details .col-1,
body.hg-checkout-page-active #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
}

body.hg-checkout-page-active #customer_details {
  background: #fff;
  border: 1px solid var(--hg-cart-line);
  border-radius: var(--hg-cart-radius);
  box-shadow: var(--hg-cart-shadow);
  padding: 28px;
  margin-bottom: 20px;
}

body.hg-checkout-page-active .woocommerce-billing-fields,
body.hg-checkout-page-active .woocommerce-shipping-fields,
body.hg-checkout-page-active .woocommerce-additional-fields {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

body.hg-checkout-page-active .woocommerce-shipping-fields,
body.hg-checkout-page-active .woocommerce-additional-fields {
  margin-top: 24px;
  padding-top: 24px !important;
  border-top: 1px solid var(--hg-cart-line) !important;
}

body.hg-checkout-page-active .woocommerce-billing-fields h3,
body.hg-checkout-page-active .woocommerce-shipping-fields h3,
body.hg-checkout-page-active .woocommerce-additional-fields h3,
body.hg-checkout-page-active #order_review_heading {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hg-cart-navy);
  text-transform: none;
}

body.hg-checkout-page-active .form-row label {
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 700;
  color: var(--hg-cart-navy);
  margin-bottom: 6px;
}

body.hg-checkout-page-active .form-row input.input-text,
body.hg-checkout-page-active .form-row textarea,
body.hg-checkout-page-active .form-row select,
body.hg-checkout-page-active .select2-container .select2-selection--single {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--hg-cart-line) !important;
  border-radius: 14px !important;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--hg-cart-navy);
  background: #fff;
}

body.hg-checkout-page-active .form-row textarea {
  min-height: 120px;
}

body.hg-checkout-page-active .form-row input.input-text:focus,
body.hg-checkout-page-active .form-row textarea:focus,
body.hg-checkout-page-active .form-row select:focus {
  border-color: rgba(255, 107, 74, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.12);
  outline: none;
}

body.hg-checkout-page-active #order_review {
  grid-row: 2 / span 12;
  margin-top: 0;
  background: #fff;
  border: 1px solid var(--hg-cart-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 var(--hg-cart-radius) var(--hg-cart-radius);
  box-shadow: var(--hg-cart-shadow) !important;
  padding: 12px 24px 24px;
  position: sticky;
  top: 92px;
  max-width: 100%;
}

/* Override XStore checkout borders and nested boxes */
body.hg-checkout-page-active form.checkout,
body.hg-checkout-page-active .woocommerce-checkout,
body.hg-checkout-page-active .woocommerce-checkout-review-order,
body.hg-checkout-page-active .woocommerce-checkout-payment {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

body.hg-checkout-page-active #order_review .shop_table,
body.hg-checkout-page-active #order_review .woocommerce-checkout-review-order-table {
  border: 0 !important;
  margin-bottom: 12px !important;
}

body.hg-checkout-page-active .woocommerce-checkout-review-order-table {
  border: 0 !important;
  margin: 0 0 16px !important;
}

body.hg-checkout-page-active .woocommerce-checkout-review-order-table th,
body.hg-checkout-page-active .woocommerce-checkout-review-order-table td {
  padding: 12px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hg-cart-line) !important;
  background: transparent !important;
}

body.hg-checkout-page-active .woocommerce-checkout-review-order-table .order-total th,
body.hg-checkout-page-active .woocommerce-checkout-review-order-table .order-total td {
  border-bottom: 0 !important;
  font-size: 18px;
  font-weight: 800;
  color: var(--hg-cart-navy);
}

body.hg-checkout-page-active .woocommerce-checkout-review-order-table .order-total .amount {
  color: var(--hg-cart-coral);
}

body.hg-checkout-page-active .woocommerce-checkout-review-order-table .product-name {
  font-weight: 700;
}

.hg-checkout-submit-note {
  margin: 0 0 14px;
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.6;
  color: var(--hg-cart-muted);
}

.hg-checkout-submit-note a {
  color: var(--hg-cart-coral);
  font-weight: 700;
  text-decoration: none;
}

.hg-checkout-submit-note a:hover {
  text-decoration: underline;
}

body.hg-checkout-page-active .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 12px;
  font-size: var(--hg-font-size-body, 16px);
  color: var(--hg-cart-muted);
}

body.hg-checkout-page-active .woocommerce-form-coupon-toggle,
body.hg-checkout-page-active .checkout_coupon {
  margin-bottom: 18px;
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.6;
}

body.hg-checkout-page-active .woocommerce-form-coupon-toggle .woocommerce-info {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--hg-cart-line);
  border-radius: 14px;
  background: #fbfdff;
  color: var(--hg-cart-navy);
  font-size: var(--hg-font-size-body, 16px);
}

body.hg-checkout-page-active #payment {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.hg-checkout-page-active #payment div.payment_box {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--hg-cart-line) !important;
  border-radius: 14px;
  background: #fbfdff !important;
  color: var(--hg-cart-navy) !important;
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.65;
}

body.hg-checkout-page-active #payment ul.payment_methods {
  padding: 0 !important;
  border: 0 !important;
  margin: 0 0 12px !important;
}

body.hg-checkout-page-active #payment ul.payment_methods li {
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid var(--hg-cart-line) !important;
  border-radius: 14px !important;
  background: #fff;
  list-style: none;
}

body.hg-checkout-page-active #payment ul.payment_methods li input {
  margin-right: 10px;
}

body.hg-checkout-page-active #payment ul.payment_methods li label {
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 700;
  color: var(--hg-cart-navy);
}

body.hg-checkout-page-active #payment .woocommerce-info,
body.hg-checkout-page-active #payment .woocommerce-error,
body.hg-checkout-page-active #payment .woocommerce-message {
  margin: 0 0 14px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(255, 107, 74, 0.25) !important;
  border-radius: 14px !important;
  background: #fff8f4 !important;
  color: var(--hg-cart-navy) !important;
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.6;
}

body.hg-checkout-page-active #payment .woocommerce-info::before,
body.hg-checkout-page-active #payment .woocommerce-error::before,
body.hg-checkout-page-active #payment .woocommerce-message::before {
  color: var(--hg-cart-coral) !important;
}

body.hg-checkout-page-active .woocommerce-checkout-review-order-table .cart_item .product-name {
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.45;
}

body.hg-checkout-page-active .woocommerce-checkout-review-order-table .product-total {
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 700;
  white-space: nowrap;
}

body.hg-checkout-page-active #place_order {
  width: 100%;
  min-height: 52px !important;
  text-align: center;
  font-size: 16px;
}

/* ─── Order received page (classic shortcode fallback) ───────── */
.hg-order-received-layout .woocommerce-order {
  background: #fff;
  border: 1px solid var(--hg-cart-line);
  border-radius: var(--hg-cart-radius);
  box-shadow: var(--hg-cart-shadow);
  padding: clamp(24px, 4vw, 36px);
}

body.hg-order-received-page-active .woocommerce-thankyou-order-received {
  display: none;
}

body.hg-order-received-page-active .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

body.hg-order-received-page-active .woocommerce-order-overview li {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--hg-cart-line);
  border-radius: 16px;
  background: #fbfdff;
  font-size: var(--hg-font-size-body, 16px);
  color: var(--hg-cart-muted);
}

body.hg-order-received-page-active .woocommerce-order-overview li strong {
  display: block;
  margin-top: 6px;
  font-size: var(--hg-font-size-body, 16px);
  color: var(--hg-cart-navy);
}

body.hg-order-received-page-active .woocommerce-order-details__title,
body.hg-order-received-page-active .woocommerce-column__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--hg-cart-navy);
}

body.hg-order-received-page-active .shop_table.order_details {
  border: 1px solid var(--hg-cart-line) !important;
  border-radius: 16px;
  overflow: hidden;
}

body.hg-order-received-page-active .shop_table.order_details th,
body.hg-order-received-page-active .shop_table.order_details td {
  padding: 14px 16px !important;
}

.hg-order-next {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hg-cart-line);
}

.hg-order-next__head {
  max-width: 720px;
  margin-bottom: 22px;
}

.hg-order-next__head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hg-cart-navy);
}

.hg-order-next__head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--hg-cart-muted);
}

.hg-order-next__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hg-order-next-card {
  padding: 22px 20px;
  border: 1px solid var(--hg-cart-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #fff);
  box-shadow: 0 10px 28px rgba(8, 39, 71, 0.05);
}

.hg-order-next-card__num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hg-cart-coral), var(--hg-cart-orange));
  color: #fff;
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 800;
}

.hg-order-next-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--hg-cart-navy);
}

.hg-order-next-card p {
  margin: 0 0 12px;
  font-size: var(--hg-font-size-body, 16px);
  line-height: 1.6;
  color: var(--hg-cart-muted);
}

.hg-order-next-card a {
  font-size: var(--hg-font-size-body, 16px);
  font-weight: 800;
  color: var(--hg-cart-coral);
  text-decoration: none;
}

.hg-order-next-card a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  body.hg-checkout-page-active .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr;
  }

  body.hg-checkout-page-active .wc-block-components-sidebar {
    position: static;
  }

  .hg-checkout-layout form.checkout,
  .hg-checkout-layout .woocommerce-checkout {
    grid-template-columns: 1fr;
  }

  body.hg-checkout-page-active #order_review,
  body.hg-checkout-page-active #order_review_heading {
    grid-column: 1;
  }

  body.hg-checkout-page-active #order_review {
    position: static;
  }

  body.hg-order-received-page-active .woocommerce-order-overview,
  body.hg-order-received-page-active .wc-block-order-confirmation-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hg-order-next__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.hg-order-received-page-active .woocommerce-order-overview,
  body.hg-order-received-page-active .wc-block-order-confirmation-summary-list {
    grid-template-columns: 1fr;
  }
}

/* ─── Checkout flow: wider mobile layout ─────────────────────── */
body.hg-checkout-flow-active .content-page,
body.hg-checkout-flow-active .content-page .content,
body.hg-checkout-flow-active #content,
body.hg-checkout-flow-active .page-wrapper,
body.hg-checkout-flow-active .template-container,
body.hg-checkout-flow-active .content-page > .container,
body.hg-checkout-flow-active .container.content-page {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.hg-checkout-flow-active .hg-container,
body.hg-checkout-flow-active .hg-cart-main .hg-container,
body.hg-checkout-flow-active .hg-checkout-layout,
body.hg-checkout-flow-active .hg-cart-layout,
body.hg-checkout-flow-active .hg-order-received-layout {
  width: min(1160px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

body.hg-order-received-page-active .hg-cart-main {
  width: min(1160px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

body.hg-checkout-flow-active .hg-cart-hero__inner {
  max-width: none;
  width: 100%;
}

body.hg-cart-page-active .wc-empty-cart-message,
body.hg-cart-page-active .cart-empty.woocommerce-info,
body.hg-cart-page-active p.cart-empty,
body.hg-cart-page-active .woocommerce-notices-wrapper + .cart-empty {
  display: none !important;
}

@media (max-width: 768px) {
  .hg-checkout-layout .wp-block-woocommerce-checkout {
    width: calc(100% - 16px);
  }

  body.hg-checkout-page-active .wc-block-components-main,
  body.hg-checkout-page-active .wc-block-components-sidebar {
    padding: 16px;
    border-radius: 18px;
  }

  /* WooCommerce Blocks keep their own width constraints; reset them on mobile. */
  body.hg-checkout-page-active .wp-block-woocommerce-checkout {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.hg-checkout-page-active .wc-block-components-sidebar-layout {
    display: block !important;
    width: 100% !important;
  }

  body.hg-checkout-page-active .wc-block-components-main,
  body.hg-checkout-page-active .wc-block-components-sidebar {
    width: 100% !important;
    max-width: none !important;
  }

  body.hg-checkout-page-active .wc-block-components-sidebar {
    margin-top: 16px;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__description {
    display: none;
  }

  body.hg-checkout-page-active .wc-block-components-checkout-step {
    padding-bottom: 18px;
  }

  body.hg-checkout-page-active .wc-block-components-checkout-step + .wc-block-components-checkout-step {
    margin-top: 18px;
  }

  body.hg-checkout-flow-active .hg-container,
  body.hg-checkout-flow-active .hg-cart-main .hg-container {
    width: calc(100% - 16px);
  }

  body.hg-checkout-flow-active .hg-nav {
    width: calc(100% - 16px);
    margin-top: 10px;
    margin-bottom: 16px;
    padding: 0 14px;
  }

  .hg-cart-hero {
    padding: 16px 0 22px;
    margin-bottom: 0;
  }

  .hg-cart-hero__title {
    font-size: clamp(34px, 9vw, 46px);
    margin-bottom: 12px;
  }

  .hg-cart-hero__lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .hg-cart-breadcrumb {
    font-size: var(--hg-font-size-body, 16px);
    margin-bottom: 14px;
  }

  .hg-cart-eyebrow {
    font-size: var(--hg-font-size-body, 16px);
    margin-bottom: 8px;
  }

  .hg-cart-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-bottom: 16px;
  }

  .hg-cart-steps li,
  .hg-cart-steps li.is-current,
  .hg-cart-steps li.is-complete {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-height: 0;
    padding: 6px 4px;
    text-align: center;
    font-size: var(--hg-font-size-body, 16px);
  }

  .hg-cart-steps__link {
    flex-direction: column;
    gap: 3px;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .hg-cart-steps__num {
    width: 22px;
    height: 22px;
    font-size: var(--hg-font-size-body, 16px);
  }

  .hg-cart-steps__label {
    display: block !important;
    font-size: var(--hg-font-size-body, 16px);
    line-height: 1.15;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hg-cart-hero__actions {
    width: 100%;
  }

  .hg-cart-btn {
    width: 100%;
    min-height: 50px;
    font-size: var(--hg-font-size-body, 16px);
  }

  .hg-cart-main {
    padding: 4px 0 28px;
  }

  .hg-checkout-notice {
    margin-bottom: 14px;
    padding: 16px;
  }

  .hg-checkout-notice strong {
    font-size: 16px;
  }

  .hg-checkout-notice p {
    font-size: var(--hg-font-size-body, 16px);
  }

  body.hg-checkout-page-active #customer_details {
    padding: 18px 16px;
    border-radius: 18px;
  }

  body.hg-checkout-page-active .woocommerce-billing-fields h3,
  body.hg-checkout-page-active .woocommerce-shipping-fields h3,
  body.hg-checkout-page-active .woocommerce-additional-fields h3,
  body.hg-checkout-page-active #order_review_heading {
    font-size: 18px;
    margin-bottom: 14px;
  }

  body.hg-checkout-page-active #order_review_heading {
    padding: 18px 16px 0;
    border-radius: 18px 18px 0 0;
  }

  body.hg-checkout-page-active #order_review {
    padding: 0 16px 18px;
    border-radius: 0 0 18px 18px;
    position: static;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 12px 32px rgba(8, 39, 71, 0.08) !important;
  }

  body.hg-checkout-page-active #order_review_heading {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }

  body.hg-checkout-page-active #payment ul.payment_methods li {
    padding: 12px 14px;
  }

  body.hg-checkout-page-active #place_order {
    min-height: 54px !important;
    font-size: 16px;
  }

  body.hg-checkout-page-active .woocommerce-checkout-review-order-table th,
  body.hg-checkout-page-active .woocommerce-checkout-review-order-table td {
    padding: 14px 0 !important;
    font-size: var(--hg-font-size-body, 16px);
  }

  body.hg-checkout-page-active .woocommerce-checkout-review-order-table .order-total th,
  body.hg-checkout-page-active .woocommerce-checkout-review-order-table .order-total td {
    font-size: 20px;
    padding-top: 16px !important;
  }

  body.hg-checkout-page-active .form-row {
    margin-bottom: 14px;
  }

  body.hg-checkout-page-active .form-row-first,
  body.hg-checkout-page-active .form-row-last {
    width: 100% !important;
    float: none !important;
  }

  body.hg-checkout-page-active .woocommerce-form-coupon-toggle .woocommerce-info,
  body.hg-checkout-page-active .checkout_coupon {
    font-size: var(--hg-font-size-body, 16px);
  }

  .hg-checkout-submit-note {
    font-size: var(--hg-font-size-body, 16px);
    line-height: 1.65;
  }

  .hg-cart-trust {
    margin-top: -8px;
    padding-bottom: 36px;
  }

  .hg-cart-trust__intro h2 {
    font-size: 26px;
  }

  .hg-cart-trust-card {
    padding: 16px;
  }

  body.hg-checkout-flow-active .hg-site-footer {
    margin-top: 24px;
    padding: 32px 0 20px;
  }

  body.hg-checkout-flow-active .hg-site-footer .hg-container {
    width: calc(100% - 16px);
  }

  body.hg-checkout-flow-active .hg-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.hg-checkout-flow-active .hg-footer-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
  }

  body.hg-checkout-flow-active .hg-footer-legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    justify-content: start;
    text-align: left;
  }

  body.hg-checkout-flow-active .hg-footer-legal a {
    font-size: var(--hg-font-size-body, 16px);
    line-height: 1.4;
  }

  body.hg-checkout-flow-active .hg-footer-trust {
    font-size: var(--hg-font-size-body, 16px);
    line-height: 1.5;
  }

  body.hg-checkout-flow-active .hg-footer-note {
    max-width: none;
    font-size: var(--hg-font-size-body, 16px);
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  body.hg-checkout-flow-active .hg-container,
  body.hg-checkout-flow-active .hg-cart-main .hg-container {
    width: calc(100% - 12px);
  }
}

/* Mobile cart refinement: compact progress rail and readable secondary action. */
@media (max-width: 768px) {
  body.hg-cart-page-active .hg-cart-steps {
    gap: 8px;
    margin-bottom: 18px;
  }

  body.hg-cart-page-active .hg-cart-steps li,
  body.hg-cart-page-active .hg-cart-steps li.is-current,
  body.hg-cart-page-active .hg-cart-steps li.is-complete {
    min-height: 74px !important;
    padding: 7px 4px !important;
    border-radius: 18px !important;
    line-height: 1.1 !important;
    box-shadow: 0 8px 20px rgba(8, 39, 71, 0.06) !important;
  }

  body.hg-cart-page-active .hg-cart-steps li.is-current {
    border: 2px solid rgba(255, 107, 74, 0.5);
    background: linear-gradient(180deg, #fff, #fff8f5);
    box-shadow: 0 10px 24px rgba(255, 107, 74, 0.12);
  }

  body.hg-cart-page-active .hg-cart-steps__link {
    gap: 4px;
    line-height: 1.1 !important;
  }

  body.hg-cart-page-active .hg-cart-steps__num {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
  }

  body.hg-cart-page-active .hg-cart-steps__label {
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
  }

  body.hg-cart-page-active .hg-cart-hero__actions .hg-cart-btn {
    min-height: 50px;
  }
}

body.hg-cart-page-active .hg-cart-hero__actions .hg-cart-btn--ghost,
body.hg-cart-page-active .hg-cart-hero__actions .hg-cart-btn--ghost:visited {
  color: #082747 !important;
  -webkit-text-fill-color: #082747 !important;
  opacity: 1 !important;
  background: #fff !important;
  border-color: #b7cadb !important;
  text-shadow: none !important;
}

body.hg-cart-page-active .hg-cart-hero__actions .hg-cart-btn--ghost:hover,
body.hg-cart-page-active .hg-cart-hero__actions .hg-cart-btn--ghost:focus-visible {
  color: #ff6b4a !important;
  -webkit-text-fill-color: #ff6b4a !important;
  background: #fff8f5 !important;
  border-color: rgba(255, 107, 74, 0.55) !important;
}

/* Checkout hero: the back-to-cart action is a deep-green control. The global
   button contract sets its label to white, so keep its surface dark in every
   interactive state rather than allowing the ghost surface to inherit white. */
body.hg-checkout-flow-active .hg-cart-hero__actions .hg-cart-btn--ghost,
body.hg-checkout-flow-active .hg-cart-hero__actions .hg-cart-btn--ghost:visited,
body.hg-checkout-flow-active .hg-cart-hero__actions .hg-cart-btn--ghost:hover,
body.hg-checkout-flow-active .hg-cart-hero__actions .hg-cart-btn--ghost:focus-visible,
body.hg-checkout-flow-active .hg-cart-hero__actions .hg-cart-btn--ghost:active {
  background: #082747 !important;
  border-color: #082747 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

body.hg-checkout-flow-active .hg-cart-hero__actions .hg-cart-btn--ghost:hover,
body.hg-checkout-flow-active .hg-cart-hero__actions .hg-cart-btn--ghost:focus-visible {
  background: #0d3d68 !important;
  border-color: #0d3d68 !important;
}

/* Give the mobile cart the same horizontal rail as the header and reserve room for totals. */
@media (max-width: 768px) {
  body.hg-cart-page-active .entry-content.alignwide.wp-block-post-content {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
  }

  body.hg-cart-page-active .wp-block-woocommerce-cart.alignwide,
  body.hg-cart-page-active .wc-block-components-sidebar-layout.wc-block-cart {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.hg-cart-page-active .wp-block-woocommerce-cart-items-block {
    padding: 16px !important;
  }

  body.hg-cart-page-active .wc-block-cart-items__row {
    grid-template-columns: 76px minmax(0, 1fr) minmax(58px, max-content) !important;
    gap: 12px !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__image img {
    width: 76px !important;
    height: 76px !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__total,
  body.hg-cart-page-active .wc-block-cart-item__total .wc-block-formatted-money-amount {
    display: block !important;
    min-width: 58px !important;
    color: var(--hg-cart-navy) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/* Keep the custom mini cart a solid surface above the cart page on mobile. */
@media (max-width: 768px) {
  body.hg-cart-page-active.higuppy-sidebar-cart-open .higuppy-sidebar-cart,
  body.hg-cart-page-active .higuppy-sidebar-cart.is-open {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
  }

  body.hg-cart-page-active .higuppy-sidebar-cart.is-open .higuppy-sidebar-cart__content,
  body.hg-cart-page-active .higuppy-sidebar-cart.is-open .higuppy-sidebar-cart__fragment,
  body.hg-cart-page-active .higuppy-sidebar-cart.is-open .higuppy-sidebar-cart__items,
  body.hg-cart-page-active .higuppy-sidebar-cart.is-open .higuppy-sidebar-cart__footer {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    opacity: 1 !important;
  }
}

/* Final mobile checkout control and order-summary overrides. */
@media (max-width: 768px) {
  body.hg-checkout-page-active .wc-blocks-components-select__container {
    min-height: 56px !important;
  }

  body.hg-checkout-page-active .wc-blocks-components-select__label {
    top: 7px !important;
    z-index: 1 !important;
    color: var(--hg-cart-navy) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    transform: none !important;
  }

  body.hg-checkout-page-active .wc-blocks-components-select__select {
    min-height: 56px !important;
    padding: 22px 42px 7px 12px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__description {
    display: block !important;
    min-width: 0 !important;
    color: var(--hg-cart-navy) !important;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__description .wc-block-components-product-name {
    margin: 0 0 4px !important;
    color: var(--hg-cart-navy) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__description .wc-block-cart-item__prices,
  body.hg-checkout-page-active .wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
    margin: 0 !important;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
    display: none !important;
  }

  body.hg-checkout-page-active .wc-block-components-order-summary-item__individual-prices,
  body.hg-checkout-page-active .wc-block-components-order-summary-item__individual-price,
  body.hg-checkout-page-active .wc-block-components-order-summary-item__total-price,
body.hg-checkout-page-active .wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount,
  body.hg-checkout-page-active .wc-block-components-totals-item__value,
  body.hg-checkout-page-active .wc-block-components-totals-item__value .wc-block-formatted-money-amount {
    color: var(--hg-cart-navy) !important;
    font-weight: 800 !important;
  }
}

/* Mobile cart item: keep the product information and controls to two compact
   rows, with the price and quantity controls sharing the second row. */
@media (max-width: 768px) {
  body.hg-cart-page-active .wc-block-cart-items__row {
    grid-template-columns: 76px minmax(0, 1fr) minmax(58px, max-content) !important;
    gap: 12px !important;
    align-items: start !important;
    padding-block: 14px 16px !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__image {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__product {
    display: block !important;
    grid-column: 2 / 4 !important;
    grid-row: 1 / span 2 !important;
    min-width: 0 !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__product .wc-block-cart-item__wrap {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    grid-template-rows: auto 44px !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
    align-items: center !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__product .wc-block-components-product-name {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-right: 70px !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__product .wc-block-cart-item__prices {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__quantity {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    align-self: center !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
    min-height: 44px !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__total {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: start !important;
    position: relative !important;
    z-index: 2 !important;
  }
}

/* Desktop cart: image spans the item; title owns row one; unit price,
   quantity/remove, and line total share row two. */
@media (min-width: 1180px) {
  body.hg-cart-page-active .wc-block-cart-item__product .wc-block-cart-item__wrap {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 16px !important;
    row-gap: 10px !important;
    min-width: 0 !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__product .wc-block-components-product-name {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__product .wc-block-cart-item__prices {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__product .wc-block-cart-item__prices .wc-block-formatted-money-amount {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__quantity {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    align-self: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  body.hg-cart-page-active .wc-block-cart-items__row .wc-block-components-quantity-selector {
    box-sizing: border-box !important;
    width: 146px !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 10px !important;
  }

  body.hg-cart-page-active .wc-block-cart-items__row .wc-block-components-quantity-selector__input {
    box-sizing: border-box !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  body.hg-cart-page-active .wc-block-cart-items__row .wc-block-components-quantity-selector__button {
    box-sizing: border-box !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__total {
    vertical-align: top !important;
    text-align: right !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    transform: translateY(44px) !important;
  }

  body.hg-cart-page-active .wc-block-cart-item__total-price-and-sale-badge-wrapper,
  body.hg-cart-page-active .wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-formatted-money-amount {
    color: #ff4000 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }
}

/* Price hierarchy: every cart price is bold; the order total is the dominant
   coral amount in the sidebar. */
body.hg-cart-page-active .wc-block-cart-item__prices .wc-block-formatted-money-amount,
body.hg-cart-page-active .wc-block-cart-item__total .wc-block-formatted-money-amount,
body.hg-cart-page-active .wc-block-cart-item__total-price-and-sale-badge-wrapper,
body.hg-cart-page-active .wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-formatted-money-amount {
  font-weight: 800 !important;
}

body.hg-cart-page-active .wc-block-cart-item__total .wc-block-formatted-money-amount,
body.hg-cart-page-active .wc-block-cart-item__total-price-and-sale-badge-wrapper,
body.hg-cart-page-active .wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-formatted-money-amount {
  color: #ff4000 !important;
}

@media (min-width: 769px) {
  body.hg-cart-page-active .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
  body.hg-cart-page-active .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
  body.hg-cart-page-active .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    font-size: 25px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
  }

  body.hg-cart-page-active .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
  body.hg-cart-page-active .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    color: #ff6b4a !important;
  }
}

/* Keep constrained desktop hero elements centered inside the full-width
   checkout shell. */
@media (min-width: 769px) {
  body.hg-cart-page-active .hg-cart-hero__title,
  body.hg-cart-page-active .hg-cart-steps {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
