/* ================================================================
   MH Checkout — Stripe-style split (navy sticky summary | white form)
   ================================================================ */

:root {
  --mh-co-navy: #172c4b;
  --mh-co-navy-deep: #0f1e34;
  --mh-co-navy-soft: #2a4568;
  --mh-co-green: #48a625;
  --mh-co-muted: rgba(255, 255, 255, 0.72);
  --mh-co-line: rgba(255, 255, 255, 0.14);
  --mh-co-font-h: "Poppins", sans-serif;
  --mh-co-font-b: "Inter", sans-serif;
}

body.mh-checkout-page {
  background: #fff;
}

body.mh-checkout-page form.checkout.woocommerce-checkout {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  float: none !important;
}

body.mh-checkout-page .site-content,
body.mh-checkout-page #content,
body.mh-checkout-page .woocommerce {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.mh-checkout,
.mh-checkout * {
  box-sizing: border-box;
}

.mh-checkout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "summary"
    "panel";
  min-height: 100vh;
  margin: 0;
  width: 100%;
  font-family: var(--mh-co-font-b);
  -webkit-font-smoothing: antialiased;
}

.mh-checkout__summary {
  grid-area: summary;
}

.mh-checkout__panel {
  grid-area: panel;
}

/* ── Left summary ─────────────────────────────────────────────── */

.mh-checkout__summary {
  background:
    linear-gradient(155deg, rgba(72, 166, 37, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, var(--mh-co-navy) 0%, var(--mh-co-navy-deep) 100%);
  color: #fff;
  padding: 28px clamp(18px, 4vw, 40px) 24px;
}

.mh-checkout__summary-sticky {
  max-width: 460px;
  margin-inline: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.mh-checkout__summary-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mh-checkout__summary-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.mh-checkout__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  color: #fff !important;
}

.mh-checkout__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
}

.mh-checkout__brand-text {
  font-family: var(--mh-co-font-h);
  font-weight: 500;
  font-size: 1.0625rem;
  color: #fff;
}

.mh-checkout__hero {
  margin-bottom: 28px;
}

.mh-checkout__hero-eyebrow {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mh-co-green);
}

.mh-checkout__hero-label {
  margin: 0 0 10px;
  font-family: var(--mh-co-font-h);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

.mh-checkout__hero-total {
  margin: 0;
  font-family: var(--mh-co-font-h);
  font-size: clamp(2.15rem, 5vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.mh-checkout__hero-total .woocommerce-Price-amount,
.mh-checkout__hero-total .amount {
  color: #fff;
  font-weight: 500;
}

.mh-checkout__review {
  margin: 0;
}

.mh-checkout__table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  color: #fff;
  margin: 0 0 18px;
}

.mh-checkout__table th,
.mh-checkout__table td {
  border: 0;
  padding: 12px 0;
  background: transparent !important;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  vertical-align: middle;
}

.mh-checkout__table tfoot th {
  text-align: left;
  color: var(--mh-co-muted);
  font-weight: 400;
}

.mh-checkout__table tfoot td {
  text-align: right;
  font-weight: 400;
}

.mh-checkout__table tfoot tr {
  border-top: 1px solid var(--mh-co-line);
}

.mh-checkout__table .order-total th,
.mh-checkout__table .order-total td {
  font-family: var(--mh-co-font-h);
  font-weight: 500;
  font-size: 1.0625rem;
  color: #fff;
  padding-top: 14px;
}

.mh-checkout__line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--mh-co-line);
}

.mh-checkout__line-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.mh-checkout__remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--mh-co-line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mh-checkout__remove:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(254, 202, 202, 0.5);
}

.mh-checkout__line-media {
  position: relative;
  width: 52px;
  height: 52px;
}

.mh-checkout__item-img {
  width: 52px !important;
  height: 52px !important;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #fff;
}

.mh-checkout__qty {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mh-co-green);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mh-checkout__line-name {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
}

.mh-checkout__line-copy .variation,
.mh-checkout__line-copy dl {
  margin: 4px 0 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--mh-co-muted);
}

