/*
 * retourzending signature ("het retourlabel").
 * Elements: picto tile (portal rz-* set, cut-outs via --picto-bg), the return label (.rz-label: white paper, black
 * rules, condensed field names, barcode, yellow RETOUR sticker), the withdrawal button in a mini shop footer (.rz-shop
 * + .rz-knop), the parcel route (.rz-route, same steps as the portal status page), plans, split hero, FAQ, sources.
 * Load after kit.css + themes/retourzending.css. Pictograms: portal partial + icons/retourzending/sprite-landing.svg.
 */

h1, h2, h3, .zs-logo { font-family: var(--zs-font-display); font-weight: var(--zs-display-weight); letter-spacing: var(--zs-display-tracking); }
h2, h3 { color: var(--zs-brand-text); }
.rz-cond { font-family: var(--zs-font-display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Picto tile ---------- */
.rz-picto { --picto-bg: var(--zs-brand); display: inline-grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; border-radius: var(--zs-radius-sm); background: var(--zs-brand); color: #fff; }
.rz-picto svg { width: 70%; height: 70%; fill: currentColor; }
.rz-picto--sm { width: 2rem; height: 2rem; }
.rz-picto--lg { width: 3.6rem; height: 3.6rem; border-radius: 8px; }
.zs-header .rz-picto { --picto-bg: #fff; background: #fff; color: var(--zs-brand); }

/* ---------- The return label ---------- */
.rz-label {
  position: relative; display: grid; color: var(--rz-label-ink); background: var(--rz-label);
  border: 2px solid var(--rz-label-ink); border-radius: 6px; font-size: .92rem;
  box-shadow: 0 2px 0 rgb(18 26 38 / .06), 0 22px 44px rgb(18 26 38 / .22);
}
.rz-label__row { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--rz-label-ink); }
.rz-label__row:first-child { border-top: 0; }
.rz-label__cell { padding: .55rem .75rem .6rem; min-width: 0; }
.rz-label__cell + .rz-label__cell { border-left: 2px solid var(--rz-label-ink); }
.rz-label__cell--wide { grid-column: 1 / -1; }
.rz-label__name { display: block; margin-bottom: .15rem; font: 700 .7rem/1 var(--zs-font-display); font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; color: #4a5668; }
.rz-label__value { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.rz-label__big { font: 800 1.7rem/1 var(--zs-font-display); font-stretch: 80%; letter-spacing: .01em; }
.rz-label__barcode { height: 3.2rem; margin: .1rem 0 .3rem;
  background:
    repeating-linear-gradient(90deg, var(--rz-label-ink) 0 2px, transparent 2px 5px, var(--rz-label-ink) 5px 6px, transparent 6px 8px, var(--rz-label-ink) 8px 11px, transparent 11px 13px),
    repeating-linear-gradient(90deg, transparent 0 17px, var(--rz-label) 17px 19px);
  background-blend-mode: normal; }
.rz-label__code { font: 600 .82rem/1 var(--zs-font-body); letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.rz-sticker {
  position: absolute; top: -.9rem; right: -.7rem; padding: .35rem .7rem .3rem; transform: rotate(6deg);
  font: 800 1rem/1 var(--zs-font-display); font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase;
  color: #121a26; background: var(--zs-highlight); border-radius: 3px; box-shadow: 0 3px 8px rgb(0 0 0 / .18);
}
.rz-sticker::before { content: "\21A9"; margin-right: .35rem; } /* return arrow */

/* ---------- Mini shop footer with the withdrawal button ---------- */
.rz-shop { --shop: #2d6a4f; display: grid; gap: .9rem; padding: 1.1rem 1.2rem; color: #2a3340; background: #fff; border: 1px solid var(--zs-line); border-radius: var(--zs-radius); box-shadow: 0 14px 34px rgb(18 26 38 / .12); }
.rz-shop__bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding-bottom: .7rem; border-bottom: 1px solid #e3e8ee; font-size: .85rem; color: #5b6676; }
.rz-shop__bar strong { color: var(--shop); font-family: var(--zs-font-display); font-size: 1rem; }
.rz-shop ul { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.rz-shop ul a { color: #2a3340; }
.rz-knop {
  justify-self: start; display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.1rem;
  font: 700 1rem/1.1 var(--zs-font-body); color: #fff; background: var(--shop); border: 0; border-radius: 8px;
  outline: 3px solid var(--zs-highlight); outline-offset: 3px; text-decoration: none;
}
.rz-knop svg { width: 1.3rem; height: 1.3rem; fill: currentColor; --picto-bg: var(--shop); }
.rz-shop__note { margin: 0; font-size: .8rem; color: #5b6676; }

/* ---------- Parcel route: the five portal statuses on a dashed line ---------- */
.rz-route { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: rz; }
.rz-route li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: start; }
.rz-route .rz-picto { grid-row: span 2; position: relative; z-index: 1; }
.rz-route h3 { margin: .25rem 0 0; font-size: 1.1rem; }
.rz-route p { margin: 0; color: var(--zs-muted); }
.rz-route li:not(:last-child)::after { content: ""; position: absolute; left: 1.4rem; top: 2.9rem; bottom: -1rem; border-left: 2px dashed var(--rz-step-todo); }
@media (min-width: 60rem) {
  .rz-route { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
  .rz-route li { grid-template-columns: 1fr; justify-items: start; }
  .rz-route .rz-picto { grid-row: auto; }
  .rz-route li:not(:last-child)::after { left: 3.4rem; right: -1.2rem; top: 1.4rem; bottom: auto; border-left: 0; border-top: 2px dashed var(--rz-step-todo); }
}

/* ---------- Split hero: copy left, photo right with the label on top ---------- */
.rz-hero { padding-block: clamp(2rem, 5vw, 4.5rem); }
.rz-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .rz-hero__grid { grid-template-columns: 1fr 1.05fr; } }
.rz-hero h1 { font-size: clamp(2.1rem, 3vw + 1.1rem, 3.5rem); line-height: 1.05; margin: 0 0 1rem; color: var(--zs-ink); }
.rz-hero h1 mark { color: inherit; background: linear-gradient(transparent 80%, var(--zs-highlight) 80% 96%, transparent 96%); padding: 0 .05em; }
.rz-hero__lead { font-size: 1.15rem; line-height: 1.55; max-width: 34rem; margin: 0 0 1.5rem; color: var(--zs-muted); }
.rz-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.rz-hero__note { margin: .9rem 0 0; font-size: .9rem; color: var(--zs-muted); }
.rz-hero__visual { position: relative; margin: 0; padding: 0 0 4.5rem; }
.rz-hero__visual img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--zs-radius); }
.rz-hero__visual .rz-label { position: absolute; left: -1rem; bottom: 0; width: min(21rem, 82%); transform: rotate(-2.5deg); }
.rz-hero__visual figcaption { position: absolute; right: .5rem; top: .5rem; max-width: calc(100% - 1rem); font-size: .72rem; color: #fff; background: rgb(14 20 32 / .7); padding: .15rem .45rem; border-radius: 4px; }
@media (max-width: 40rem) { .rz-hero__visual { padding-bottom: 8.5rem; } .rz-hero__visual .rz-label { left: .5rem; width: calc(100% - 2.5rem); } }

/* ---------- Law block ---------- */
.rz-law { display: grid; gap: 1.5rem 2.5rem; align-items: center; }
@media (min-width: 56rem) { .rz-law { grid-template-columns: 1.1fr 1fr; } }
.rz-date { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem; border-radius: 4px; font: 700 .95rem/1 var(--zs-font-display); color: var(--zs-highlight-ink); background: var(--zs-highlight); }
.rz-checks { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.rz-checks li { display: flex; gap: .6rem; align-items: flex-start; }
.rz-checks svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .1rem; fill: var(--zs-picto); --picto-bg: var(--zs-surface); }

/* ---------- Plans ---------- */
.rz-plans { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .rz-plans { grid-template-columns: repeat(3, 1fr); } }
.rz-plan { position: relative; display: grid; gap: .6rem; align-content: start; padding: 1.3rem 1.25rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); }
.rz-plan.is-label { border: 2px solid var(--zs-ink); }
.rz-plan.is-label::before { content: "Met retourlabels"; position: absolute; top: -.8rem; left: 1rem; padding: .25rem .55rem; transform: rotate(-2deg); font: 800 .78rem/1 var(--zs-font-display); letter-spacing: .06em; text-transform: uppercase; color: #121a26; background: var(--zs-highlight); border-radius: 3px; }
.rz-plan h3 { margin: 0; font-size: 1.2rem; }
.rz-plan__price { margin: 0; font: 800 2.2rem/1 var(--zs-font-display); font-variant-numeric: tabular-nums; color: var(--zs-ink); }
.rz-plan__price small { font: 400 .9rem/1.2 var(--zs-font-body); color: var(--zs-muted); }
.rz-plan__cap { margin: 0; font-weight: 600; }
.rz-plan ul { display: grid; gap: .4rem; margin: .3rem 0 .6rem; padding: 0; list-style: none; }
.rz-plan li { display: flex; gap: .5rem; align-items: flex-start; }
.rz-plan li svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .15rem; fill: var(--zs-picto); --picto-bg: var(--zs-surface); }
.rz-plan .zs-btn { justify-self: start; margin-top: auto; }

/* ---------- Photo strip + source line ---------- */
.rz-photos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 0; }
.rz-photos figure { margin: 0; }
.rz-photos img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--zs-radius); }
.rz-photos figcaption { margin-top: .5rem; color: var(--zs-muted); }
.rz-photos figcaption strong { display: block; color: var(--zs-ink); font-family: var(--zs-font-display); font-size: 1.1rem; }
.rz-source { font-size: .82rem; color: var(--zs-muted); }
