/**
 * How2behealthy 1-Test Barcodescan Page & Widget Styles
 * Matches How2behealthy Website (current.css) & Mobile App Design
 */

:root {
  --h2bh-green: #0f3f2e;
  --h2bh-green-2: #1f6b4a;
  --h2bh-light-green: #edf6ef;
  --h2bh-orange: #ee7042;
  --h2bh-yellow: #ffc72e;
  --h2bh-cream: #fbf7ef;
  --h2bh-beige: #f4ecdf;
  --h2bh-text: #17382c;
  --h2bh-muted: #5f6f68;
  --h2bh-border: #eadfce;
  --h2bh-white: #ffffff;
  --h2bh-shadow: 0 16px 40px rgba(15, 63, 46, 0.08);
  --h2bh-radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.h2bh-test-scan-page {
  background-color: var(--h2bh-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Quicksand", sans-serif;
  color: var(--h2bh-text);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Top Accent Stripe */
.h2bh-hero-stripe {
  position: relative;
}

.h2bh-hero-stripe::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 50;
}

.h2bh-hero-stripe--green::before {
  background: var(--h2bh-green);
}

/* Hero Section (Centered Brand Logo + Title) */
.h2bh-scan-hero {
  text-align: center;
  padding: 26px 20px 20px 20px;
}

.h2bh-scan-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.h2bh-brand-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.h2bh-brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.h2bh-brand-logo-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.h2bh-brand-logo {
  height: 68px;
  width: auto;
  max-width: 290px;
  object-fit: contain;
  display: block;
}

@media (max-width: 480px) {
  .h2bh-brand-logo-wrap {
    margin-bottom: 14px;
  }

  .h2bh-brand-logo {
    height: 54px;
    max-width: 230px;
  }
}

.h2bh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--h2bh-orange);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.h2bh-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--h2bh-yellow);
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 380px) {
  .h2bh-eyebrow {
    font-size: 11px;
    letter-spacing: 0.05em;
    gap: 6px;
  }

  .h2bh-eyebrow::before {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
  }
}

.h2bh-title {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--h2bh-green);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 600;
}

.h2bh-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.h2bh-highlight::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 10px;
  background: rgba(255, 199, 46, 0.45);
  z-index: -1;
  border-radius: 12px;
}

.h2bh-text {
  color: var(--h2bh-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 580px;
}

/* Main Area */
.h2bh-scan-main {
  flex: 1;
  padding: 0 20px 60px 20px;
}

/* Scanner Card Container */
.h2bh-test-scanner-wrapper {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.h2bh-scanner-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 0;
  position: relative;
}

@media (max-width: 480px) {
  .h2bh-scanner-card {
    padding: 0;
  }
}

/* Segmented Modes Tabs (Mobile App Style) */
.h2bh-scanner-modes {
  display: flex;
  background: var(--h2bh-beige);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 22px;
  gap: 4px;
}

.h2bh-mode-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--h2bh-muted);
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.h2bh-mode-tab:hover {
  color: var(--h2bh-green);
}

.h2bh-mode-tab.is-active {
  background: var(--h2bh-green);
  color: var(--h2bh-white);
  box-shadow: 0 4px 12px rgba(15, 63, 46, 0.18);
}

/* Camera Viewport */
.h2bh-scanner-view {
  position: relative;
  width: 100%;
  height: 350px;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 63, 46, 0.12);
}

.h2bh-reader-box {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
}

#h2bh-qr-reader video,
.h2bh-reader-box video,
.h2bh-reader-box canvas,
.h2bh-scanner-view video,
.h2bh-scanner-view canvas,
#h2bh-qr-reader .scandit,
#h2bh-qr-reader .scandit-datacapture-view {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
}

/* Fallback Camera Overlay */
.h2bh-camera-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.25);
}

.h2bh-viewfinder {
  width: 250px;
  height: 160px;
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 14px;
}

.h2bh-scan-laser {
  position: absolute;
  left: 5%;
  width: 90%;
  height: 2px;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e;
  animation: h2bhLaserMove 2s infinite ease-in-out alternate;
}

@keyframes h2bhLaserMove {
  0% {
    top: 10%;
  }

  100% {
    top: 90%;
  }
}

.h2bh-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #22c55e;
  border-style: solid;
}

.h2bh-corner.top-left {
  top: -2px;
  left: -2px;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 10px;
}

.h2bh-corner.top-right {
  top: -2px;
  right: -2px;
  border-width: 3px 3px 0 0;
  border-top-right-radius: 10px;
}

.h2bh-corner.bottom-left {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 3px 3px;
  border-bottom-left-radius: 10px;
}

.h2bh-corner.bottom-right {
  bottom: -2px;
  right: -2px;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 10px;
}

