/* ── Mobiel koopbalk + winkelwagen 2026-11-09 ───────────────────────────────
   1) Productpagina: de hele vaste koopbalk is tikbaar (prijs en regel "Op voorraad ·
      Gratis verzending" deden niets; opnames 2-9 nov: 15 tikken, 13x daarna weg).
      Het gedrag zit in inc/mobiel-koopbalk.php; hier alleen de cursor.
   2) Mobiele winkelwagen: Afrekenen + totaal als vaste balk (uit het pakket van 8-11,
      alleen het mobiele deel). De oude sticky zat vast aan .cart_totals, lag over
      "Overzicht" + kortingscode en liet een wit gat achter.
   Terugdraaien = inc/mobiel-koopbalk.php niet meer laden. */

@media (max-width: 900px) {
  .dh-pdp-bar.is-tikbaar { cursor: pointer; -webkit-tap-highlight-color: transparent; }
}

@media (max-width: 900px) {
  body.woocommerce-cart:has(.wc-proceed-to-checkout) { padding-bottom: 84px; }
  body.woocommerce-cart .wc-proceed-to-checkout {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--dh-line);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
  }
  body.woocommerce-cart .dh-bag-sticky-total {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: nowrap;
  }
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    flex: 1 1 56%;
    width: auto;
    min-height: 48px;
    margin: 0;
  }
  /* Apple Pay naast Afrekenen, net als in de koopbalk op de productpagina */
  body.woocommerce-cart .wc-proceed-to-checkout #mollie-applepayDirect-button { flex: 0 0 84px; order: 1; margin: 0; }
  body.woocommerce-cart .wc-proceed-to-checkout #mollie_applepay_button {
    -apple-pay-button-type: plain;
    width: 84px;
    height: 48px;
    margin: 0;
    border-radius: var(--dh-r-md);
  }
  body.woocommerce-cart .wc-proceed-to-checkout:has(#mollie_applepay_button) .checkout-button { flex: 1 1 0; order: 2; min-width: 0; padding-inline: 8px; }
  body.woocommerce-cart .wc-proceed-to-checkout #mollie-applepayDirect-button:not(:has(button, apple-pay-button)) { display: none; }

  /* Toetsenbord open op de kortingscode: balk mag niet boven het veld zweven */
  body.woocommerce-cart:has(.dh-checkout-coupon__input:focus) .wc-proceed-to-checkout { position: static; box-shadow: none; }

  /* Cookiebalk en Ray boven de balk, niet eroverheen */
  body.woocommerce-cart:has(.wc-proceed-to-checkout) .dh-consent:not(.is-prefs) { bottom: 76px; }
  body.woocommerce-cart:has(.wc-proceed-to-checkout) .gc-chat.is-minimized,
  body.woocommerce-cart:has(.wc-proceed-to-checkout) .gc-chat.is-minimized .gc-chat__launcher {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
