/* Stalenpaneel (inc/stalenpaneel.php): de inhoud in het venster van infopaneel.css, klasse .rdl-info--stalen.
 * Mobiel: blad van onderen (max. 90vh, inhoud scrolt, knoppen blijven onderin). Vanaf 768px: paneel van rechts met kop,
 * waaier, tekst en knoppen op een vaste plek; alleen de lijst scrolt. Groen alleen bij vinkje en telbolletje. */
dialog.rdl-info.rdl-info--stalen { border-radius: 20px 20px 0 0; }
.rdl-sm__voet { display: flex; flex-direction: column; gap: 10px; }
.rdl-info--stalen .rdl-info__voet { max-height: none; overflow: visible; border-top: 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.rdl-info--stalen .rdl-info__lijf { gap: 12px; padding: 4px 20px 4px; text-align: center; }

/* ---- Waaier: hooguit drie staalkaartjes, het nieuwe valt erin ---- */
.rdl-sm__waaier { position: relative; height: 124px; }
.rdl-sm__plek { position: absolute; bottom: 4px; left: 50%; margin-left: -38px; transform: translateX(calc(var(--rdl-sm-af) * 70px)) rotate(calc(var(--rdl-sm-af) * 9deg)); transform-origin: 50% 100%; }
.rdl-sm__kaart { display: flex; flex-direction: column; gap: 3px; width: 76px; height: 100px; padding: 5px; border: 2px solid var(--rdl-ink, #16201a); border-radius: 10px; background: #fff; text-align: center; }
.rdl-sm__stof { display: block; flex: 1 1 auto; min-height: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(22, 32, 26, .12); }
.rdl-sm__kaartnaam, .rdl-sm__kaartnr { display: block; flex: none; overflow: hidden; font-size: 10px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.rdl-sm__kaartnaam { font-weight: 700; }
.rdl-sm__kaartnr { color: var(--rdl-ink-muted, #5d6656); }
.rdl-sm__vonken { position: absolute; top: 4px; left: 50%; margin-left: -110px; opacity: 0; pointer-events: none; }
.rdl-sm__vonken .is-magenta { stroke: var(--rdl-magenta, #FE008C); }
.rdl-sm__vonken .is-lime { stroke: var(--rdl-lime, #7bce0e); }
.rdl-sm__kaart.is-nieuw { animation: rdl-sm-val .55s cubic-bezier(.3, 1.4, .5, 1) .15s both; }
.rdl-sm__vonken { animation: rdl-sm-vonk .9s ease-out .4s both; }
@keyframes rdl-sm-val { 0% { transform: translateY(-60px) scale(.5); opacity: 0; } 60% { transform: translateY(5px) scale(1.06); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes rdl-sm-vonk { 0% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }

/* ---- Tekst en aantal ---- */
dialog.rdl-info h3.rdl-sm__kop { margin: 0; padding: 0; font-family: Sora, 'Sora Fallback', sans-serif; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-transform: none; color: var(--rdl-ink, #16201a); }
dialog.rdl-info p.rdl-sm__zin { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--rdl-ink-soft, #3b4436); }
dialog.rdl-info p.rdl-sm__aantal { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; }
.rdl-sm__aantal .rdl-vinkbol { width: 22px; height: 22px; }

/* ---- Lijst met gekozen stalen: mobiel alleen bij een vol mapje ---- */
dialog.rdl-info ul.rdl-sm__lijst { display: none; flex-direction: column; gap: 8px; margin: 0; padding: 2px; list-style: none; text-align: left; }
dialog.rdl-info.is-lijst ul.rdl-sm__lijst { display: flex; }
dialog.rdl-info li.rdl-sm__rij { display: flex; flex: none; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 2px 4px 2px 10px; border: 2px solid var(--rdl-ink, #16201a); border-radius: 12px; background: var(--rdl-lime-tint, #eef7e0); }
dialog.rdl-info li.rdl-sm__rij.is-bezig { opacity: .5; }
.rdl-sm__bol { flex: none; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(22, 32, 26, .25); }
.rdl-sm__naam { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.rdl-sm__nr { font-weight: 500; color: var(--rdl-ink-muted, #5d6656); }
dialog.rdl-info button.rdl-sm__weg { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent !important; box-shadow: none !important; color: var(--rdl-ink, #16201a) !important; cursor: pointer; }
dialog.rdl-info button.rdl-sm__weg:hover { background: #fff !important; }

/* ---- Knoppen: aanvragen ink (groen is alleen kopen), verder wit met magenta rand ---- */
dialog.rdl-info a.rdl-sm__aanvraag { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 8px 16px; border-radius: 12px; background: var(--rdl-ink, #16201a); color: #fff !important; font-size: 17px; font-weight: 700; line-height: 1.25; text-decoration: none; }
dialog.rdl-info a.rdl-sm__aanvraag:hover { background: #2c3a30; }
.rdl-sm__tel { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--rdl-lime, #7bce0e); color: var(--rdl-ink, #16201a); font-size: 13px; }
dialog.rdl-info button.rdl-sm__verder { min-height: 48px; margin: 0; padding: 8px 16px; border: 2px solid var(--rdl-magenta, #FE008C); border-radius: 12px; background: #fff !important; box-shadow: none !important; font-family: Figtree, 'Figtree Fallback', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-transform: none; color: var(--rdl-magenta-ink, #C4006A) !important; cursor: pointer; }
dialog.rdl-info p.rdl-sm__later { margin: 0; font-size: 13px; line-height: 1.4; color: var(--rdl-ink-muted, #5d6656); text-align: center; }
dialog.rdl-info p.rdl-sm__later.is-breed { display: none; }

/* ---- Mobiel: geen titelbalk, alleen de greep en het kruisje (de titel blijft de naam van het venster) ---- */
@media (max-width: 767px) {
  .rdl-info--stalen .rdl-info__greep { margin-bottom: 8px; }
  .rdl-info--stalen .rdl-info__kop { position: absolute; top: 6px; right: 6px; z-index: 2; padding: 0; border: 0; }
  dialog.rdl-info.rdl-info--stalen h2.rdl-info__titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Vanaf 768px: paneel van rechts ---- */
@media (min-width: 768px) {
  dialog.rdl-info.rdl-info--stalen { border-radius: 0; }
  .rdl-info--stalen .rdl-info__kop { padding: 20px 20px 8px 32px; border-bottom: 0; }
  .rdl-info--stalen .rdl-info__lijf { gap: 18px; padding: 8px 32px 4px; text-align: left; }
  .rdl-sm__waaier { height: 150px; border-radius: 12px; background: var(--rdl-tint, #f3f5ef); }
  .rdl-sm__plek { bottom: 14px; margin-left: -42px; transform: translateX(calc(var(--rdl-sm-af) * 80px)) rotate(calc(var(--rdl-sm-af) * 9deg)); }
  .rdl-sm__kaart { width: 84px; height: 108px; padding: 6px; }
  .rdl-sm__vonken { top: 14px; }
  dialog.rdl-info p.rdl-sm__aantal { justify-content: flex-start; }
  /* Alleen de lijst scrolt; pas op een heel laag scherm scrolt het hele middenstuk. */
  dialog.rdl-info.rdl-info--stalen .rdl-info__lijf > ul.rdl-sm__lijst { display: flex; flex: 1 1 0; min-height: 112px; overflow-y: auto; overscroll-behavior: contain; }
  .rdl-info--stalen .rdl-info__voet { padding: 12px 32px 24px; }
  dialog.rdl-info p.rdl-sm__later.is-smal { display: none; }
  dialog.rdl-info p.rdl-sm__later.is-breed { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .rdl-sm__kaart.is-nieuw { animation: none; }
  .rdl-sm__vonken { display: none; }
}