.h2bh-viewfinder-hint {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.55);
  padding: 5px 14px;
  border-radius: 20px;
}

/* Status Indicator */
.h2bh-scan-live-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--h2bh-muted);
  margin-top: 14px;
}

.h2bh-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.h2bh-status-dot.is-active {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Controls */
.h2bh-camera-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Buttons (Website Pill Style) */
.h2bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1;
}

.h2bh-btn-primary {
  background: var(--h2bh-green);
  color: #fff;
}

.h2bh-btn-primary:hover {
  background: var(--h2bh-green-2);
  transform: translateY(-1px);
}

/* Orange Brand CTA Button (#EE7042) */
.btn-cta-orange,
#h2bhStartCamBtn {
  background: #EE7042 !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 14px rgba(238, 112, 66, 0.35) !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.btn-cta-orange:hover,
#h2bhStartCamBtn:hover {
  background: #e35f30 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(238, 112, 66, 0.45) !important;
}

/* Compact Customer Rating & Free Trial Conditions */
.h2bh-cta-trust-wrap {
  margin-top: 14px;
  text-align: center;
}

.h2bh-cta-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  flex-wrap: wrap;
}

.h2bh-stars-compact {
  color: #FBBF24;
  display: inline-flex;
  gap: 2px;
  font-size: 13.5px;
}

.h2bh-rating-text {
  font-size: 13px;
  color: #334155;
}

.h2bh-cta-proof-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.h2bh-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1.5px solid #d5e6dc;
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(15, 63, 46, 0.06);
  font-size: 13px;
  color: #0F3F2E;
}

.h2bh-proof-score {
  background: #0F3F2E;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.3;
}

.h2bh-proof-meta {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.h2bh-proof-pill--users {
  background: #edf7f1;
  border-color: #b7dec8;
  font-size: 13.5px;
}

.h2bh-proof-pill--users i {
  color: #EE7042;
  font-size: 14px;
}

.h2bh-cta-social-line {
  margin: 4px auto 4px auto;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  max-width: 500px;
}

.h2bh-trial-conditions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
  flex-wrap: wrap;
}

.h2bh-trial-conditions span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.h2bh-trial-conditions span i {
  color: #16a34a;
  font-size: 12px;
}

@media (max-width: 480px) {

  .btn-cta-orange,
  #h2bhStartCamBtn {
    font-size: 15px !important;
    padding: 13px 20px !important;
    width: 100% !important;
  }

  .h2bh-cta-proof-pills {
    gap: 8px;
  }

  .h2bh-proof-pill {
    padding: 5px 11px;
    font-size: 12px;
    gap: 6px;
  }

  .h2bh-proof-score {
    font-size: 12px;
    padding: 2px 7px;
  }

  .h2bh-proof-meta {
    font-size: 12px;
  }

  .h2bh-proof-pill--users {
    font-size: 12.5px;
  }

  .h2bh-trial-conditions {
    gap: 8px 14px;
    font-size: 12px;
  }
}

.h2bh-btn-secondary {
  background: var(--h2bh-orange);
  color: #fff;
}

.h2bh-btn-secondary:hover {
  background: #e25e2e;
  transform: translateY(-1px);
}

.h2bh-btn-outline {
  background: #fff;
  color: var(--h2bh-green);
  border: 1.5px solid var(--h2bh-border);
}

.h2bh-btn-outline:hover {
  border-color: var(--h2bh-green);
  background: var(--h2bh-light-green);
}

/* Manual Input View */
.h2bh-input-group {
  display: flex;
  gap: 8px;
}

.h2bh-input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--h2bh-border);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.h2bh-input:focus {
  border-color: var(--h2bh-green);
}

/* Test Samples */
.h2bh-test-samples {
  margin-top: 22px;
  background: var(--h2bh-cream);
  border: 1px solid var(--h2bh-border);
  border-radius: 16px;
  padding: 16px;
}

.h2bh-samples-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--h2bh-muted);
  margin-bottom: 10px;
}

.h2bh-samples-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h2bh-sample-pill {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid var(--h2bh-border);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.h2bh-sample-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.h2bh-sample-pill.is-healthy {
  border-color: rgba(34, 197, 94, 0.4);
  color: #15803d;
  background: #f0fdf4;
}

.h2bh-sample-pill.is-unhealthy {
  border-color: rgba(239, 68, 68, 0.4);
  color: #b91c1c;
  background: #fef2f2;
}

/* Loading & Error */
.h2bh-scanner-loading {
  text-align: center;
  padding: 30px 20px;
}

.h2bh-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--h2bh-beige);
  border-top-color: var(--h2bh-green);
  border-radius: 50%;
  animation: h2bhSpin 0.8s linear infinite;
  margin: 0 auto 14px auto;
}

