/* CWV-fix 2026-12-05: vaste hoogte voor de mobiele productgalerij (CLS) */
@media (max-width: 900px) {
  .dh-pdp-gallery {
    height: calc(100vw * 0.84) !important;
    max-height: none !important;
    min-height: 0;
    aspect-ratio: auto;
  }
  .dh-pdp-gallery .woocommerce-product-gallery,
  .dh-pdp-gallery .woocommerce-product-gallery__wrapper,
  .dh-pdp-gallery .flex-viewport,
  .dh-pdp-gallery .woocommerce-product-gallery__image {
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
  .dh-pdp-gallery .woocommerce-product-gallery__image img:not(.zoomImg) {
    height: 100% !important;
    max-height: none !important;
    object-fit: contain;
  }
}

/* Tablet UX 2026-12-05: compacte overlays + QHSP */
@media (min-width: 561px) and (max-width: 1024px) {
  .dh-consent:not(.is-prefs) .dh-consent__panel {
    width: 320px !important;
    padding: 14px 14px 10px !important;
  }
  .dh-consent:not(.is-prefs) .dh-consent__text {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }
  body:has(.dh-pdp-bar.is-visible) .dh-consent:not(.is-prefs) {
    bottom: var(--dh-pdp-bar-h, 88px) !important;
  }

  aside.gc-chat { width: 64px !important; }
  .gc-chat__copy,
  .gc-chat__cta,
  .gc-chat__ai-badge,
  .gc-chat__go { display: none !important; }
  .gc-chat__launcher {
    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    gap: 0 !important;
  }
  .gc-chat__face {
    width: 40px !important;
    height: 40px !important;
  }

  .dh-qhsp {
    padding: 10px 12px !important;
    margin: 10px 0 !important;
  }
  .dh-qhsp__lead,
  .dh-qhsp__img { display: none !important; }
}

/* Cookiebanner mobiel compacter + boven de checkout-paybar (2026-12-05) */
@media (max-width: 560px) {
  .dh-consent:not(.is-prefs) .dh-consent__panel {
    padding: 10px 14px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .dh-consent:not(.is-prefs) .dh-consent__text {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  .dh-consent:not(.is-prefs) .dh-consent__btn {
    min-height: 40px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
  }
}
body.woocommerce-checkout:has(.dh-paybar) .dh-consent:not(.is-prefs) {
  bottom: 88px !important;
}
