/* Eén product als kaart in een uitlegpagina (ProductBlok.jsx), bijvoorbeeld de kaartlezer bij de kentekenkaart. */

.productblok {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: var(--kaart);
  box-shadow: inset 0 0 0 1px var(--lijn), 0 12px 32px -20px rgb(15 23 42 / 0.3);
}

.productblok__beeld {
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--kaart-2);
  display: grid;
  place-items: center;
}

.productblok__beeld img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.productblok__tekst {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.productblok__naam {
  font-size: 16px;
  line-height: 1.35;
}

.productblok__prijs {
  font-size: 18px;
  font-weight: 800;
}

.productblok__prijs small {
  font-size: 13px;
  font-weight: 600;
  color: var(--inkt-2);
}

.productblok__knop {
  margin-top: 4px;
}

@media (max-width: 520px) {
  .productblok {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .productblok__beeld {
    width: 140px;
  }
}
/* De rekenhulp op /cdt-kosten/: boordcomputer met taximeter tegen de app met een losse taximeter. Staat in de leeskolom
   van een landingspagina (.tekst), dus de twee kolommen gaan op een smal scherm onder elkaar. */

.rh {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.rh__kolommen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rh__kolom {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--lijn);
  border-radius: 20px;
  background: var(--kaart);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.rh__kolom--wij {
  border-color: var(--blauw);
  box-shadow: var(--schaduw);
}

.rh__kolom > legend {
  padding: 0 6px;
  color: var(--inkt);
  font-weight: 800;
}

.rh__veld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--inkt);
  font-weight: 600;
}

.rh__veld > small,
.rh__noot {
  margin: 0;
  color: var(--inkt-2);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.rh__invoer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  min-height: 48px;
  border: 1px solid var(--lijn);
  border-radius: 14px;
  background: var(--veld);
}

.rh__invoer:focus-within {
  border-color: var(--blauw);
}

.rh__invoer > input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--inkt);
  font: inherit;
  font-weight: 700;
  outline: none;
  direction: ltr;
  text-align: start;
}

.rh__keuze {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--veld);
  font-weight: 600;
  cursor: pointer;
}

.rh__keuze > input {
  accent-color: var(--blauw);
}

.rh__keuze > span {
  flex: 1;
}

.rh__keuze > b,
.rh__vast > b {
  white-space: nowrap;
}

.rh__vast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--inkt);
  font-weight: 600;
}

.rh__periode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--inkt);
  font-weight: 700;
}

.rh__periode > span {
  margin-inline-end: 6px;
}

.rh__periode > button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  background: var(--kaart);
  color: var(--inkt);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rh__periode > button.is-gekozen {
  border-color: var(--blauw);
  background: var(--blauw);
  color: #fff;
}

.rh__uitkomst {
  padding: 18px;
  border-radius: 20px;
  background: var(--kaart);
  box-shadow: var(--schaduw);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rh__rij {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  color: var(--inkt);
}

.rh__rij > span + span {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rh__rij--kop {
  color: var(--inkt-2);
  font-size: 13px;
  font-weight: 700;
}

.rh__rij--kop > span + span {
  white-space: normal;
}

.rh__rij--totaal {
  padding-top: 8px;
  border-top: 1px solid var(--lijn);
  font-weight: 800;
}

.rh__oordeel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 0;
  color: var(--inkt);
  font-weight: 800;
  line-height: 1.5;
}

.rh__oordeel > svg {
  flex: none;
  margin-top: 3px;
  color: var(--blauw);
}

.rh__knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .rh__kolommen {
    grid-template-columns: 1fr;
  }
}
