.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  /*padding: 1rem;*/
}

.card-item {
  background: var(--cart-odd-background);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
  align-items: flex-start;
  position: relative;
}

.card-position {
  width: 100%;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.card-item-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
}

.card-image {
  width: 120px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 5px;
}

.card-edition-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: rgba(255, 255, 255, 0.9); /* optional Hintergrund */
  padding: 2px;
  border-radius: 4px;
  z-index: 2;
  max-width: 24px;
  max-height: 24px;
}

.card-edition-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.card-image-wrapper {
  position: relative;
  display: inline-block;
}

.card-details {
  flex-grow: 1;
}

.card-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

/*.checkout-sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #ff6600;
    padding: 1rem;
    text-align: center;
}*/

.card-edition {
    display: flex;
  align-items: center; /* sorgt für vertikale Zentrierung */
  /*gap: 0.4rem;*/
  font-size: 0.9rem;
  /*color: #444;*/
  flex-direction: column;
}

.card-info {
  font-size: 0.85rem;
  /*color: #666;*/
  margin: 0.3rem 0;
}

.card-price {
  font-weight: bold;
  font-size: 1.1rem;
  /*color: #333;*/
}

.remove-button {
  background: none;
  border: none;
  color: #c00;
  font-size: 1.2rem;
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  cursor: pointer;
}

.remove-button-coupon {
  background: transparent;
  border: none;
  color: #c00;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0 0.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.couponCodeOverview {
    border: 1px solid #cecece;
    border-radius: 5px;
    background-color: rgb(0 151 19 / 19%);
    padding: 5px;
    justify-content: center;
    display: flex;
    align-items: center; /* Vertikal zentriert */
    gap: 0.5rem;
    font-size: 13px;
    flex-wrap: wrap;
}

.couponCode {
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    /*background-color: #ececec;*/
    background-color: var(--cart-couponcode-background);
    padding: 5px;
    /*font-weight: bold;*/
    /*color: #0A7116;*/
    /*font-style: italic;*/
    font-size: 12px;
    justify-content: center;
}

.form-group.couponCode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  
}

/* Alle direkten Kinder sollen 100% Breite auf kleinen Bildschirmen haben */
.form-group.couponCode > * {
  flex: 1 1 100%;
  height: 25px;
}

/* Optional: bessere Lesbarkeit */
.coupon-label {
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center; /* Vertikal zentrieren */
  height: 100%;         /* Nimmt volle Höhe im Flex-Container ein */
}

/* Ab einer bestimmten Breite (z. B. 640px) nebeneinander */
@media (min-width: 640px) {
  .form-group.couponCode {
    align-items: center; /* WICHTIG: Damit alles vertikal ausgerichtet ist */
  }
  
  .form-group.couponCode > * {
    flex: 0 0 auto;
  }

  .form-group.couponCode input[type="text"] {
    width: 200px;
  }

  .form-group.couponCode input[type="button"] {
    white-space: nowrap;
  }
}

.input-half {
  flex: 0 0 50%;
  min-width: 120px;
}

.price-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 1rem;
}

.price-summary .label {
  text-align: left;
}

.price-summary .value {
  text-align: right;
  white-space: nowrap;
}

.price-summary .total {
  /*font-size: 1.2rem;*/
  font-weight: bold;
  border-top: 1px solid #ccc;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  margin-bottom: 0.5rem;
}

label.error {
  color: #d33e3e;
}

.hintRequiredFields {
    font-size: 0.7rem;
}

.full-width {
  width: 100%;
  box-sizing: border-box;
}

textarea.inputText {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--input-border-color);
  border-radius: 5px;
  resize: vertical;
  background-color: var(--input-background);
  color: var(--input-text);
  font-family: 'Inter', sans-serif;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px; /* Abstand zwischen Checkbox und Text */
  cursor: pointer;
  /*flex-wrap: wrap;*/ /* für sehr kleine Bildschirme */
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-label {
  font-size: 1rem;
  line-height: 1.2;
}

.checkbox-label a {
  color: var(--text-color); /* oder deine Wunschfarbe */
  text-decoration: underline;
}

.checkbox-label a:hover {
  text-decoration: none;
  color: #c48f43; /* dunkler beim Hover */
}