@keyframes h2bhSpin {
  to {
    transform: rotate(360deg);
  }
}

.h2bh-scanner-loading p {
  color: var(--h2bh-muted);
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
}

.h2bh-scanner-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  margin-top: 16px;
  line-height: 1.5;
}

/* App-Exact Product Card & Battery Result */
.h2bh-scanner-result {
  margin-top: 0;
}

.product-card {
  background: var(--h2bh-white);
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, .08);
  border: 1px solid var(--h2bh-border);
  padding: 22px;
  text-align: left;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin: 0 0 4px;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
}

.product-ean {
  font-size: 0.85rem;
  color: var(--h2bh-muted);
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.battery-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0 10px;
}

.battery-wrap img {
  max-width: 220px;
  width: 65%;
  height: auto;
  display: block;
}

.status-row {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 26px;
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.status-pill--ok {
  background: #16a34a;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
}

.status-pill--warn {
  background: #ea580c;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.25);
}

.status-pill--bad {
  background: #dc2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}

/* Disclosure Accordions (Exact App Style) */
.disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  color: #111827;
  user-select: none;
  transition: background-color 0.15s;
}

.disclosure:hover {
  background-color: #fbfbfb;
}

.disclosure .right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b726f;
  font-size: 0.95rem;
}

.disclosure .right i {
  transition: transform 0.2s ease;
}

.disclosure.is-open .right i {
  transform: rotate(90deg);
}

.disclosure .count {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
  font-size: 0.85rem;
}

.h2bh-disclosure-content {
  padding: 12px 4px 14px 4px;
  border-bottom: 1px solid #e5e7eb;
}

.h2bh-count-label {
  font-size: 0.92rem;
  color: #111827;
  font-weight: 600;
}

/* Category Chips with App Icons */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 6px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cat-chip:hover {
  background: #f1f5f9;
}

.cat-chip.active {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.cat-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Category Details Panel (App-style) */
.cat-details-wrap {
  margin-top: 6px;
}

.cat-detail-panel {
  padding: 2px 2px 4px 2px;
}

.cat-detail-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin-top: 10px;
  margin-bottom: 4px;
}

.cat-detail-items {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.6;
}

.cat-detail-item {
  padding: 1px 0;
}

/* App Alternatives Grid ("Betere keuzes voor jou") */
.h2bh-app-alternatives {
  margin-top: 24px;
  margin-bottom: 16px;
  padding-top: 8px;
}