.mh-checkout__line-copy .variation dt,
.mh-checkout__line-copy .variation dd,
.mh-checkout__line-copy dl dt,
.mh-checkout__line-copy dl dd {
  display: inline;
  margin: 0;
  float: none;
}

.mh-checkout__line-copy .variation dt::after,
.mh-checkout__line-copy dl dt::after {
  content: " ";
}

.mh-checkout__line-copy .variation dd::after,
.mh-checkout__line-copy dl dd::after {
  content: "";
  display: block;
  margin-bottom: 2px;
}

.mh-checkout__line-copy .variation p,
.mh-checkout__line-copy dl p {
  display: inline;
  margin: 0;
}

.mh-checkout__line-price {
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
}

.mh-checkout__promo {
  margin: 8px 0 0;
}

.mh-checkout__promo-toggle {
  border: 0;
  background: none;
  padding: 0;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mh-checkout__promo-toggle:hover {
  color: rgba(255, 255, 255, 0.85);
}

.mh-checkout__promo-form {
  margin-top: 12px;
}

.mh-checkout__promo-row {
  display: flex;
  gap: 8px;
}

.mh-checkout__promo-row .input-text {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid var(--mh-co-line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 11px 12px;
  font-size: 0.875rem;
}

.mh-checkout__promo-row .input-text::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.mh-checkout__promo-apply {
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--mh-co-navy);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0 14px;
  cursor: pointer;
}

.mh-checkout__promo-msg {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
  word-break: break-word;
  max-width: 100%;
}

.mh-checkout__promo-msg.is-err {
  background: rgba(185, 28, 28, 0.35);
  border: 1px solid rgba(254, 202, 202, 0.45);
  color: #fecaca;
}

.mh-checkout__promo-msg.is-ok {
  background: rgba(72, 166, 37, 0.22);
  border: 1px solid rgba(187, 247, 208, 0.4);
  color: #bbf7d0;
}

.mh-checkout__summary .woocommerce-error,
.mh-checkout__summary .woocommerce-message,
.mh-checkout__summary .woocommerce-info,
.mh-checkout__summary .woocommerce-NoticeGroup {
  display: none !important;
}

.mh-checkout__review,
.mh-checkout__promo {
  flex-shrink: 0;
}

.mh-checkout__footer {
  margin-top: auto;
  padding-top: 36px;
}

.mh-checkout__secure {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.mh-checkout__secure-logo {
  display: block;
  width: 48px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.mh-checkout__secure-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
}

.mh-checkout__copy {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.mh-checkout__legal {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
}

.mh-checkout__legal a {
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none;
}

.mh-checkout__legal a:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* ── Right form panel ─────────────────────────────────────────── */

.mh-checkout__panel {
  background: #fff;
  color: var(--mh-co-navy);
  padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 40px) 56px;
}

.mh-checkout__panel-inner {
  max-width: 480px;
  margin-inline: auto;
}

.mh-checkout__notices {
  margin: 0 0 18px;
}

.mh-checkout__notices:empty {
  display: none;
  margin: 0;
}

body.mh-checkout-page .mh-checkout__notices .woocommerce-error,
body.mh-checkout-page .mh-checkout__notices .woocommerce-message,
body.mh-checkout-page .mh-checkout__notices .woocommerce-info,
body.mh-checkout-page .mh-checkout__notices .woocommerce-NoticeGroup,
body.mh-checkout-page .mh-checkout__notices .woocommerce-NoticeGroup .woocommerce-error,
body.mh-checkout-page .mh-checkout__notices .woocommerce-NoticeGroup .woocommerce-message {
  list-style: none !important;
  position: relative !important;
  margin: 0 0 12px !important;
  padding: 14px 16px 14px 44px !important;
  border-radius: 12px !important;
  border: 1px solid #fecaca !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
  font-size: 0.875rem;
  line-height: 1.45;
}

body.mh-checkout-page .mh-checkout__notices .woocommerce-message,
body.mh-checkout-page .mh-checkout__notices .woocommerce-NoticeGroup .woocommerce-message {
  border-color: #bbf7d0 !important;
  background: #f0fdf4 !important;
  color: #166534 !important;
}

/* Keep Woo icon clear of the error text */
body.mh-checkout-page .mh-checkout__notices .woocommerce-error::before,
body.mh-checkout-page .mh-checkout__notices .woocommerce-message::before,
body.mh-checkout-page .mh-checkout__notices .woocommerce-info::before,
body.mh-checkout-page .mh-checkout__notices .woocommerce-NoticeGroup .woocommerce-error::before {
  position: absolute !important;
  top: 15px !important;
  left: 14px !important;
  right: auto !important;
  margin: 0 !important;
  width: 1.1em !important;
  height: 1.1em !important;
  line-height: 1.1 !important;
  font-size: 1.05em !important;
}

body.mh-checkout-page .mh-checkout__notices li {
  margin: 0 0 6px;
  padding: 0 !important;
  list-style: none !important;
  position: static !important;
}

body.mh-checkout-page .mh-checkout__notices li::before,
body.mh-checkout-page .mh-checkout__notices li::marker {
  content: none !important;
  display: none !important;
}

body.mh-checkout-page .mh-checkout__notices li:last-child {
  margin-bottom: 0;
}


.mh-checkout__title {
  font-family: var(--mh-co-font-h);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

body.mh-checkout-page .mh-checkout__panel .woocommerce-billing-fields h3,
body.mh-checkout-page .mh-checkout__panel .woocommerce-shipping-fields h3,
body.mh-checkout-page .mh-checkout__panel .woocommerce-additional-fields h3,
body.mh-checkout-page #order_review_heading,
body.mh-checkout-page .mh-checkout__panel h3 {
  font-family: var(--mh-co-font-h);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--mh-co-navy);
}

body.mh-checkout-page .mh-checkout__customer.col2-set {
  display: block;
  width: 100%;
}

body.mh-checkout-page .mh-checkout__customer .col-1,
body.mh-checkout-page .mh-checkout__customer .col-2 {
  width: 100% !important;
  float: none !important;
  max-width: 100%;
}

body.mh-checkout-page .mh-checkout__panel .form-row {
  margin: 0 0 14px;
  padding: 0;
}

body.mh-checkout-page .mh-checkout__panel label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.mh-checkout__phone-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #b91c1c;
  line-height: 1.35;
}

.mh-checkout__phone-hint[hidden] {
  display: none;
}

body.mh-checkout-page .mh-checkout__panel .input-text,
body.mh-checkout-page .mh-checkout__panel select,
body.mh-checkout-page .mh-checkout__panel textarea,
body.mh-checkout-page .mh-checkout__panel .select2-selection {
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  min-height: 46px;
  padding: 10px 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 0.9375rem;
  color: var(--mh-co-navy);
  accent-color: var(--mh-co-navy);
}

body.mh-checkout-page .mh-checkout__panel select {
  color: var(--mh-co-navy) !important;
}

body.mh-checkout-page .mh-checkout__panel select option,
body.mh-checkout-page .mh-checkout__panel select optgroup {
  background: #fff;
  color: var(--mh-co-navy);
}

body.mh-checkout-page .mh-checkout__panel select option:checked,
body.mh-checkout-page .mh-checkout__panel select option:hover,
body.mh-checkout-page .mh-checkout__panel select option:focus {
  background: var(--mh-co-navy) linear-gradient(0deg, var(--mh-co-navy) 0%, var(--mh-co-navy) 100%);
  color: #fff;
}

/* Select2 (WooCommerce country/state) */
body.mh-checkout-page .select2-container--default .select2-results__option--highlighted[aria-selected],
body.mh-checkout-page .select2-container--default .select2-results__option--highlighted[data-selected],
body.mh-checkout-page .select2-results__option--highlighted {
  background-color: var(--mh-co-navy) !important;
  color: #fff !important;
}

body.mh-checkout-page .select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: rgba(23, 44, 75, 0.08) !important;
  color: var(--mh-co-navy) !important;
}

