/* Keuzehulp adviesscherm: beste keuze groot, alternatieven met winkelwagen, ruimtes, mail. */

/* Beste keuze: grote foto */
.dh-kh-pick__card {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  border: 2px solid var(--dh-orange, #ea580c);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
.dh-kh-pick__card .dh-kh-product__pick {
  display: inline-block;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--dh-orange, #ea580c);
  color: #fff;
  letter-spacing: .06em;
}
.dh-kh-fitwhy {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--dh-ink, #0f172a);
}
.dh-kh-fitwhy strong { display: block; margin-bottom: 2px; color: #15803d; }

.dh-kh-addroom {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--dh-line, #cbd5e1);
  border-radius: var(--dh-r-md, 10px);
  background: #fff;
  color: var(--dh-navy, #17324a);
  font: 700 14px/1.3 var(--dh-font, inherit);
  cursor: pointer;
}
.dh-kh-addroom:hover { border-color: var(--dh-navy, #17324a); }

/* Staffelkorting */
.dh-kh-staffel {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.dh-kh-staffel__title { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: #9a3412; }
.dh-kh-staffel__tiers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.dh-kh-staffel__tier {
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fed7aa;
  font-size: 13px;
  color: #7c2d12;
}
.dh-kh-staffel__tier.is-on { background: #ea580c; border-color: #ea580c; color: #fff; }
.dh-kh-staffel__tier.is-on strong { color: #fff; }
.dh-kh-staffel__note { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #7c2d12; }

/* Alternatieven: goedkoper / krachtiger, met eigen winkelwagenknop */
.dh-kh-alts .dh-kh-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dh-kh-product[data-kh-role="cheaper"] .dh-kh-product__badge { background: #ecfdf5; color: #047857; }
.dh-kh-product[data-kh-role="stronger"] .dh-kh-product__badge { background: #eff6ff; color: #1d4ed8; }
.dh-kh-product__badge { justify-self: start; }
.dh-kh-product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.dh-kh-pick__cart--small { width: auto; min-height: 44px; margin: 0; padding: 0 16px; font-size: 15px; }
.dh-kh-product__more { font-weight: 700; font-size: 14px; }
.dh-kh-product__actions .added_to_cart { display: none; }

/* Meerdere ruimtes */
.dh-kh-rooms {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-radius: var(--dh-r-lg, 16px);
  background: #fff;
  border: 1px solid var(--dh-line, #e2e8f0);
}
.dh-kh-rooms[hidden] { display: none; }
.dh-kh-rooms__title { margin: 0 0 10px; font-size: 20px; }
.dh-kh-rooms__list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.dh-kh-rooms__row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 28px;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: #f8fafc;
}
.dh-kh-rooms__row.is-current { background: #fff7ed; }
.dh-kh-rooms__row img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; }
.dh-kh-rooms__row div { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.dh-kh-rooms__row em { font-style: normal; font-weight: 600; color: var(--dh-muted, #64748b); }
.dh-kh-rooms__row span { color: var(--dh-muted, #475569); overflow: hidden; text-overflow: ellipsis; }
.dh-kh-rooms__row b { white-space: nowrap; }
.dh-kh-rooms__del { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #e2e8f0; cursor: pointer; font-size: 16px; line-height: 1; }
.dh-kh-rooms__row.is-current::after { content: ""; }
.dh-kh-rooms__hint { margin: 8px 0 0; font-size: 13px; color: var(--dh-muted, #64748b); }
.dh-kh-rooms .dh-kh-pick__cart { max-width: 360px; }

/* Mail mij dit advies */
.dh-kh-mail {
  margin: 12px 0;
  border: 1px solid var(--dh-line, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}
.dh-kh-mail > summary {
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.dh-kh-mail > summary::-webkit-details-marker { display: none; }
.dh-kh-mail > summary::before { content: "✉ "; }
.dh-kh-mail__form { display: grid; gap: 10px; padding: 0 16px 16px; }
.dh-kh-mail__lead { margin: 0; font-size: 14px; color: var(--dh-muted, #475569); }
.dh-kh-mail__field { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.dh-kh-mail__field input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--dh-line, #cbd5e1);
  border-radius: 10px;
  font-size: 16px;
}
.dh-kh-mail__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dh-kh-mail__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--dh-muted, #475569); }
.dh-kh-mail__consent input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--dh-navy, #17324a); }
.dh-kh-mail__status { margin: 0; font-size: 14px; font-weight: 600; }
.dh-kh-mail__form.is-sent .dh-kh-mail__field,
.dh-kh-mail__form.is-sent .dh-kh-mail__consent,
.dh-kh-mail__form.is-sent button { display: none; }
.dh-kh-mail__form.is-sent .dh-kh-mail__status { color: #15803d; }

@media (max-width: 960px) {
  .dh-kh-alts .dh-kh-products { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dh-kh-pick__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "copy"
      "buy";
  }
  .dh-kh-pick__media { aspect-ratio: auto; display: flex; justify-content: center; }
  .dh-kh-pick__media img { width: auto; max-width: 100%; height: auto; max-height: 280px; }
  /* Ruimtes direct onder de beste keuze, niet onder de uitleg. */
  .dh-kh-result > .dh-kh-head { order: 0; }
  .dh-kh-result > .dh-kh-pick { order: 1; }
  .dh-kh-result > .dh-kh-rooms { order: 2; }
  .dh-kh-result > * { order: 3; }
  .dh-kh-rooms { padding: 14px 12px; }
  .dh-kh-rooms__row { grid-template-columns: 44px minmax(0, 1fr) auto 28px; gap: 8px; }
  .dh-kh-rooms__row img { width: 44px; height: 44px; }
  .dh-kh-pick__cart--small { flex: 1 1 auto; }
}