.alt-header-wrap {
  position: relative;
  text-align: center;
  margin-bottom: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alt-main-heading {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  margin: 0 auto;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.alt-refresh-icon {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #0b726f;
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.alt-refresh-icon:hover {
  transform: translateY(-50%) rotate(45deg);
  color: #064e4b;
}

.alt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.alt-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  min-width: 0;
}

.alt-card-top {
  background: #f8fafc;
  padding: 8px;
  position: relative;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alt-store-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 4px;
  z-index: 2;
  flex-wrap: wrap;
  max-width: 85%;
}

.alt-logo-img {
  height: 17px;
  width: auto;
  max-width: 30px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 3px;
  padding: 1px 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.alt-img-wrap {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alt-img-wrap img {
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.alt-placeholder-img {
  font-size: 26px;
  color: #94a3b8;
}

.alt-card-bottom {
  padding: 10px 8px 12px;
  text-align: center;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.alt-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  min-height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
  word-break: break-word;
}

.btn-alt-list {
  background: #EE7042;
  color: #ffffff;
  border: none !important;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(238, 112, 66, 0.3);
  border-radius: 6px;
  padding: 7px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.btn-alt-list:hover {
  background: #e35f30;
  box-shadow: 0 2px 6px rgba(238, 112, 66, 0.4);
}

.btn-alt-list:focus,
.btn-alt-list:active {
  outline: none !important;
  border: none !important;
  box-shadow: 0 0 0 2px rgba(238, 112, 66, 0.35) !important;
}

.alt-feedback-wrap {
  margin-top: auto;
}

.alt-feedback-label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alt-thumbs-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.alt-thumb-btn {
  width: 36px;
  height: 26px;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  outline: none !important;
  transition: all 0.15s ease;
}

.alt-thumb-btn:focus,
.alt-thumb-btn:active {
  outline: none !important;
  transform: scale(0.95);
}

.alt-thumb-up {
  border: 1.5px solid #16a34a;
  color: #16a34a;
}

.alt-thumb-up:hover {
  background: #f0fdf4;
}

.alt-thumb-down {
  border: 1.5px solid #ef4444;
  color: #ef4444;
}

.alt-thumb-down:hover {
  background: #fef2f2;
}

@media (max-width: 520px) {
  .product-card {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .product-title {
    font-size: 1.15rem;
  }

  .battery-wrap img {
    max-width: 185px;
  }

  .cat-chip {
    padding: 6px 11px;
    font-size: 0.85rem;
  }

  .alt-header-wrap {
    margin-bottom: 12px;
  }

  .alt-main-heading {
    font-size: 17px;
  }

  /* Mobile swipeable product cards: large readable images, fonts & touch targets */
  .alt-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 8px 2px;
    scrollbar-width: none;
  }

  .alt-grid::-webkit-scrollbar {
    display: none;
  }

  .alt-card {
    flex: 0 0 158px;
    scroll-snap-align: start;
    border-radius: 14px;
  }

  .alt-card-top {
    height: 112px;
    padding: 8px;
  }

  .alt-img-wrap img {
    max-height: 88px;
  }

  .alt-store-badges {
    top: 6px;
    left: 6px;
    gap: 4px;
  }

  .alt-logo-img {
    height: 17px;
    max-width: 28px;
    padding: 1px 3px;
  }

  .alt-card-bottom {
    padding: 10px 8px 12px;
  }

  .alt-title {
    font-size: 13.5px;
    line-height: 1.32;
    min-height: 36px;
    margin-bottom: 8px;
  }

  .btn-alt-list {
    font-size: 12px;
    padding: 8px 6px;
    margin-bottom: 8px;
    border-radius: 7px;
    letter-spacing: 0.03em;
  }

  .alt-feedback-label {
    font-size: 11.5px;
    margin-bottom: 6px;
    white-space: nowrap;
    line-height: 1.2;
  }

  .alt-thumbs-row {
    gap: 8px;
  }

  .alt-thumb-btn {
    width: 38px;
    height: 28px;
    font-size: 13px;
    border-radius: 6px;
  }
}

@media (max-width: 359px) {
  .product-card {
    padding: 14px 10px;
  }

  .alt-card {
    flex: 0 0 150px;
  }

  .alt-title {
    font-size: 13px;
  }

  .btn-alt-list {
    font-size: 11.5px;
  }

  .alt-feedback-label {
    font-size: 11px;
  }
}

/* SCAN OPNIEUW Button (App-Style) */
.btn-h2bh-orange {
  background: #EE7042 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 38px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(238, 112, 66, 0.3) !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  font-family: inherit !important;
}

.btn-h2bh-orange:hover {
  background: #ffa889 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(238, 112, 66, 0.4) !important;
}

.btn-h2bh-orange:active {
  transform: translateY(0);
}

.bad-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.bad-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.bad-item--danger {
  border: 1px solid #fecaca;
  background: #fff8f8;
}

.bad-item-name {
  font-weight: 600;
  color: #991b1b;
  text-transform: capitalize;
}

.all-ing-list {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.all-ing-list .list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
  color: #334155;
}

.all-ing-list .list-group-item>span:first-child {
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.all-ing-list .list-group-item .badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.all-ing-list .list-group-item:last-child {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  line-height: 1;
}

.bg-danger-subtle {
  background: #fee2e2 !important;
}

.text-danger {
  color: #dc2626 !important;
}

.bg-success-subtle {
  background: #dcfce7 !important;
}

.text-success {
  color: #16a34a !important;
}

.bg-warning-subtle {
  background: #fef9c3 !important;
}

.text-warning {
  color: #ca8a04 !important;
}

.border {
  border-width: 1px !important;
  border-style: solid !important;
}

.border-success-subtle {
  border-color: #bbf7d0 !important;
}

.border-danger-subtle {
  border-color: #fecaca !important;
}

.border-warning-subtle {
  border-color: #fef08a !important;
}

.rounded-pill {
  border-radius: 9999px !important;
}

.h2bh-score-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.h2bh-res-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--h2bh-text);
  margin: 16px 0;
}

.h2bh-res-ingredients-box {
  background: var(--h2bh-cream);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--h2bh-border);
}

.h2bh-res-ingredients-box h4 {
  font-family: inherit !important;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--h2bh-green);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.h2bh-res-ingredients-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--h2bh-text);
  margin: 0;
}

.h2bh-ing-red {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
}

.h2bh-res-alternatives {
  margin-top: 16px;
  background: #f0fdf4;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
}

.h2bh-res-alternatives h5 {
  font-family: inherit !important;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--h2bh-green-2);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.h2bh-res-alternatives ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--h2bh-text);
}

.h2bh-res-alternatives li {
  margin-bottom: 4px;
}

.h2bh-alt-cat {
  font-size: 12px;
  color: var(--h2bh-muted);
  margin-left: 6px;
}

.h2bh-res-cta {
  margin-top: 20px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--h2bh-border);
}

