.cart-screen {
  height: auto;
  min-height: 1989.568359375px;
  overflow: visible;
}

.cart-screen > .screen-header .wordmark {
  color: inherit;
  text-decoration: none;
}

.cart-content {
  height: auto;
  min-height: 1380px;
  flex-basis: auto;
}

.cart-interaction {
  width: 950px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

.cart-panel {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  overflow: visible;
  padding-top: 50px;
}

@media (min-width: 1000px) {
  .cart-panel {
    padding-bottom: 50px;
  }
}

.cart-panel [hidden] {
  display: none !important;
}

.flow-menu {
  display: flex;
  width: 100%;
  min-height: 38px;
  flex: 0 0 38px;
  gap: 10px;
  align-items: flex-start;
  border-bottom: 1px solid var(--secondary-color);
  white-space: nowrap;
}

.flow-menu a {
  text-decoration: none;
}

.cart-heading,
.checkout-heading,
.purchase-heading {
  display: flex;
  width: 100%;
  min-height: 28px;
  align-items: flex-start;
}

.cart-heading h2,
.cart-heading .cart-step-heading,
.checkout-heading h2,
.purchase-heading h2,
.cart-item-title,
.cart-context-label {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.cart-items {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.cart-position {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.cart-item-header {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: stretch;
}

.cart-item-title,
.cart-remove,
.cart-add-another {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  padding: 12px 20px 8px;
  background: var(--secondary-color);
  color: var(--primary-color);
}

.cart-item-title {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
}

.cart-remove {
  width: 130px;
  flex: 0 0 130px;
  font-weight: 900;
  cursor: pointer;
}

.cart-item-details {
  display: flex;
  width: 100%;
  min-height: 260px;
  flex-direction: column;
  gap: 40px;
  padding: 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
}

.cart-context-group {
  position: relative;
  min-width: 0;
}

.cart-context-label {
  margin: 0;
}

.cart-context-value {
  white-space: pre-line;
}

.cart-context-more {
  position: static;
  width: 100%;
  margin-top: 8px;
  font-weight: 900;
}

.cart-context-more summary {
  cursor: pointer;
  list-style: none;
  text-align: right;
}

.cart-context-more summary::-webkit-details-marker {
  display: none;
}

.cart-context-list {
  margin: 10px 0 0;
  padding-left: 24px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.cart-parcel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.cart-parcel-list li {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: left;
}

.cart-key-values {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 8px;
  width: 100%;
  margin: 0;
}

.cart-key-values dt {
  font-weight: 900;
}

.cart-key-values dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.cart-key-values dd::before {
  content: "- ";
}

.cart-empty {
  display: flex;
  width: 100%;
  min-height: 180px;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
}

.cart-add-another {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  font-weight: 900;
  text-decoration: none;
}

.cart-items:has(.cart-position:nth-child(2)) ~ .cart-add-another {
  width: 100%;
}

.price-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  width: 100%;
  gap: 10px;
  align-items: stretch;
}

.price-label,
.price-value {
  min-width: 0;
  min-height: 56px;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
}

.price-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.price-value {
  text-align: right;
  white-space: nowrap;
}

.cart-checkout {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

.checkout-heading,
.purchase-heading {
  min-height: 48px;
  padding-bottom: 20px;
}

.checkout-field {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  overflow: hidden;
  background: var(--secondary-color);
  color: var(--primary-color);
}

.checkout-control,
.purchase-control {
  width: 100%;
}

.checkout-control {
  min-height: 46px;
}

.checkout-field input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 0;
  padding: 10px 55px 10px 20px;
  outline: 0;
  background: var(--secondary-color);
  color: var(--primary-color);
}

.checkout-field input::placeholder {
  color: var(--primary-color);
  opacity: 1;
}

.checkout-field:focus-within,
.purchase-button:focus-visible,
.purchase-check input:focus-visible,
.cart-remove:focus-visible,
.cart-add-another:focus-visible,
.cart-empty a:focus-visible,
.cart-context-more summary:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

.checkout-field:focus-within {
  box-shadow: inset 0 0 0 3px var(--primary-color);
  outline: 0;
}

.checkout-field button {
  position: absolute;
  right: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
}

.purchase-prototype {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
  padding-top: 50px;
}

.purchase-check {
  display: flex;
  min-height: 30px;
  gap: 20px;
  align-items: flex-start;
  font-weight: 900;
  line-height: 1.25;
}

.purchase-check a,
.checkout-privacy-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.purchase-check a:focus-visible,
.checkout-privacy-notice a:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

.checkout-privacy-notice {
  margin: 16px 0 0;
  font-weight: 400;
}

.checkout-error {
  display: block;
  min-height: 22px;
  padding-top: 4px;
  color: #ffd6d6;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.checkout-error[hidden] {
  display: none;
}

.checkout-field.has-error {
  box-shadow: inset 0 0 0 3px #b00020;
  color: #b00020;
}

.checkout-field.has-error input,
.checkout-field.has-error input::placeholder,
.checkout-field.has-error button {
  color: #b00020;
}

.purchase-check.has-error input {
  outline: 3px solid #ffe0e0;
  outline-offset: 2px;
  accent-color: #b00020;
}

.checkout-status[data-state="error"] {
  color: #ffd6d6;
  font-weight: 900;
}

.purchase-check input {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin: 0;
  border-radius: 0;
  accent-color: var(--primary-color);
}

.purchase-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  margin-top: 10px;
  padding: 12px 20px 8px;
  background: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 900;
  cursor: pointer;
}

.checkout-status {
  min-height: 24px;
  font-size: 18px;
}

@media (max-width: 1100px) {
  .cart-screen,
  .cart-content,
  .cart-interaction,
  .cart-panel,
  .cart-checkout {
    width: 100%;
    height: auto;
    min-height: 0;
    flex-basis: auto;
    overflow: visible;
  }

  .cart-content > .cart-interaction {
    order: 1;
  }

  .cart-content > .info-column {
    order: 2;
  }

  .cart-panel {
    padding-top: 50px;
  }
}

@media (max-width: 700px) {
  .cart-panel {
    gap: 30px;
    padding-top: 0;
  }

  .flow-menu {
    max-width: 100%;
    height: auto;
    min-height: 34px;
    flex-basis: auto;
    flex-wrap: wrap;
    white-space: normal;
  }

  .cart-heading h2,
  .cart-heading .cart-step-heading,
  .checkout-heading h2,
  .purchase-heading h2,
  .cart-item-title,
  .cart-context-label {
    font-size: 20px;
  }

  .cart-item-header {
    gap: 6px;
  }

  .cart-item-title,
  .cart-remove,
  .cart-add-another {
    min-height: 44px;
    padding: 11px 12px 8px;
  }

  .cart-remove {
    width: 102px;
    flex-basis: 102px;
  }

  .cart-item-details {
    min-height: 0;
    gap: 30px;
    padding: 16px;
  }

  .cart-context-more {
    position: static;
    max-width: 100%;
    margin-top: 8px;
  }

  .cart-context-more summary {
    text-align: left;
  }

  .price-summary {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 102px;
  }

  .price-label,
  .price-value {
    min-height: 60px;
    padding: 8px 12px;
  }

  .price-label {
    overflow-wrap: anywhere;
  }

  .checkout-heading,
  .purchase-heading {
    min-height: 44px;
  }

  .checkout-field input {
    padding-left: 12px;
  }

  .checkout-field button {
    right: 12px;
  }
}

@media (max-width: 380px) {
  .cart-item-title,
  .cart-remove,
  .cart-add-another,
  .price-label,
  .price-value {
    padding-right: 8px;
    padding-left: 8px;
  }

  .cart-remove {
    width: 88px;
    flex-basis: 88px;
  }

  .price-summary {
    grid-template-columns: minmax(0, 1fr) 88px;
  }
}

/* GST-Liste bleibt zusammenhängend; der Toggle folgt allen sichtbaren Werten. */
.cart-parcel-toggle,
.cart-address-toggle {
  display: block;
  margin-top: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.cart-parcel-toggle:focus-visible,
.cart-address-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.cart-address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: pre-line;
}
