.choice-error {
  box-sizing: border-box;
  width: 100%;
  margin: .8rem 0 0;
  padding: .75rem .9rem;
  border: 1px solid #ef9a9a;
  border-radius: 11px;
  background: #fdeeee;
  color: #9b1c1c;
  font-size: .82rem;
  font-weight: 700;
}
.choice-error[hidden] { display: none !important; }
footer { font-family: "Poppins", Arial, sans-serif; }
.legal-main { max-width: 860px; }
.legal-card { max-width: 760px !important; }
.legal-card dl {
  display: grid;
  grid-template-columns: minmax(150px,.65fr) 1.35fr;
  gap: .45rem 1rem;
}
.legal-card dt { font-weight: 800; color: var(--purple); }
.legal-card dd { margin: 0; }
.legal-card > div, .legal-card > p { line-height: 1.7; }
.legal-back {
  display: inline-block;
  width: auto;
  min-height: auto;
  margin-top: 1rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}
@media (max-width:520px) {
  .legal-card dl { grid-template-columns: 1fr; }
  .legal-card dd { margin-top: -.35rem; }
}

/* Das ausgewählte Abholgeschäft bleibt vor der Datumswahl klar sichtbar. */
.selected-shop-address {
  display: grid;
  gap: .18rem;
  margin: 1rem 0 .65rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--purple);
  border-left-width: 7px;
  border-radius: 12px;
  background: var(--lavender);
  box-shadow: 0 3px 12px rgba(84, 43, 130, .12);
}
.selected-shop-address[hidden] { display: none !important; }
.selected-shop-label {
  color: var(--purple);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.selected-shop-name { color: var(--text); font-size: 1.08rem; }
.selected-shop-location { color: var(--text); line-height: 1.45; }

/* Nach einer serverseitigen Kategorieauswahl bleibt der irreführende erste
   Schritt unsichtbar, bis der gespeicherte Zielschritt tatsächlich aktiv ist. */
html[data-order-transition="pending"] #order-form > .progress,
html[data-order-transition="pending"] #order-form > .step[data-step="shop"]:not([hidden]) {
  visibility: hidden;
  pointer-events: none;
}

/* Geschäftssuche: Die bestätigte Auswahl bleibt stabil, Suchtreffer öffnen nur
   in der rechten Arbeitsspalte. */
.shop-selection-workspace { display: grid; gap: 1rem; align-items: start; }
.shop-search-column { min-width: 0; position: relative; }
.shop-search-column .field-label { display: block; }
.shop-suggestions { margin-bottom: 0; max-height: 18rem; overflow-y: auto; }
.selected-shop-address { margin: 0; min-height: 8.5rem; align-content: center; }

/* Auswahlregeln stehen vor den Karten und reagieren ohne Fehlermeldung auf die
   aktuelle Auswahl. */
.component-selection-guide {
  margin: .25rem 0 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--lilac);
  border-radius: 13px;
  background: var(--lavender);
}
.component-limit-title { display: block; color: var(--purple); font-size: .9rem; }
.component-limit-explanation { margin: .3rem 0 .65rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.component-selection-count { display: inline-flex; padding: .28rem .62rem; border-radius: 999px; background: #fff; color: var(--purple); font-size: .72rem; font-weight: 800; }
.component-selection-count.limit-reached { background: var(--purple); color: #fff; }

/* Progressive Offenlegung im Prime-Design: leicht lila Fläche, nur ein Bereich
   gleichzeitig geöffnet und kompakte Inhalte. */
.information-sections,
.selection-information {
  padding: .7rem;
  border-radius: 14px;
  background: #f7f1fc;
}
.information-sections details,
.selection-information details {
  margin: 0 0 .45rem;
  border: 1px solid #ded0ec;
  border-radius: 11px;
  padding: .7rem .8rem;
  background: rgba(255,255,255,.72);
}
.information-sections details:last-child,
.selection-information details:last-child { margin-bottom: 0; }
.information-sections details[open],
.selection-information details[open] { background: #f0e5f9; border-color: var(--lilac); }
.information-sections summary,
.selection-information summary { cursor: pointer; color: var(--purple); font-size: .82rem; font-weight: 800; }
.information-sections .summary-line,
.selection-information .summary-line { margin: .55rem 0 0; line-height: 1.45; }

@media (min-width: 768px) {
  .shop-panel { display: block; }
  .shop-selection-workspace { grid-template-columns: minmax(15rem, .85fr) minmax(20rem, 1.35fr); }
}

@media (max-width: 767px) {
  .shop-selection-workspace { grid-template-columns: 1fr; }
  .selected-shop-address { min-height: 0; }
}


/* RC24: ruhige mobile Eingaben, stabile Karten und einheitliche Startaktion. */
@media (max-width: 767px) {
  #shop-search { font-size: 16px; }
  .shop-start-action { grid-template-columns: 1fr; text-align: center; }
  .shop-start-action .current-price { max-width: none; text-align: center; text-wrap: balance; }
  .shop-start-action .next-step { width: 100%; }
}
.component-step .cards { align-items: stretch; }
.component-step .choice-card { display: flex; width: 100%; min-height: 0; box-sizing: border-box; flex-direction: column; }
.component-step .choice-card > b { min-height: 2.8em; overflow-wrap: anywhere; }
.component-step .choice-card > small { display: -webkit-box; min-height: 4.2em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.component-step .choice-card .surcharge { min-height: 1.4em; }
.component-step .choice-card .selection-state { margin-top: auto; align-self: flex-start; }