.h2bh-res-cta p {
  font-size: 14.5px;
  margin: 0 0 12px 0;
}

/* Post-Scan Premium Pricing Section */
.h2bh-scan-limit-box.h2bh-premium-section {
  margin-top: 32px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  box-shadow: none;
}

.h2bh-premium-header {
  margin-bottom: 18px;
  text-align: center;
}

/* 6 Photo Visual Platform Feature Blocks (Ivo Reference Style) */
.h2bh-visual-blocks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 14px;
  margin-bottom: 22px;
  text-align: left;
}

.h2bh-visual-block {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.h2bh-vb-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f9f6;
  border: 1px solid #e4efe9;
  box-shadow: 0 4px 14px rgba(15, 63, 46, 0.07);
  margin-bottom: 8px;
}

.h2bh-vb-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.h2bh-visual-block:hover .h2bh-vb-photo {
  transform: scale(1.03);
}

.h2bh-vb-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  text-align: left;
}

/* Pricing Sub-header ("Kies jouw start") */
.h2bh-start-header {
  text-align: center;
  margin: 22px 0 16px;
}

.h2bh-start-title {
  font-family: 'Quicksand', sans-serif !important;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.h2bh-start-subtitle {
  font-size: 13.5px;
  color: #5d6b66;
  margin: 0;
  font-weight: 500;
}

/* Prominent Social Proof Banner (25.000+ klanten + 9.5/10 Feedback Company) */
.h2bh-social-proof-banner {
  background: linear-gradient(135deg, #eef8f7 0%, #ffffff 100%);
  border: 1.8px solid #0b726f;
  border-radius: 16px;
  padding: 18px 20px 16px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 63, 46, 0.08);
}

.h2bh-sp-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.h2bh-sp-metric {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.h2bh-sp-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0F3F2E;
  color: #FFC72E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.h2bh-sp-metric-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.h2bh-sp-big-num {
  font-size: 22px;
  font-weight: 800;
  color: #0F3F2E;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h2bh-sp-score-pill {
  background: #0F3F2E;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}

.h2bh-sp-score-pill span {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

.h2bh-sp-metric-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}

.h2bh-sp-metric-divider {
  width: 1px;
  height: 36px;
  background: #cbd5e1;
}

.h2bh-sp-stars {
  color: #F59E0B;
  font-size: 14px;
  display: inline-flex;
  gap: 2px;
  line-height: 1;
  margin-bottom: 2px;
}

.h2bh-sp-text {
  font-size: 13.5px;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 500px;
}

.h2bh-premium-section h4.h2bh-premium-title {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 700;
  color: #0F3F2E;
  margin: 0 0 8px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.h2bh-premium-section p.h2bh-premium-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: #5d6b66;
  max-width: 540px;
  margin: 0 auto;
  font-weight: 500;
}

.h2bh-premium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
  align-items: stretch;
}

.h2bh-premium-card {
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 16px;
  padding: 22px 20px 20px;
  box-shadow: 0 4px 18px rgba(15, 63, 46, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.h2bh-premium-card.is-featured {
  border: 1.8px solid #0b726f;
  box-shadow: 0 6px 22px rgba(11, 114, 111, 0.12);
}

.h2bh-premium-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.h2bh-premium-card-name {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.25;
}

.h2bh-premium-badge {
  display: inline-flex;
  align-items: center;
  background: #e6f4f3;
  color: #0b726f;
  border: 1px solid rgba(11, 114, 111, 0.22);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
}

.h2bh-premium-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 4px;
}

.h2bh-premium-price {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h2bh-premium-period {
  font-size: 14.5px;
  font-weight: 600;
  color: #374151;
}

.h2bh-premium-subprice {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.35;
}

.h2bh-premium-divider {
  border: none;
  border-top: 1px solid #eef0f2;
  margin: 14px 0 14px 0;
}

.h2bh-premium-features {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.h2bh-premium-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.38;
}

.h2bh-check-circle {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #0b726f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.h2bh-premium-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #EE7042;
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(238, 112, 66, 0.25);
  box-sizing: border-box;
  margin-top: auto;
}

.h2bh-premium-btn:hover {
  background: #e15f30;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(238, 112, 66, 0.35);
}

.h2bh-scan-limit-box p.h2bh-limit-used-note {
  font-size: 12.5px;
  color: #64748b;
  margin: 16px auto 0 auto;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .h2bh-visual-blocks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }

  .h2bh-vb-photo-wrap {
    border-radius: 12px;
    margin-bottom: 6px;
  }

  .h2bh-vb-title {
    font-size: 12.5px;
    line-height: 1.28;
  }

  .h2bh-social-proof-banner {
    padding: 16px 14px 14px;
    border-radius: 14px;
  }

  .h2bh-sp-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
  }

  .h2bh-sp-metric-divider {
    display: none;
  }

  .h2bh-sp-metric {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    background: rgba(15, 63, 46, 0.045);
    border-radius: 12px;
    padding: 12px 8px;
  }

  .h2bh-sp-metric-copy {
    align-items: center;
    gap: 2px;
  }

  .h2bh-sp-metric-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
    border-radius: 10px;
  }

  .h2bh-sp-big-num {
    font-size: 20px;
  }

  .h2bh-sp-score-pill {
    font-size: 19px;
    padding: 6px 11px;
    border-radius: 10px;
  }

  .h2bh-sp-metric-lbl {
    font-size: 11.5px;
  }

  .h2bh-sp-text {
    font-size: 12.8px;
  }

  .h2bh-premium-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .h2bh-premium-card {
    padding: 20px 18px 18px;
  }

  .h2bh-premium-price {
    font-size: 28px;
  }

  .h2bh-premium-btn {
    min-height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .h2bh-visual-blocks-grid {
    gap: 10px 8px;
  }

  .h2bh-vb-title {
    font-size: 12px;
  }

  .h2bh-sp-metrics {
    gap: 8px;
  }

  .h2bh-sp-metric {
    padding: 10px 6px;
  }

  .h2bh-sp-big-num {
    font-size: 18px;
  }

  .h2bh-sp-score-pill {
    font-size: 17px;
    padding: 5px 9px;
  }

  .h2bh-sp-metric-lbl {
    font-size: 11px;
  }
}

/* Sticky Conversion Bar (Result Page Only) */
.h2bh-sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) 14px;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.h2bh-sticky-cta-bar.is-hidden {
  transform: translateY(120%);
  opacity: 0;
}