body.mh-checkout-page .select2-dropdown {
  border-color: #d1d5db !important;
  border-radius: 10px !important;
  overflow: hidden;
}

body.mh-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--mh-co-navy) !important;
  line-height: 44px !important;
}

body.mh-checkout-page .mh-checkout__panel .input-text:focus,
body.mh-checkout-page .mh-checkout__panel select:focus {
  border-color: var(--mh-co-navy) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 44, 75, 0.12) !important;
}

body.mh-checkout-page #payment {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 0 0;
}

body.mh-checkout-page #payment ul.payment_methods {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 18px;
  background: #fafbfc;
}

body.mh-checkout-page #payment div.payment_box {
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 10px;
}

body.mh-checkout-page #payment div.payment_box::before {
  border-bottom-color: #f3f4f6;
}

/* Hide “Securely Save to Account” / tokenize checkbox */
body.mh-checkout-page #payment .js-sv-wc-payment-gateway-payment-form-save-payment-method,
body.mh-checkout-page #payment .wc-authorize-net-cim-credit-card-save-new-payment-method,
body.mh-checkout-page #payment .form-row-save-payment-method,
body.mh-checkout-page #payment label[for*="tokenize-payment"],
body.mh-checkout-page #payment label[for*="tokenize_payment"],
body.mh-checkout-page #payment input[name*="tokenize-payment"],
body.mh-checkout-page #payment input[name*="tokenize_payment"],
body.mh-checkout-page #payment input[id*="tokenize-payment"],
body.mh-checkout-page #payment input[id*="tokenize_payment"],
body.mh-checkout-page #payment .woocommerce-SavedPaymentMethods-saveNew {
  display: none !important;
}

