/* Pakete, Bestellung und Rückkehrseite; Grundstil aus style.css */

.shop-form [hidden],
.buy-row [hidden],
.status-box [hidden] {
  display: none !important;
}

/* Knöpfe (.button, .secondary) kommen aus style.css */

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
}

/* Paketliste */
.pkg-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pkg-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.pkg-row:has(> .pkg-icon) {
  grid-template-columns: 88px 1fr auto;
}

.pkg-icon {
  width: 88px;
}

.pkg-row:last-child {
  border-bottom: 0;
}

.pkg-row h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.pkg-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.pkg-price {
  font-weight: 600;
  color: var(--text) !important;
  margin-top: 6px !important;
}

@media (max-width: 560px) {
  .pkg-row,
  .pkg-row:has(> .pkg-icon) {
    grid-template-columns: 64px 1fr;
  }

  .pkg-icon {
    width: 64px;
  }

  .pkg-row > .button {
    grid-column: 1 / -1;
  }
}

/* Bestellformular */
.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .shop-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.shop-form fieldset {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
}

.shop-form legend {
  font-weight: 700;
  margin-bottom: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 0 12px;
}

.field-row input {
  min-width: 0;
  width: 100%;
}

.seg {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.seg label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.seg label:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 0.95rem;
}

.consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
}

.price-box table {
  width: 100%;
  border-collapse: collapse;
}

.price-box td {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-box td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 12px;
}

.price-box tr.total td {
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 0;
}

.price-box .note {
  margin-top: 12px;
}

.order-button {
  width: 100%;
  margin-top: 8px;
  font-size: 1.05rem;
}

/* Rückkehrseite */
.status-box h2 {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 16px 0 0;
}

.status-box dt {
  color: var(--muted);
}

.status-box dd {
  margin: 0;
}