.h2bh-sticky-cta-inner {
  max-width: 580px;
  margin: 0 auto;
  background: #ffffff;
  border: 1.5px solid #dbe5df;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(15, 63, 46, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: auto;
}

.h2bh-sticky-cta-copy {
  text-align: left;
  min-width: 0;
}

.h2bh-sticky-cta-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  line-height: 1.25;
}

.h2bh-sticky-cta-price-row {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.2;
  margin: 2px 0;
}

.h2bh-sticky-cta-price-row strong {
  font-size: 19px;
  font-weight: 800;
  color: #111827;
}

.h2bh-sticky-cta-sub {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.25;
}

.h2bh-sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #EE7042;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  min-height: 44px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(238, 112, 66, 0.35);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.h2bh-sticky-cta-btn:hover {
  background: #e15f30;
  transform: translateY(-1px);
}

/* Mobile Sticky Bar: Sleek compact single-row layout matching Ivo's spec ("Start nu") */
@media (max-width: 540px) {
  .h2bh-sticky-cta-bar {
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
  }

  .h2bh-sticky-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 10px;
    border-radius: 14px;
  }

  .h2bh-sticky-cta-copy {
    text-align: left;
    min-width: 0;
  }

  .h2bh-sticky-cta-label {
    font-size: 11.5px;
    line-height: 1.2;
  }

  .h2bh-sticky-cta-price-row {
    font-size: 12.5px;
    margin: 1px 0;
  }

  .h2bh-sticky-cta-price-row strong {
    font-size: 17px;
  }

  .h2bh-sticky-cta-sub {
    font-size: 11px;
    line-height: 1.2;
  }

  .h2bh-sticky-cta-btn {
    padding: 11px 22px;
    min-height: 42px;
    font-size: 14px;
    border-radius: 10px;
  }
}

