.woocommerce-notices-wrapper * + * {
  margin-top: 0.5em;
}

.woocommerce * + .return-to-shop {
  margin-top: 1em;
}

.felder-b2b-note-cart,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-noreviews,
.woocommerce p.no-comments,
.woocommerce .woocommerce-noreviews,
.woocommerce p.no-comments,
.woocommerce .woocommerce-info {
  padding: 4px 8px;
  border-radius: 4px;
  border: #049ee3 solid 1px;
  background-color: #e6f7ff;
  color: #049ee3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.woocommerce ul.woocommerce-error {
  flex-flow: column;
  justify-content: start;
  align-items: start;
}

.woocommerce .woocommerce-message {
  color: #85bb21;
  border-color: #85bb21;
  background-color: #f0f8e6;
}

.felder-b2b-note-cart {
  color: #b81414;
  border-color: #b81414;
  background-color: #ffe6e6;
  font-size: 14px;
  line-height: 1.4;
  max-width: 200px;
}

.felder-b2b-notice.felder-b2b-notice {
  color: #b81414;
  border-color: #b81414;
  background-color: #ffe6e6;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}
.woocommerce-privacy-policy-text {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 20px;
}
.checkout-inline-error-message {
  color: #b81414;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 4px;
}

.woocommerce-cart main .woocommerce .woocommerce-cart-form button,
.woocommerce-notices-wrapper .button,
.woocommerce-notices-wrapper button {
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 4px;
}

/* = Merkliste (Cart) – Tabelle
/* -------------------------------------------------- */

.woocommerce-cart main .woocommerce {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.wc-empty-cart-message,
.woocommerce-notices-wrapper {
  width: 100%;
}

.woocommerce-cart main .woocommerce .woocommerce-cart-form {
  flex: 1;
  gap: 14px;
}

.woocommerce-cart main .woocommerce .woocommerce-cart-form table {
  width: 100%;
}

.product-total,
#order_review_heading,
.woocommerce-cart main .woocommerce .woocommerce-cart-form table thead,
.product-quantity {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.cart_item .product-remove a {
  line-height: 1 !important;
}

.woocommerce-cart main .woocommerce .woocommerce-cart-form table tr {
  border: 1px solid #ebebeb;
  border-radius: 2px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 20px;
  width: 100%;
  background: white;
  transition: 150ms ease-in-out all;
  margin-bottom: 14px;
  font-size: clamp(16px, calc(18vw / 11), 18px) !important;
  font-weight: 700;
}

#customer_details {
  border-right: 1px solid #ebebeb;
  padding-right: var(--wc-gap);
}

#order_review {
  position: sticky;
  top: 200px;
}
#order_review table {
  width: 100%;
}
#order_review thead {
  display: none;
}
#order_review tr {
  border: 1px solid #ebebeb;
  border-radius: 2px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
  width: 100%;
  background: white;
  transition: 150ms ease-in-out all;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

@media screen and (max-width: 991px) {
  .woocommerce-cart main .woocommerce {
    flex-direction: column;
  }
  .felder-b2b-note-cart {
    max-width: 100%;
  }
}

/* = Checkout: AGB/Datenschutz-Checkbox sauber ausrichten
   (nur Layout: Abstände/Position, keine Farben/Fonts)
--------------------------------------------------------*/

/* Zeile selbst: etwas Luft */
.woocommerce .woocommerce-terms-and-conditions-wrapper p.form-row {
  margin: 12px 0 16px;
}

/* Label um Input + Text als Flex-Zeile */
.woocommerce .woocommerce-form__label.woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: flex-start; /* Text oben ausrichten */
  gap: 10px; /* Abstand Kästchen ↔ Text */
  line-height: 1.4;
  margin: 0;
}

/* Das eigentliche Kästchen links */
.woocommerce .woocommerce-form__input-checkbox {
  flex: 0 0 16px; /* fixe Breite, kein Schrumpfen */
  width: 16px;
  height: 16px;
  margin: 3px 0 0; /* minimal nach unten, damit optisch zentriert */
}

/* Textblock soll umbrechen dürfen */
.woocommerce .woocommerce-terms-and-conditions-checkbox-text,
.woocommerce .woocommerce-privacy-policy-text {
  display: block;
}

/* Sternchen minimal absetzen; keine Unterstreichung */
.woocommerce abbr.required {
  margin-left: 4px;
  text-decoration: none;
}

/* Optional: gleicher Stil für weitere Checkbox-Zeilen (eigene Felder) */
.woocommerce .form-row .checkbox,
.woocommerce .form-row .woocommerce-input-wrapper input[type="radio"] + label,
.woocommerce
  .form-row
  .woocommerce-input-wrapper
  input[type="checkbox"]
  + label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.woocommerce form .form-row input[type="radio"],
.woocommerce form .form-row input[type="checkbox"] {
  width: auto;
}

body.woocommerce-checkout .woocommerce-additional-fields h3 {
  margin-top: var(--wc-gap);
  margin-bottom: 1.5rem;
  border-top: 1px solid #ebebeb;
  padding-top: var(--wc-gap);
}

#order_comments {
  height: 150px;
}

.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout {
  grid-column-start: 1;
  grid-column-end: 3;
}

#inquiry_type_field .woocommerce-input-wrapper {
  margin-top: 10px;
  margin-bottom: 20px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
}

#inquiry_type_field .woocommerce-input-wrapper .required {
  display: none;
}

.woocommerce form .form-row label:first-child {
  font-weight: 600;
}
#b2b_confirm_field {
  line-height: 1;
  margin-bottom: 35px;
}
#b2b_confirm_field checkbox {
  align-items: center;
}