/* Card fields — keep Authorize.Net / gateway inputs at normal form size */
body.mh-checkout-page #payment label,
body.mh-checkout-page #payment .payment_box label,
body.mh-checkout-page #payment .form-row label {
  color: #374151 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
}

body.mh-checkout-page #payment .woocommerce-validated label,
body.mh-checkout-page #payment .woocommerce-invalid label {
  color: #374151 !important;
}

body.mh-checkout-page #payment .woocommerce-invalid label {
  color: #b91c1c !important;
}

body.mh-checkout-page #payment input.input-text,
body.mh-checkout-page #payment input[type="text"],
body.mh-checkout-page #payment input[type="tel"],
body.mh-checkout-page #payment input[type="number"],
body.mh-checkout-page #payment input[type="password"],
body.mh-checkout-page #payment .form-row input,
body.mh-checkout-page #payment .payment_box input {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  min-height: 42px !important;
  height: 42px !important;
  max-height: 46px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  transform: none !important;
  zoom: 1 !important;
}

body.mh-checkout-page #payment input::placeholder,
body.mh-checkout-page #payment input::-webkit-input-placeholder,
body.mh-checkout-page #payment input::-moz-placeholder {
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1.35 !important;
  opacity: 0.55;
  color: #6b7280 !important;
}

body.mh-checkout-page #payment .form-row-first,
body.mh-checkout-page #payment .form-row-last {
  width: 48% !important;
}

body.mh-checkout-page #place_order,
body.mh-checkout-page .mh-checkout__panel #place_order.button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 8px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--mh-co-navy) !important;
  color: #fff !important;
  font-family: var(--mh-co-font-b);
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(23, 44, 75, 0.22);
}

body.mh-checkout-page #place_order:hover {
  background: var(--mh-co-navy-soft) !important;
  box-shadow: 0 10px 28px rgba(23, 44, 75, 0.22);
}