@media (max-width: 350px) {
  .h2bh-sticky-cta-inner {
    padding: 9px 10px;
    gap: 8px;
  }

  .h2bh-sticky-cta-label {
    font-size: 10.5px;
  }

  .h2bh-sticky-cta-price-row strong {
    font-size: 15.5px;
  }

  .h2bh-sticky-cta-sub {
    font-size: 10.5px;
  }

  .h2bh-sticky-cta-btn {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* Trust Footer */
.h2bh-scan-footer {
  background: #0b726f;
  color: rgba(255, 255, 255, 0.92);
  padding: 36px 20px 24px 20px;
  text-align: center;
  margin-top: auto;
}

.h2bh-footer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.h2bh-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.h2bh-trust-pill i {
  color: var(--h2bh-yellow);
}

.h2bh-footer-copy {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------
   Responsive Breakpoints & Mobile Enhancements
   ------------------------------------------------------------- */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 640px) {
  .h2bh-scan-hero {
    padding: 20px 16px 14px 16px;
  }

  .h2bh-title {
    font-size: clamp(24px, 5.5vw, 34px);
    margin-bottom: 10px;
  }

  .h2bh-text {
    font-size: 14.5px;
    line-height: 1.5;
  }

  .h2bh-scan-main {
    padding: 0 14px 48px 14px;
  }

  .h2bh-scanner-card {
    padding: 0;
  }

  .h2bh-scanner-view {
    height: 300px;
    border-radius: 16px;
  }

  .h2bh-camera-controls {
    gap: 8px;
  }

  .h2bh-camera-controls .h2bh-btn {
    flex: 1 1 calc(50% - 8px);
    padding: 12px 14px;
    font-size: 14px;
    min-height: 46px;
  }

  .h2bh-res-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .h2bh-res-title {
    font-size: 20px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .h2bh-res-score {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .h2bh-res-score .h2bh-score-val {
    font-size: 18px;
  }

  .h2bh-res-ingredients-box,
  .h2bh-res-alternatives {
    padding: 12px 14px;
    word-break: break-word;
  }

  .h2bh-limit-cta-row {
    flex-direction: column;
    gap: 10px;
  }

  .h2bh-limit-cta-row .h2bh-btn,
  .h2bh-res-cta .h2bh-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .h2bh-scan-hero {
    padding: 16px 12px 12px 12px;
  }

  .h2bh-scan-main {
    padding: 0 12px 36px 12px;
  }

  .h2bh-scanner-card {
    padding: 0;
  }

  .h2bh-scanner-view {
    height: 270px;
  }

  .h2bh-viewfinder {
    width: 215px;
    height: 138px;
  }

  .h2bh-camera-controls .h2bh-btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .h2bh-res-header {
    gap: 10px;
  }

  .h2bh-res-title {
    font-size: 18px;
  }

  .h2bh-footer-trust {
    flex-direction: column;
    gap: 10px;
  }
}

/* -------------------------------------------------------------
   Section: Waarom kiezen voor de How2behealthy barcodescanner?
   Desktop: 6-col full cards | Tablet: 3x2 | Mobile: compact 2x3 (icon + title only)
   Matches current page palette (#0F3F2E, #fbf7ef, #edf6ef, #eadfce, #EE7042)
   ------------------------------------------------------------- */
.h2bh-why-nr1-section {
  margin-top: 38px;
  margin-bottom: 18px;
  width: 100%;
}

.h2bh-why-nr1-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.h2bh-why-showcase {
  background: #ffffff;
  border: 1px solid var(--h2bh-border);
  border-radius: 22px;
  padding: 34px 28px 30px;
  box-shadow: 0 10px 30px rgba(15, 63, 46, 0.06);
  margin-bottom: 22px;
}

.h2bh-why-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--h2bh-green);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
}

.h2bh-why-subtitle {
  font-size: 16px;
  color: var(--h2bh-muted);
  line-height: 1.52;
  max-width: 700px;
  margin: 0 auto 28px auto;
  font-weight: 500;
}

.h2bh-why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  text-align: center;
}

.h2bh-why-card {
  background: #fdfbf7;
  border: 1px solid #ede4d5;
  border-radius: 16px;
  padding: 20px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.h2bh-why-card:hover {
  transform: translateY(-2px);
  border-color: #c5dfd0;
  box-shadow: 0 6px 18px rgba(15, 63, 46, 0.07);
}

.h2bh-why-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--h2bh-light-green);
  border: 1px solid #d2e7da;
  color: var(--h2bh-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.h2bh-why-card:hover .h2bh-why-icon-wrap {
  background: var(--h2bh-green);
  color: #ffffff;
}

.h2bh-why-card-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--h2bh-green);
  margin: 0 0 9px 0;
  line-height: 1.3;
}

