/**
 * Habesha Market - Cart redesign, add-to-cart modal, product page refinements, checkout, vertical spacing
 * Part of the site CSS moved from Customizer > Additional CSS on 2026-11-15 (original lines 1115-1431).
 * Files 01-08 load in number order; the order matters (later rules win), so keep it.
 */

/* === HM CART REDESIGN (added 2026-09-20): card layout for the WooCommerce cart block, scoped to .wp-block-woocommerce-cart. CSS only. Remove this block to roll back. === */
.wp-block-woocommerce-cart { --hm-cart-border: #e7e3da; --hm-cart-green: #545934; --hm-cart-cream: #faf9f6; }
.wp-block-woocommerce-cart .wc-block-components-sidebar-layout { gap: 32px; align-items: flex-start; }
.wp-block-woocommerce-cart .wc-block-cart__main { padding-right: 0; }
.wp-block-woocommerce-cart .wc-block-cart__sidebar { padding-left: 0; }

/* item list card */
.wp-block-woocommerce-cart table.wc-block-cart-items { background: #fff; border: 1px solid var(--hm-cart-border); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; margin: 0; }
.wp-block-woocommerce-cart .wc-block-cart-items__header th { background: var(--hm-cart-cream); border-bottom: 1px solid var(--hm-cart-border); padding: 14px 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #5f5f58; }
.wp-block-woocommerce-cart .wc-block-cart-items__row td { border-top: 0; border-bottom: 1px solid var(--hm-cart-border); padding: 20px; vertical-align: top; }
.wp-block-woocommerce-cart .wc-block-cart-items__row:last-child td { border-bottom: 0; }
.wp-block-woocommerce-cart .wc-block-cart-item__image img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; border: 1px solid var(--hm-cart-border); background: var(--hm-cart-cream); }
.wp-block-woocommerce-cart .wc-block-components-product-name { font-weight: 600; color: #1f2a1f; text-decoration: none; }
.wp-block-woocommerce-cart .wc-block-components-product-name:hover { color: var(--hm-cart-green); text-decoration: underline; }
.wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price { font-weight: 700; color: #1f2a1f; }

/* quantity stepper */
.wp-block-woocommerce-cart .wc-block-components-quantity-selector { border: 1px solid var(--hm-cart-border); border-radius: 6px; background: #fff; overflow: hidden; }
.wp-block-woocommerce-cart .wc-block-components-quantity-selector::after { display: none; }
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button { min-width: 40px; min-height: 40px; }
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link { color: #6b6b63; font-size: 13px; text-decoration: none; min-height: 40px; }
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover { color: #b3402a; text-decoration: underline; }

/* order summary card */
.wp-block-woocommerce-cart .wc-block-cart__sidebar { background: var(--hm-cart-cream); border: 1px solid var(--hm-cart-border); border-radius: 8px; padding: 24px; }
.wp-block-woocommerce-cart .wc-block-cart__totals-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 0 0 12px; text-align: left; color: #1f2a1f; }
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label, .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-weight: 700; font-size: 1.15em; }
.wp-block-woocommerce-cart .wc-block-components-totals-wrapper { border-color: var(--hm-cart-border); }
.wp-block-woocommerce-cart .wc-block-cart__submit-button { width: 100%; background: var(--hm-cart-green); color: #fff; border-radius: 6px; min-height: 48px; font-weight: 600; }
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover { background: #454a2a; color: #fff; }
.wp-block-woocommerce-cart .wc-block-cart__submit-button:focus-visible { outline: 3px solid #b3402a; outline-offset: 2px; }

/* cross-sell / empty-cart product cards */
.wp-block-woocommerce-cart .wp-block-woocommerce-product-collection .wc-block-product, .wp-block-woocommerce-cart .wc-block-grid__product { background: #fff; border: 1px solid var(--hm-cart-border); border-radius: 8px; padding: 12px; }
.wp-block-woocommerce-cart .wp-block-woocommerce-product-collection h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; }

@media (max-width: 767px) {
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout { gap: 20px; }
  .wp-block-woocommerce-cart .wc-block-cart-items__row td { padding: 16px; }
  .wp-block-woocommerce-cart .wc-block-cart-item__image img { width: 72px; height: 72px; }
  .wp-block-woocommerce-cart .wc-block-cart__sidebar { padding: 20px 16px; }
}
/* === /HM CART REDESIGN === */
/* === HM CART MOBILE (added 2026-09-20): Woo lays cart rows out as a fixed-width grid on phones (80px 132px 11px 79px = 302px+), which overflows the card. !important is needed to beat Woo's mobile grid rules. Remove to roll back. === */
@media (max-width: 767px) {
  .wp-block-woocommerce-cart table.wc-block-cart-items, .wp-block-woocommerce-cart table.wc-block-cart-items tbody { display: block !important; width: 100% !important; }
  .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row { display: grid !important; grid-template-columns: 64px minmax(0, 1fr) auto !important; column-gap: 12px; padding: 16px 14px !important; border-bottom: 1px solid var(--hm-cart-border); }
  .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row:last-child { border-bottom: 0; }
  .wp-block-woocommerce-cart .wc-block-cart-items__row td { padding: 0 !important; border-bottom: 0; }
  .wp-block-woocommerce-cart .wc-block-cart-item__image img { width: 64px; height: 64px; }
  .wp-block-woocommerce-cart .wc-block-cart-item__total { text-align: right; white-space: nowrap; }
}
/* === /HM CART MOBILE === */
/* === HM CART EMPTY (added 2026-09-20): cart page intro + empty-cart layout. Markup lives in the Cart page content (empty-cart block). Remove this block to roll back; page content backup in option hm_cart_content_backup_20260920. === */
.hm-cart-title { position: relative; margin: 0 0 6px; padding-top: 18px; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; text-align: left; color: #1f2a1f; }
.hm-cart-title::before { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: #c08a4a; }
.hm-cart-subtitle { margin: 0 0 32px; color: #5f5f58; text-align: left; }
.wp-block-woocommerce-empty-cart-block .hm-cart-empty { gap: 32px; margin-bottom: 8px; }
.hm-cart-empty__title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; margin: 0 0 16px; text-align: left; color: #1f2a1f; }
.hm-cart-empty__text { max-width: 30ch; margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: #4a4a44; }
.hm-cart-empty .wp-block-button__link { background: #545934; color: #fff; border-radius: 6px; padding: 14px 24px; min-height: 48px; font-weight: 600; }
.hm-cart-empty .wp-block-button__link:hover { background: #454a2a; }
.hm-cart-empty .wp-block-button__link:focus-visible { outline: 3px solid #b3402a; outline-offset: 2px; }
.hm-cart-empty__image, .hm-cart-empty__image img { margin: 0; width: 100%; height: auto; }
.hm-cart-empty__image img { border-radius: 8px; mix-blend-mode: multiply; }
.wp-block-woocommerce-empty-cart-block .hm-cart-rule { width: 100%; max-width: none; margin: 32px 0 24px; border: 0; border-top: 1px solid #e7e3da; background: none; height: 0; }
.hm-cart-featured-head { margin-bottom: 20px; align-items: center; }
.hm-cart-featured-head h2 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(26px, 3.5vw, 34px); color: #1f2a1f; }
.hm-cart-featured-head p { margin: 0; }
.hm-cart-featured-head a { color: #545934; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.hm-cart-featured-head a:hover { text-decoration: underline; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product { background: #fff; border: 1px solid #e7e3da; border-radius: 8px; padding: 0 0 14px; overflow: hidden; text-align: left; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title, .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price { padding: 0 14px; text-align: left; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart { padding: 0 14px; text-align: left; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link { display: block; background: #fff; color: #545934; border: 1px solid #545934; border-radius: 6px; text-align: center; font-weight: 600; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:hover { background: #545934; color: #fff; }
@media (max-width: 767px) {
  .wp-block-woocommerce-empty-cart-block .hm-cart-empty { gap: 16px; }
  .hm-cart-empty__text { max-width: none; }
  .hm-cart-empty .wp-block-buttons, .hm-cart-empty .wp-block-button, .hm-cart-empty .wp-block-button__link { width: 100%; text-align: center; }
}
/* === /HM CART EMPTY === */
/* === HM CART ALIGN (added 2026-09-20): align cart block with the page intro. Remove to roll back. === */
.wp-block-woocommerce-cart.alignwide { padding-left: 0; padding-right: 0; }
/* === /HM CART ALIGN === */
/* === HM CART GRID (added 2026-09-20): two-up product cards on phones so they are easy to scan. Remove to roll back. === */
@media (max-width: 767px) {
  .wp-block-woocommerce-empty-cart-block .wc-block-grid__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
  .wp-block-woocommerce-empty-cart-block .wc-block-grid__product { width: auto; max-width: none; margin: 0; }
  .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title { font-size: 15px; }
}
/* === /HM CART GRID === */
/* === HM CART CARDS (added 2026-09-20): correct card image ratio and padding for the empty-cart product grid. Remove to roll back. === */
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title, .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price, .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart { padding-left: 0; padding-right: 0; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product { padding-bottom: 0; }
/* === /HM CART CARDS === */
/* === HM CART GRID 2 (added 2026-09-20): Kadence's product grid rule wins on specificity, hence !important. Remove to roll back. === */
@media (max-width: 767px) {
  .wp-block-woocommerce-empty-cart-block ul.wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* === /HM CART GRID 2 === */
/* === HM CART EXTRAS (added 2026-09-20): breadcrumb and quote on the cart page. Remove to roll back; content backup in option hm_cart_content_backup2_20260920. === */
.hm-cart-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: #5f5f58; }
.hm-cart-breadcrumb a { color: #5f5f58; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.hm-cart-breadcrumb a:hover { color: #545934; text-decoration: underline; }
.hm-cart-breadcrumb [aria-current] { color: #1f2a1f; }
.hm-cart-empty__quote { margin: 12px 0 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.3; color: #4a4a44; text-align: center; }
.hm-cart-empty__quote::after { content: ''; display: block; width: 40px; height: 2px; margin: 10px auto 0; background: #c08a4a; }
@media (min-width: 900px) {
  .hm-cart-empty .wp-block-column:last-child { position: relative; }
  .hm-cart-empty__image { margin-right: 150px; }
  .hm-cart-empty__quote { position: absolute; right: 0; top: 30%; width: 150px; margin: 0; text-align: left; font-size: 26px; }
  .hm-cart-empty__quote::after { margin: 12px 0 0; }
}
/* === /HM CART EXTRAS === */
/* === HM CART EXTRAS 2 (added 2026-09-20): reserve room for the quote beside the basket. Remove to roll back. === */
@media (min-width: 900px) {
  .hm-cart-empty .wp-block-column:last-child { padding-right: 150px; }
}
/* === /HM CART EXTRAS 2 === */
/* === HM CART DEDUPE (added 2026-09-20): when the cart is empty, 'Din kurv er tom' is the visible heading; the 'Din kurv' h1 and subtitle stay for screen readers only (page keeps exactly one h1). Remove to roll back. === */
.entry-content:has(.wp-block-woocommerce-empty-cart-block) .hm-cart-title, .entry-content:has(.wp-block-woocommerce-empty-cart-block) .hm-cart-subtitle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.entry-content:has(.wp-block-woocommerce-empty-cart-block) .hm-cart-title::before { display: none; }
.entry-content:has(.wp-block-woocommerce-empty-cart-block) .hm-cart-empty__title { position: relative; padding-top: 18px; font-size: clamp(34px, 5vw, 48px); }
.entry-content:has(.wp-block-woocommerce-empty-cart-block) .hm-cart-empty__title::before { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: #c08a4a; }
/* === /HM CART DEDUPE === */
/* === HM CART COLUMNS (added 2026-09-20): items left, summary right on desktop. 65% + 35% + my 32px gap overflowed and wrapped the summary underneath. Remove to roll back. === */
@media (min-width: 783px) {
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout { flex-wrap: nowrap; }
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-cart__main { flex: 1 1 0; width: auto; min-width: 0; }
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-cart__sidebar { flex: 0 0 360px; width: 360px; box-sizing: border-box; }
}
/* === /HM CART COLUMNS === */
/* === HM CART SPACING (added 2026-09-20): cart spacing, border colour and h1 size moved onto the site's shared tokens (--hm-space-*, --hm-gap, --hm-border) so it matches the other pages. Remove to roll back. === */
.wp-block-woocommerce-cart { --hm-cart-border: var(--hm-border); }
.hm-cart-breadcrumb { margin: 0 0 var(--hm-space-1); }
.hm-cart-title { padding-top: var(--hm-space-2); margin: 0 0 var(--hm-space-1); font-size: clamp(32px, 5vw, 40px); }
.hm-cart-subtitle { margin: 0 0 var(--hm-space-4); }
.hm-cart-empty__title { margin: 0 0 var(--hm-space-2); font-size: clamp(32px, 5vw, 40px); }
.hm-cart-empty__text { margin: 0 0 var(--hm-space-3); }
.wp-block-woocommerce-empty-cart-block .hm-cart-empty { gap: var(--hm-space-4); margin-bottom: 0; }
.wp-block-woocommerce-empty-cart-block .hm-cart-rule { margin: var(--hm-space-4) 0 var(--hm-space-3); border-top-color: var(--hm-border); }
.hm-cart-featured-head { margin-bottom: var(--hm-space-2); }
.hm-cart-featured-head h2 { font-size: clamp(26px, 3.5vw, 32px); }
.wp-block-woocommerce-cart .wc-block-components-sidebar-layout { gap: var(--hm-space-4); }
.wp-block-woocommerce-cart .wc-block-cart__sidebar { padding: var(--hm-space-3); }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product { border-color: var(--hm-border); }
@media (max-width: 767px) {
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout { gap: var(--hm-space-3); }
  .wp-block-woocommerce-empty-cart-block .hm-cart-empty { gap: var(--hm-space-2); }
  .wp-block-woocommerce-cart .wc-block-cart__sidebar { padding: var(--hm-space-2); }
  .wp-block-woocommerce-empty-cart-block ul.wc-block-grid__products { gap: var(--hm-space-2) !important; }
}
/* === /HM CART SPACING === */
/* === HM CART SPACING 2 (added 2026-09-20): match the 40px h1 on other pages for the empty-state title (beats the :has() rule above). Remove to roll back. === */
.entry-content:has(.wp-block-woocommerce-empty-cart-block) .hm-cart-empty__title { font-size: clamp(32px, 5vw, 40px); padding-top: var(--hm-space-2); }
/* === /HM CART SPACING 2 === */
/* === HM CART SPACING 3 (added 2026-09-20): phone h1 size matches other pages (28px). Remove to roll back. === */
@media (max-width: 767px) {
  .hm-cart-title, .entry-content:has(.wp-block-woocommerce-empty-cart-block) .hm-cart-empty__title { font-size: 28px; }
}
/* === /HM CART SPACING 3 === */
/* === HM ATC MODAL (added 2026-09-20): add-to-cart confirmation as a modal dialog (markup + script: novamira-sandbox/hm-add-to-cart-confirmation.php). Remove to roll back. === */
html.hm-atc-open { overflow: hidden; }
.hm-atc-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: var(--hm-space-3); background: rgba(31, 42, 31, 0.55); }
.hm-atc-overlay .hm-atc-dialog.hm-atc-dialog { position: relative; display: block; box-sizing: border-box; width: 100%; max-width: 460px; max-height: calc(100vh - 48px); overflow: auto; margin: 0; padding: var(--hm-space-4) var(--hm-space-3) var(--hm-space-3); background: #fff; color: var(--global-palette3); border: 1px solid var(--hm-border); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); outline: none; }
.hm-atc-overlay .hm-atc-dialog::before { display: none; }
.hm-atc-dialog .hm-atc { display: block; }
.hm-atc-dialog .hm-atc__title { display: block; margin: 0 0 var(--hm-space-2); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 600; line-height: 1.15; color: #545934; }
.hm-atc-dialog .hm-atc__item { display: block; margin: 0 0 var(--hm-space-1); }
.hm-atc-dialog .hm-atc__price { font-weight: 600; }
.hm-atc-dialog .hm-atc__cart, .hm-atc-dialog .hm-atc-cartinfo { display: block; margin: var(--hm-space-2) 0 var(--hm-space-3); padding-top: var(--hm-space-2); border-top: 1px solid var(--hm-border); font-weight: 600; }
.hm-atc-dialog .hm-atc__cart:empty { display: none; }
.hm-atc-dialog .hm-atc__actions { display: flex; flex-direction: column; gap: var(--hm-space-1); }
.hm-atc-dialog .hm-atc__actions .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 0; }
.hm-atc-dialog .hm-atc__continue { background: #fff; color: #545934; border: 1px solid #545934; }
.hm-atc-dialog .hm-atc__continue:hover { background: #545934; color: #fff; }
.hm-atc-close { position: absolute; top: var(--hm-space-1); right: var(--hm-space-1); width: 44px; height: 44px; padding: 0; background: none; border: 0; font-size: 28px; line-height: 1; color: #5f5f58; cursor: pointer; }
.hm-atc-close:hover { color: #1f2a1f; }
@media (min-width: 480px) {
  .hm-atc-dialog .hm-atc__actions { flex-direction: row; }
}
/* === /HM ATC MODAL === */

/* === HM PRODUCT PAGE (added 2026-09-20): breadcrumb readability and tap size, hide the tiny English tag list, align the buy row. Remove to roll back. === */
.single-product .kadence-breadcrumbs { font-size: 14px; color: #5f5f58; }
.single-product .kadence-breadcrumbs a { display: inline-block; padding: 12px 0; text-decoration: none; color: #5f5f58; }
.single-product .kadence-breadcrumbs a:hover { color: #545934; text-decoration: underline; }
.single-product .product_meta .tagged_as { display: none; }
.single-product form.cart .single_add_to_cart_button { margin-right: 0; }
/* === /HM PRODUCT PAGE === */
/* === HM PRODUCT PAGE 2 (added 2026-09-20): tags rule needed higher specificity; buy row had a stray 12px gap at the right edge. Remove to roll back. === */
.single-product div.product .summary .product_meta > span.tagged_as { display: none; }
.single-product div.product .summary form.cart { gap: 0; }
.single-product div.product .summary form.cart .quantity { margin-right: var(--hm-space-2); }
/* === /HM PRODUCT PAGE 2 === */
/* === HM PRODUCT PAGE 3 (added 2026-09-20): buy row fills the summary width (left edge aligned with the summary, button ends flush with the Apple Pay button). Remove to roll back. === */
.single-product div.product .summary form.cart { justify-content: flex-start; }
.single-product div.product .summary form.cart .single_add_to_cart_button { flex: 1 1 0; width: auto; }
/* === /HM PRODUCT PAGE 3 === */
/* === HM PRODUCT PAGE 4 (added 2026-09-20): the form's clearfix ::before/::after are flex items and each added a 12px gap, insetting the buy row from the summary edges. Remove to roll back. === */
.single-product div.product .summary form.cart::before, .single-product div.product .summary form.cart::after { content: none; display: none; }
.single-product div.product .summary form.cart .quantity { margin-right: 0; }
/* === /HM PRODUCT PAGE 4 === */
/* === HM ATC MODAL 2 (added 2026-09-20): single divider above the cart summary line. Remove to roll back. === */
.hm-atc-dialog .hm-atc__cart .hm-atc-cartinfo { margin: 0; padding: 0; border: 0; }
/* === /HM ATC MODAL 2 === */
/* === HM ATC MODAL 3 (added 2026-09-20): thumbnail layout, circular check, one divider, equal full-width buttons, no empty rows. Overrides the earlier HM ATC MODAL blocks. Remove to roll back. === */
.hm-atc-overlay .hm-atc-dialog.hm-atc-dialog { max-width: 440px; padding: var(--hm-space-3); background: #fff; }
.hm-atc-dialog .hm-atc { display: block; }
.hm-atc-dialog .hm-atc__title { display: flex; align-items: center; gap: 12px; margin: 0 var(--hm-space-5) var(--hm-space-3) 0; font-size: 28px; }
.hm-atc-dialog .hm-atc__check { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #eef0e2; color: #545934; font-family: Arial, sans-serif; font-size: 20px; line-height: 1; }
.hm-atc-dialog .hm-atc__item { display: flex; align-items: center; gap: var(--hm-space-2); margin: 0 0 var(--hm-space-3); }
.hm-atc-dialog .hm-atc__thumb { display: block; flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--hm-border); border-radius: 8px; background: #faf9f6; }
.hm-atc-dialog .hm-atc__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-atc-dialog .hm-atc__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-atc-dialog .hm-atc__name { font-weight: 500; }
.hm-atc-dialog .hm-atc__price { font-weight: 600; }
.hm-atc-dialog .hm-atc__cart { display: flex; align-items: center; justify-content: space-between; gap: var(--hm-space-2); margin: 0 0 var(--hm-space-3); padding: var(--hm-space-2) 0 0; border-top: 1px solid var(--hm-border); font-weight: 600; }
.hm-atc-dialog .hm-atc__cart .hm-atc-cartinfo { display: inline; margin: 0; padding: 0; border: 0; }
.hm-atc-dialog .hm-atc__viewcart { flex: 0 0 auto; color: #545934; font-weight: 600; white-space: nowrap; text-decoration: none; }
.hm-atc-dialog .hm-atc__viewcart:hover { text-decoration: underline; }
.hm-atc-dialog .hm-atc__actions, .hm-atc-dialog .hm-atc__actions { display: flex; flex-direction: column; gap: var(--hm-space-1); margin: 0; }
.hm-atc-dialog .hm-atc__actions .button { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 48px; margin: 0; padding: 0 var(--hm-space-3); border-radius: 6px; font-weight: 600; line-height: 1.2; }
.hm-atc-dialog .hm-atc__gocart { background: #545934; color: #fff; border: 1px solid #545934; }
.hm-atc-dialog .hm-atc__gocart:hover { background: #454a2a; border-color: #454a2a; }
.hm-atc-dialog .hm-atc__continue { background: #fff; color: #545934; border: 1px solid #545934; }
.hm-atc-dialog .hm-atc__continue:hover { background: #545934; color: #fff; }
.hm-atc-dialog .hm-atc__note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: var(--hm-space-3) 0 0; font-size: 14px; font-weight: 600; color: #3a3a34; }
.hm-atc-dialog .hm-atc__note-light { font-weight: 400; color: #5f5f58; }
@media (min-width: 480px) {
  .hm-atc-dialog .hm-atc__actions { flex-direction: column; }
}
/* === /HM ATC MODAL 3 === */
/* === HM CART TOP (added 2026-09-20): remove the theme's 60px/20px h1 margins on the cart heading, and on desktop lift the order summary up beside the heading (grid on .entry-content; the cart block wrappers use display: contents so items + summary become grid items). Phones/tablets keep the stacked layout. Remove to roll back. === */
.entry-content .hm-cart-title { margin: 0 0 var(--hm-space-1); }
.entry-content .hm-cart-subtitle { margin: 0 0 var(--hm-space-3); }
@media (min-width: 783px) {
  .entry-content:has(.wp-block-woocommerce-filled-cart-block) { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: var(--hm-space-4); align-items: start; }
  .entry-content:has(.wp-block-woocommerce-filled-cart-block) > .hm-cart-breadcrumb, .entry-content:has(.wp-block-woocommerce-filled-cart-block) > .hm-cart-title, .entry-content:has(.wp-block-woocommerce-filled-cart-block) > .hm-cart-subtitle { grid-column: 1; }
  .entry-content:has(.wp-block-woocommerce-filled-cart-block) > .hm-cart-breadcrumb { grid-row: 1; }
  .entry-content:has(.wp-block-woocommerce-filled-cart-block) > .hm-cart-title { grid-row: 2; }
  .entry-content:has(.wp-block-woocommerce-filled-cart-block) > .hm-cart-subtitle { grid-row: 3; }
  .entry-content:has(.wp-block-woocommerce-filled-cart-block) > .wp-block-woocommerce-cart, .entry-content:has(.wp-block-woocommerce-filled-cart-block) .wp-block-woocommerce-cart > .wc-block-components-sidebar-layout { display: contents; }
  .entry-content:has(.wp-block-woocommerce-filled-cart-block) .wp-block-woocommerce-cart > .wc-block-components-notices { grid-column: 1; grid-row: 4; }
  .entry-content:has(.wp-block-woocommerce-filled-cart-block) .wc-block-cart__main { grid-column: 1; grid-row: 5; width: auto; }
  .entry-content:has(.wp-block-woocommerce-filled-cart-block) .wc-block-cart__sidebar { grid-column: 2; grid-row: 2 / span 4; width: auto; flex: none; align-self: start; }
}
/* === /HM CART TOP === */
/* === HM CART TOP 2 (added 2026-09-20): rows above the items keep their natural height; the last row takes the spare height from the tall summary card. Remove to roll back. === */
@media (min-width: 783px) {
  .entry-content:has(.wp-block-woocommerce-filled-cart-block) { grid-template-rows: auto auto auto auto minmax(0, 1fr); }
}
/* === /HM CART TOP 2 === */
/* === HM CHECKOUT (added 2026-09-20): checkout follows the cart pattern - intro in the content (Kadence title hidden), no extra block padding, summary lifted beside the heading on desktop, 44px checkbox rows. Remove to roll back; content backup in option hm_checkout_content_backup_20260920. === */
.wp-block-woocommerce-checkout.alignwide { padding-left: 0; padding-right: 0; }
.wp-block-woocommerce-checkout .wc-block-checkout__main { padding-right: 0; }
.wp-block-woocommerce-checkout .wc-block-checkout__sidebar { padding-left: 0; border: 1px solid var(--hm-border); border-radius: 8px; }
.wp-block-woocommerce-checkout .wc-block-components-checkbox { min-height: 44px; display: flex; align-items: center; }
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description, .wp-block-woocommerce-checkout .wc-block-components-product-metadata { font-size: 13px; }
@media (min-width: 783px) {
  .entry-content:has(.wp-block-woocommerce-checkout) { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto auto auto auto minmax(0, 1fr); column-gap: var(--hm-space-4); align-items: start; }
  .entry-content:has(.wp-block-woocommerce-checkout) > .hm-cart-breadcrumb, .entry-content:has(.wp-block-woocommerce-checkout) > .hm-cart-title, .entry-content:has(.wp-block-woocommerce-checkout) > .hm-cart-subtitle { grid-column: 1; }
  .entry-content:has(.wp-block-woocommerce-checkout) > .hm-cart-breadcrumb { grid-row: 1; }
  .entry-content:has(.wp-block-woocommerce-checkout) > .hm-cart-title { grid-row: 2; }
  .entry-content:has(.wp-block-woocommerce-checkout) > .hm-cart-subtitle { grid-row: 3; }
  .entry-content:has(.wp-block-woocommerce-checkout) > .wp-block-woocommerce-checkout, .entry-content:has(.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout > .wc-block-components-sidebar-layout { display: contents; }
  .entry-content:has(.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout > .wc-block-components-notices { grid-column: 1; grid-row: 4; }
  .entry-content:has(.wp-block-woocommerce-checkout) .wc-block-checkout__main { grid-column: 1; grid-row: 5; width: auto; }
  .entry-content:has(.wp-block-woocommerce-checkout) .wc-block-checkout__sidebar { grid-column: 2; grid-row: 2 / span 4; width: auto; flex: none; align-self: start; }
}
/* === /HM CHECKOUT === */
/* === HM CHECKOUT 2 (added 2026-09-20): summary column 360px, same as the cart. Remove to roll back. === */
@media (min-width: 783px) {
  .entry-content:has(.wp-block-woocommerce-checkout) { grid-template-columns: minmax(0, 1fr) 360px; }
}
/* === /HM CHECKOUT 2 === */
/* === HM SPACING (added 2026-09-20): one vertical rhythm. (1) Account, Contact, Ordrestatus use the cart/checkout heading pattern (Kadence title hidden, breadcrumb + h1 + subtitle in content). (2) Info pages (FAQ, Returnering): no 60px h1 top margin, same 67px above the footer as the other pages. (3) Empty cart: text and image start at the same top edge. (4) Account form aligned to the 24px gutter, 44px tap targets. Remove to roll back; page content backups in options hm_page_backup_20260920_<id>. === */
.hm-prose h1 { margin-top: 0; }
.entry-content .hm-section--end.hm-prose { margin-bottom: calc(var(--hm-gap) + var(--hm-space-3)); }
.hm-prose .hm-draft-note { margin-top: 0; }
.wp-block-woocommerce-empty-cart-block .hm-cart-empty.hm-cart-empty { align-items: flex-start; }
.wp-block-woocommerce-empty-cart-block .hm-cart-empty > .wp-block-column { align-self: flex-start; }
.hm-cart-empty__quote { padding-left: var(--hm-space-2); }
.woocommerce-account .entry-content > .woocommerce { padding: 0; }
.woocommerce-account .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: var(--hm-space-1); min-height: 44px; }
.woocommerce-account .woocommerce-form-login__rememberme input[type=checkbox] { width: 22px; height: 22px; margin: 0; }
.woocommerce-account .woocommerce-LostPassword a { display: inline-flex; align-items: center; min-height: 44px; }
.woocommerce-account .password-input .show-password-input { width: 44px; height: 44px; }
/* === /HM SPACING === */
/* === HM SPACING 2 (added 2026-09-20): higher specificity so the info-page footer gap (67px) wins over the theme's section margin. Remove to roll back. === */
.entry-content div.hm-section.hm-section.hm-section--end.hm-prose { margin-bottom: calc(var(--hm-gap) + var(--hm-space-3)); }
/* === /HM SPACING 2 === */
/* === HM SPACING 3 (added 2026-09-20): the site rule `.entry-content > :last-child { margin-bottom: 24px !important }` suits pages ending in a full-width band; text pages (FAQ, Returnering) get the same 67px above the footer as the legal, contact and cart pages. Remove to roll back. === */
.entry-content > .hm-section--end.hm-prose:last-child { margin-bottom: calc(var(--hm-gap) + var(--hm-space-3)) !important; }
/* === /HM SPACING 3 === */
/* === HM SPACING 4 (added 2026-09-20): a little more room for the empty-cart quote (two lines). Remove to roll back. === */
@media (min-width: 900px) {
  .hm-cart-empty .wp-block-column:last-child { padding-right: 190px; }
  .hm-cart-empty__quote { width: 190px; }
}
/* === /HM SPACING 4 === */
/* === HM SPACING 5 (added 2026-09-20): on phones the prose pages had a second 24px inset (h1 at x=48); !important is needed to beat .hm-align's own !important padding. Remove to roll back. === */
@media (max-width: 767px) {
  .entry-content > .hm-prose.hm-align { padding-left: 0 !important; padding-right: 0 !important; }
}
/* === /HM SPACING 5 === */
/* === HM SPACING 6 (added 2026-09-20): body text directly under a page h1 (no subtitle, e.g. legal pages) gets 24px. Remove to roll back. === */
.entry-content .hm-cart-title + :not(.hm-cart-subtitle) { margin-top: var(--hm-space-3); }
/* === /HM SPACING 6 === */
/* === HM CART NO QUOTE (added 2026-09-20): quote removed from the empty cart, so the space reserved beside the basket is released. Remove to roll back. === */
@media (min-width: 900px) {
  .hm-cart-empty .wp-block-column:last-child { padding-right: 0; }
}
/* === /HM CART NO QUOTE === */