body.mh-checkout-page .woocommerce-privacy-policy-text,
body.mh-checkout-page .woocommerce-terms-and-conditions-wrapper {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Desktop sticky summary ───────────────────────────────────── */

@media (min-width: 960px) {
  .mh-checkout {
    grid-template-columns: minmax(340px, 46%) minmax(0, 54%);
    grid-template-areas: "summary panel";
    align-items: stretch;
    min-height: 100vh;
  }

  .mh-checkout__summary {
    position: relative;
    min-height: 100vh;
    padding-block: 32px 28px;
    overflow: visible;
  }

  .mh-checkout__summary-inner {
    position: sticky;
    top: 24px;
    max-width: 420px;
    width: 100%;
    margin-left: auto;
    margin-right: clamp(24px, 5vw, 64px);
    min-height: calc(100vh - 56px);
  }

  .mh-checkout__summary-sticky {
    position: static;
    top: auto;
    max-width: none;
    margin: 0;
    min-height: 0;
  }

  .mh-checkout__promo-mobile,
  .mh-checkout__mobile-pay-meta {
    display: none !important;
  }

  .mh-checkout__panel {
    padding-block: 40px 72px;
    min-width: 0;
  }

  .mh-checkout__panel-inner {
    margin-left: clamp(24px, 5vw, 64px);
    margin-right: auto;
  }
}

@media (max-width: 959px) {
  .mh-checkout {
    grid-template-areas:
      "logo"
      "toggle"
      "peek"
      "panel";
    min-height: 0;
  }

  /* Flatten so logo / toggle / peek get their own grid rows */
  .mh-checkout__summary,
  .mh-checkout__summary-inner {
    display: contents;
    min-height: 0;
    padding: 0;
  }

  .mh-checkout__summary-top {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 16px 16px 10px;
    background:
      linear-gradient(155deg, rgba(72, 166, 37, 0.12) 0%, transparent 42%),
      linear-gradient(180deg, var(--mh-co-navy) 0%, var(--mh-co-navy-deep) 100%);
  }

  .mh-checkout__summary-top .mh-checkout__logo,
  .mh-checkout__summary-top img {
    height: 36px;
    max-width: min(180px, 55vw);
  }

  .mh-checkout__summary-toggle {
    grid-area: toggle;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, var(--mh-co-navy) 0%, var(--mh-co-navy-deep) 100%);
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
  }

  .mh-checkout__summary-toggle-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .mh-checkout__summary-toggle-icon {
    display: inline-flex;
    flex-shrink: 0;
    opacity: 0.9;
  }

  .mh-checkout__summary-toggle-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    opacity: 0.85;
    transition: transform 0.2s ease;
  }

  .mh-checkout__summary.is-open .mh-checkout__summary-toggle-chevron {
    transform: rotate(180deg);
  }

  .mh-checkout__summary-toggle-total {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
  }

  .mh-checkout__summary-toggle-total .woocommerce-Price-amount,
  .mh-checkout__summary-toggle-total .amount {
    color: #fff;
    font-weight: 600;
  }

  .mh-checkout__summary-sticky {
    grid-area: peek;
    display: none;
    flex-direction: column;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 12px 16px 16px;
    background: linear-gradient(180deg, var(--mh-co-navy-deep) 0%, var(--mh-co-navy) 100%);
    color: #fff;
  }

  .mh-checkout__summary.is-open .mh-checkout__summary-sticky {
    display: flex;
  }

  .mh-checkout__summary-sticky .mh-checkout__hero,
  .mh-checkout__summary-sticky .mh-checkout__footer,
  .mh-checkout__summary-sticky .mh-checkout__promo-desktop,
  .mh-checkout__summary-sticky .mh-checkout__table tfoot {
    display: none !important;
  }

  .mh-checkout__summary-sticky .mh-checkout__review,
  .mh-checkout__summary-sticky .mh-checkout__table,
  .mh-checkout__summary-sticky .mh-checkout__table tbody {
    display: block;
    width: 100%;
  }

  .mh-checkout__summary-sticky .mh-checkout__table tr.cart_item,
  .mh-checkout__summary-sticky .mh-checkout__table td {
    display: block;
    width: 100%;
    padding: 0;
  }

  .mh-checkout__summary-sticky .mh-checkout__line {
    margin-bottom: 0;
  }

  .mh-checkout__panel {
    grid-area: panel;
    padding: 24px 16px 48px;
  }

  .mh-checkout__promo-desktop {
    display: none !important;
  }

  .mh-checkout__mobile-pay-meta {
    display: block;
    margin: 20px 0 8px;
  }

  .mh-checkout__mobile-totals {
    display: block;
    margin: 0 0 12px;
    padding: 0 0 4px;
    border-top: 1px solid #e5eaf1;
  }

  .mh-checkout__mobile-totals[hidden] {
    display: none;
  }

  .mh-checkout__mobile-totals:not([hidden]) {
    padding-top: 16px;
  }

  .mh-checkout__mobile-totals .mh-checkout__table {
    color: var(--mh-co-ink, #172c4b);
    margin: 0;
  }

  .mh-checkout__mobile-totals .mh-checkout__table th,
  .mh-checkout__mobile-totals .mh-checkout__table td {
    color: inherit;
    padding: 10px 0;
    font-size: 0.9375rem;
  }

  .mh-checkout__mobile-totals .mh-checkout__table .order-total th,
  .mh-checkout__mobile-totals .mh-checkout__table .order-total td {
    font-size: 1.05rem;
    font-weight: 600;
  }

  .mh-checkout__promo-mobile {
    display: block;
    margin: 0 0 8px;
  }

  .mh-checkout__promo-mobile .mh-checkout__promo-toggle {
    color: var(--mh-co-green, #48a625);
  }

  .mh-checkout__promo-mobile .mh-checkout__promo-row .input-text {
    background: #fff;
    border-color: #d7e0ea;
    color: var(--mh-co-ink, #172c4b);
  }

  .mh-checkout__footer {
    padding-top: 28px;
  }

  body.mh-checkout-page .mh-checkout__panel .form-row-first,
  body.mh-checkout-page .mh-checkout__panel .form-row-last,
  body.mh-checkout-page #payment .form-row-first,
  body.mh-checkout-page #payment .form-row-last {
    width: 100% !important;
    float: none !important;
  }
}

/* Desktop: hide mobile summary accordion bar */
@media (min-width: 960px) {
  .mh-checkout__summary-toggle {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #place_order {
    transition: none;
  }
}

/* ── Empty checkout / empty cart ──────────────────────────────── */

.mh-checkout-empty {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
  background:
    linear-gradient(160deg, rgba(72, 166, 37, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #172c4b 0%, #0f1e34 100%);
  color: #fff;
  text-align: center;
  font-family: var(--mh-co-font-b, "Inter", sans-serif);
}

.mh-checkout-empty__brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 36px;
  text-decoration: none !important;
  color: #fff !important;
}

.mh-checkout-empty__brand .mh-checkout__logo,
.mh-checkout-empty__brand img {
  height: 44px;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
}

.mh-checkout-empty__brand-text {
  font-family: var(--mh-co-font-h, "Poppins", sans-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.mh-checkout-empty__card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mh-checkout-empty__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mh-co-green, #48a625);
}

.mh-checkout-empty__title {
  margin: 0 0 12px;
  font-family: var(--mh-co-font-h, "Poppins", sans-serif);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}

.mh-checkout-empty__text {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.mh-checkout-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff !important;
  color: #172c4b !important;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.mh-checkout-empty__cta:hover {
  background: var(--mh-co-green, #48a625) !important;
  color: #fff !important;
}

body.mh-checkout-empty-page .return-to-shop,
body.mh-checkout-empty-page .wc-empty-cart-message,
body.mh-checkout-empty-page .cart-empty {
  display: none !important;
}

body.mh-checkout-empty-page #main,
body.mh-checkout-empty-page .site-content,
body.mh-checkout-empty-page .woocommerce {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* ---- Checkout captcha / honeypot ---- */
.mh-checkout__captcha {
  margin: 0 0 16px;
}

.mh-checkout__hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mh-checkout__recaptcha-wrap {
  margin: 4px 0 8px;
}

.mh-checkout__recaptcha-label {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #172c4b;
}

.mh-checkout__recaptcha {
  min-height: 78px;
}

.mh-checkout__recaptcha-err {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #b91c1c;
}

.mh-checkout__recaptcha-err[hidden] {
  display: none !important;
}