.h2bh-why-card-desc {
  font-size: 13.5px;
  color: #3f554e;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* Feedback Company Trust Box */
.h2bh-feedback-box {
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  border: 1.5px solid #d5e6dc;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(15, 63, 46, 0.06);
  text-align: left;
}

.h2bh-feedback-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.h2bh-feedback-score-badge {
  background: #0F3F2E;
  color: #ffffff;
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.h2bh-fb-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.h2bh-fb-max {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}

.h2bh-feedback-stars-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.h2bh-fb-stars {
  color: #FBBF24;
  font-size: 13px;
  display: flex;
  gap: 2px;
}

.h2bh-fb-verified {
  font-size: 11px;
  font-weight: 700;
  color: #0F3F2E;
  display: flex;
  align-items: center;
  gap: 4px;
}

.h2bh-feedback-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h2bh-feedback-quote {
  font-size: 13px;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}

.h2bh-fb-link {
  font-size: 12px;
  font-weight: 700;
  color: #0b726f;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.h2bh-fb-link:hover {
  color: #064e4b;
}

@media (max-width: 1120px) {
  .h2bh-why-nr1-inner {
    max-width: 820px;
  }
  .h2bh-why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Mobile Responsive: Shorter compact 2x3 tiles (Icon + Title only, matching Ivo's mobile spec) */
@media (max-width: 640px) {
  .h2bh-why-nr1-section {
    margin-top: 28px;
  }

  .h2bh-why-showcase {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 18px;
  }

  .h2bh-why-title {
    font-size: 23px;
    margin-bottom: 6px;
  }

  .h2bh-why-subtitle {
    font-size: 14.5px;
    margin-bottom: 16px;
  }

  .h2bh-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .h2bh-why-card {
    background: #ffffff;
    border: 1px solid var(--h2bh-border);
    border-radius: 14px;
    padding: 16px 10px;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(15, 63, 46, 0.05);
  }

  .h2bh-why-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 18px;
    margin-bottom: 9px;
  }

  .h2bh-why-card-title {
    font-size: 14.5px;
    margin: 0;
    line-height: 1.25;
  }

  .h2bh-why-card-desc {
    display: none;
  }

  .h2bh-feedback-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 16px;
  }

  .h2bh-feedback-left {
    justify-content: center;
  }

  .h2bh-feedback-right {
    align-items: center;
    text-align: center;
  }
}

/* =============================================================
   Embedded Checkout Popup Modal (Checkout Studio / PayPro)
   ============================================================= */
html.h2bh-checkout-open,
body.h2bh-checkout-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.h2bh-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.h2bh-checkout-modal[hidden] {
  display: none !important;
}

.h2bh-checkout-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.h2bh-checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 32, 24, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.h2bh-checkout-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 492px;
  max-height: 90vh;
  max-height: 90dvh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(10, 34, 24, 0.34);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.h2bh-checkout-modal.is-open .h2bh-checkout-modal-dialog {
  transform: translateY(0) scale(1);
}

.h2bh-checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #fbf8f3;
  border-bottom: 1px solid var(--h2bh-border, #e5e7eb);
  flex-shrink: 0;
}

.h2bh-checkout-modal-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.h2bh-checkout-modal-lock {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eaf4ee;
  color: var(--h2bh-green, #0f3f2e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.h2bh-checkout-modal-titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.h2bh-checkout-modal-title {
  margin: 0;
  font-family: 'Quicksand', sans-serif !important;
  font-size: 16px;
  font-weight: 800;
  color: var(--h2bh-green, #0f3f2e);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h2bh-checkout-modal-sub {
  font-size: 12px;
  font-weight: 600;
  color: #5d6b66;
  line-height: 1.2;
}

.h2bh-checkout-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(15, 63, 46, 0.16);
  background: #ffffff;
  color: var(--h2bh-green, #0f3f2e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.h2bh-checkout-modal-close:hover {
  background: var(--h2bh-green, #0f3f2e);
  color: #ffffff;
  transform: scale(1.04);
}

.h2bh-checkout-modal-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 63, 46, 0.28) transparent;
}

.h2bh-checkout-modal-body::-webkit-scrollbar {
  width: 6px;
}

.h2bh-checkout-modal-body::-webkit-scrollbar-thumb {
  background: rgba(15, 63, 46, 0.25);
  border-radius: 999px;
}

.h2bh-checkout-modal-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px;
  text-align: center;
}

.h2bh-checkout-modal-loader[hidden] {
  display: none !important;
}

.h2bh-checkout-modal-loader p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--h2bh-green, #0f3f2e);
}

.h2bh-checkout-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3.5px solid #e5efe9;
  border-top-color: var(--h2bh-orange, #ee7042);
  animation: h2bhCheckoutSpin 0.8s linear infinite;
}

@keyframes h2bhCheckoutSpin {
  to {
    transform: rotate(360deg);
  }
}

.h2bh-checkout-mount {
  width: 100%;
  min-height: 380px;
}

.h2bh-checkout-mount iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  min-height: 460px;
}

@media (max-width: 640px) {
  .h2bh-checkout-modal {
    padding: max(44px, env(safe-area-inset-top) + 28px) 0 max(44px, env(safe-area-inset-bottom) + 28px);
    align-items: center;
    justify-content: center;
  }

  .h2bh-checkout-modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 82vh;
    max-height: 82dvh;
    border-radius: 20px;
    box-shadow: 0 20px 52px rgba(10, 34, 24, 0.38);
  }

  .h2bh-checkout-modal-header {
    padding: 12px 14px;
  }

  .h2bh-checkout-modal-lock {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .h2bh-checkout-modal-title {
    font-size: 14.5px;
  }

  .h2bh-checkout-modal-sub {
    font-size: 11px;
  }

  .h2bh-checkout-modal-close {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .h2bh-checkout-modal-body {
    flex: 1 1 auto;
    min-height: 0;
  }
}