/* Picks Widget: prijsblok van een Picks-site in een artikel. Erft lettertype en tekstkleur van het thema van de partner.
   Kleuren via custom properties, zodat de partner ze in zijn thema kan overschrijven (bijv. .picks-w { --picks-accent: #c00; }). */
.picks-w {
  --picks-accent: #2f6b3f;
  --picks-accent-text: #ffffff;
  --picks-line: rgba(0, 0, 0, 0.12);
  --picks-soft: rgba(0, 0, 0, 0.035);
  --picks-muted: rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  margin: 1.25em 0 1.75em;
  padding: 12px 16px 4px;
  border: 1px solid var(--picks-line);
  border-radius: 10px;
  background: var(--picks-soft);
  font-size: 15px;
  line-height: 1.4;
  max-width: 720px;
}
.picks-w *, .picks-w *::before, .picks-w *::after { box-sizing: border-box; }
.picks-w p, .picks-w ul, .picks-w li { margin: 0; padding: 0; list-style: none; }
.picks-w a { text-decoration: none; box-shadow: none; color: inherit; }
.picks-w img { margin: 0; max-width: none; }

.picks-w-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--picks-muted); }
.picks-w-brand { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.picks-w-fav { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.picks-w-ad { flex: 0 0 auto; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid var(--picks-line); border-radius: 4px; padding: 1px 5px; }

/* Product: foto links, titel en prijs rechts, shops eronder in de rechterkolom (desktop) of over de volle breedte (mobiel). */
.picks-w-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 14px; padding: 12px 0; border-top: 1px solid var(--picks-line); }
.picks-w-photo { grid-row: 1 / span 3; display: block; width: 110px; height: 110px; border-radius: 8px; background: #fff; overflow: hidden; }
.picks-w-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.picks-w-body, .picks-w-shops, .picks-w-more { grid-column: 2; }
.picks-w-title { font-weight: 700; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.picks-w-name:hover { text-decoration: underline; }
.picks-w-low { font-size: 14px; margin: 2px 0 6px; }
.picks-w-low strong { font-size: 16px; }
.picks-w-from, .picks-w-count { color: var(--picks-muted); }

/* Shopregel: de hele regel is de link. */
.picks-w-shop { border-top: 1px dashed var(--picks-line); }
.picks-w-shop:first-child { border-top: 0; }
.picks-w-shoplink { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; }
/* .picks-w .picks-w-logo: specifieker dan .picks-w img (max-width: none), anders loopt een breed logo over de naam. */
.picks-w .picks-w-logo { height: 20px; width: auto; max-width: 72px; justify-self: start; object-fit: contain; display: block; background: #fff; border-radius: 3px; }
.picks-w .picks-w-nologo { width: 20px; background: transparent; }
.picks-w-shopname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picks-w-shopprice { font-variant-numeric: tabular-nums; white-space: nowrap; }
.picks-w-btn { display: inline-block; padding: 6px 12px; border-radius: 6px; background: var(--picks-accent); color: var(--picks-accent-text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.picks-w-shoplink:hover .picks-w-btn, .picks-w-shoplink:focus-visible .picks-w-btn { filter: brightness(1.12); }
.picks-w-shoplink:focus-visible { outline: 2px solid var(--picks-accent); outline-offset: 2px; border-radius: 6px; }
.picks-w-more { display: inline-block; margin: 4px 0 2px; padding: 6px 0; font-size: 14px; color: var(--picks-accent) !important; font-weight: 600; }
.picks-w-more:hover { text-decoration: underline; }

/* Label prijsdaling (0.9.0). */
.picks-w-drop { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 12px; font-weight: 600; background: #e7f6ec; color: #13612e; white-space: nowrap; }

/* Vorm lijst: één regel per product (0.9.0). */
.picks-w-rows { margin: 0; padding: 0; list-style: none; }
.picks-w-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--picks-line); }
.picks-w-lijst .picks-w-photo, .picks-w-tabel .picks-w-photo { width: 56px; height: 56px; border-radius: 6px; background: #fff; overflow: hidden; display: block; flex: none; }
.picks-w-rowbody { display: grid; gap: 2px; min-width: 0; }
.picks-w-lijst .picks-w-title, .picks-w-tabel .picks-w-title { font-size: 15px; -webkit-line-clamp: 2; }
.picks-w-lijst .picks-w-low { margin: 0; }
.picks-w-rowbtn { display: inline-block; }

/* Vorm tabel: vergelijkingstabel (0.9.0). Eén raster voor alle rijen, zodat de kolommen recht onder elkaar staan. */
.picks-w-tabel .picks-w-rows { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 14px; align-items: center; }
.picks-w-trow { display: contents; }
.picks-w-tcell { padding: 8px 0; border-top: 1px solid var(--picks-line); align-self: stretch; display: flex; align-items: center; }
.picks-w-thead .picks-w-tcell { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--picks-muted); padding: 4px 0; }
.picks-w-tprod { display: flex; align-items: center; gap: 10px; min-width: 0; }
.picks-w-tprice strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.picks-w-tprice { flex-direction: column; align-items: flex-start; justify-content: center; }
.picks-w-tprice .picks-w-drop { margin: 2px 0 0; }
.picks-w-tshops .picks-w-count { color: var(--picks-muted); }

/* CTR (0.10.0): besparing, "laagste prijs", tijd van de prijs en de vorm "In dit artikel" (overzicht). */
.picks-w-save { margin: -2px 0 6px; font-size: 13px; font-weight: 600; color: #13612e; }
.picks-w-lijst .picks-w-save, .picks-w-tabel .picks-w-save { display: block; margin: 2px 0 0; font-size: 12px; }
.picks-w-best { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 1.5; background: #e7f6ec; color: #13612e; white-space: nowrap; vertical-align: 1px; }
.picks-w-time { margin-left: auto; font-size: 12px; white-space: nowrap; }
.picks-w-head .picks-w-time + .picks-w-ad { margin-left: 0; }
.picks-w-overzicht .picks-w-head { margin-bottom: 4px; }
.picks-w-orow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--picks-line); }
.picks-w-onum { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--picks-soft); border: 1px solid var(--picks-line); }
.picks-w-overzicht .picks-w-title { font-size: 15px; font-weight: 600; -webkit-line-clamp: 2; }
.picks-w-overzicht .picks-w-low { margin: 0; white-space: nowrap; }
.picks-w-overzicht .picks-w-count { font-size: 13px; color: var(--picks-muted); white-space: nowrap; }

@media (max-width: 560px) {
  .picks-w { padding: 10px 12px 2px; font-size: 15px; }
  .picks-w-head { flex-wrap: wrap; row-gap: 2px; }
  .picks-w-time { order: 3; width: 100%; margin-left: 0; }
  .picks-w-orow { grid-template-columns: 24px minmax(0, 1fr) auto; row-gap: 4px; }
  .picks-w-overzicht .picks-w-count { display: none; }
  .picks-w-orow .picks-w-rowbtn { grid-column: 2 / -1; }
  .picks-w-orow .picks-w-rowbtn .picks-w-btn { display: block; text-align: center; }
  .picks-w-by { min-width: 0; }
  .picks-w-item { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 10px 0 6px; }
  .picks-w-photo { grid-row: 1; width: 64px; height: 64px; }
  .picks-w-title { font-size: 15px; }
  .picks-w-low { margin-bottom: 4px; }
  .picks-w-low strong { font-size: 15px; }
  .picks-w-from { display: none; }
  .picks-w-shops, .picks-w-more { grid-column: 1 / -1; }
  .picks-w-shops { margin-top: 6px; }
  .picks-w-shoplink { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; min-height: 48px; }
  .picks-w .picks-w-logo { display: none; }
  .picks-w-shopname { white-space: normal; line-height: 1.25; }
  .picks-w-btn { padding: 7px 11px; font-size: 13px; }
  .picks-w-row { grid-template-columns: 48px minmax(0, 1fr); }
  /* Foto even breed als de kolom: anders schoof de foto (56px) onder de productnaam en was de link op een telefoon
     niet aan te tikken (0.10.1, klik-test op alle links). */
  .picks-w-lijst .picks-w-photo, .picks-w-tabel .picks-w-photo { width: 48px; height: 48px; }
  .picks-w-row .picks-w-rowbtn { grid-column: 1 / -1; }
  .picks-w-row .picks-w-rowbtn .picks-w-btn { display: block; text-align: center; }
  .picks-w-tabel .picks-w-rows { grid-template-columns: minmax(0, 1fr) auto; }
  .picks-w-thead { display: none; }
  .picks-w-tprod { grid-column: 1 / -1; }
  .picks-w-tprice, .picks-w-tbtn { border-top: 0; padding-top: 0; }
  .picks-w-tshops { display: none; }
}
/* Lijnen, grijze tekst en achtergrond kleuren mee met de tekstkleur van het thema: leesbaar op lichte en donkere sites
   (0.9.1, Roel 25 nov: op MANIFY, zwart, was "Prijzen vergeleken door" onleesbaar). */
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .picks-w {
    --picks-line: color-mix(in srgb, currentColor 16%, transparent);
    --picks-soft: color-mix(in srgb, currentColor 4%, transparent);
    --picks-muted: color-mix(in srgb, currentColor 68%, transparent);
  }
}
/* Leesbaar bij elke knopkleur: een dunne rand in de tekstkleur (zichtbaar als knop en achtergrond op elkaar lijken), en
   de link naar de Picks-site in de tekstkleur met onderstreping in plaats van de knopkleur. */
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .picks-w .picks-w-btn { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent); }
}
.picks-w .picks-w-more { color: inherit !important; text-decoration: underline; text-underline-offset: 2px; }
/* Shoplogo's: standaard op een wit vlakje (ook zichtbaar op een donker thema), zonder filters van het thema. */
.picks-w .picks-w-logo { filter: none !important; background: #fff !important; padding: 1px 3px; box-sizing: content-box; }
.picks-w .picks-w-nologo { background: transparent !important; padding: 0; }
.picks-w.picks-w-logos-geen .picks-w-logo { background: transparent !important; padding: 0; }
.picks-w.picks-w-logos-naam .picks-w-logo, .picks-w.picks-w-logos-naam .picks-w-nologo { display: none !important; }
.picks-w-lw-0 .picks-w-shoplink { grid-template-columns: minmax(0, 1fr) auto auto; }
.picks-w-lw-0 .picks-w-nologo { display: none; }
/* Logokolom zo breed als het breedste logo in het blok (0.10.1, Roel 26 nov: "de uitlijning is niet top"): de naam
   staat dan vlak naast het logo. De server zet de klasse (picks-w-lw-30 tot -66); zonder klasse de oude 72px. */
.picks-w-lw-30 .picks-w-shoplink { grid-template-columns: 30px minmax(0, 1fr) auto auto; }
.picks-w-lw-42 .picks-w-shoplink { grid-template-columns: 42px minmax(0, 1fr) auto auto; }
.picks-w-lw-54 .picks-w-shoplink { grid-template-columns: 54px minmax(0, 1fr) auto auto; }
.picks-w-lw-66 .picks-w-shoplink { grid-template-columns: 66px minmax(0, 1fr) auto auto; }
.picks-w.picks-w-logos-naam .picks-w-shoplink { grid-template-columns: minmax(0, 1fr) auto auto; }
@media (max-width: 560px) {
  .picks-w-shops[class*="picks-w-lw-"] .picks-w-shoplink { grid-template-columns: minmax(0, 1fr) auto auto; }
}
@media (prefers-color-scheme: dark) {
  .picks-w.picks-w-auto { --picks-line: rgba(255, 255, 255, 0.16); --picks-soft: rgba(255, 255, 255, 0.04); --picks-muted: rgba(255, 255, 255, 0.65); }
}
