/* ================================================
   🌟 WooCommerce Warenkorb + Checkout Styling
   ================================================ */

/* ---------- BASIS ---------- */
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  font-weight: 400;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #000;
}

/* Links */
body.woocommerce-cart .woocommerce a,
body.woocommerce-checkout .woocommerce a {
  color: #990000;
  font-weight: 400;
  text-decoration: none;
}
body.woocommerce-cart .woocommerce a:hover,
body.woocommerce-checkout .woocommerce a:hover {
  color: #7a0000;
  text-decoration: underline;
}

/* Buttons */
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce input.button,
body.woocommerce-cart .woocommerce .button,
body.woocommerce-cart .woocommerce .button.alt,
body.woocommerce-checkout .woocommerce a.button,
body.woocommerce-checkout .woocommerce button.button,
body.woocommerce-checkout .woocommerce input.button,
body.woocommerce-checkout .woocommerce .button,
body.woocommerce-checkout .woocommerce .button.alt,
body.woocommerce-checkout .woocommerce #place_order {
  background: #990000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-weight: 400;
  line-height: 1.3;
  box-shadow: none;
  text-shadow: none;
  transition: background .2s ease;
}
body.woocommerce-cart .woocommerce a.button:hover,
body.woocommerce-cart .woocommerce button.button:hover,
body.woocommerce-cart .woocommerce input.button:hover,
body.woocommerce-cart .woocommerce .button:hover,
body.woocommerce-checkout .woocommerce a.button:hover,
body.woocommerce-checkout .woocommerce button.button:hover,
body.woocommerce-checkout .woocommerce input.button:hover,
body.woocommerce-checkout .woocommerce .button:hover,
body.woocommerce-checkout .woocommerce #place_order:hover {
  background: #7a0000;
  color: #fff;
}

/* Deaktivierte Buttons */
body.woocommerce-cart .woocommerce .button:disabled,
body.woocommerce-checkout .woocommerce .button:disabled {
  background: #990000;
  opacity: .5;
  cursor: not-allowed;
  color: #fff;
}

/* ================================================
   🛒 WARENKORB
   ================================================ */

body.woocommerce-cart .woocommerce-cart-form {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

/* Tabellen */
body.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eee;
}
body.woocommerce-cart table.shop_table th {
  background: #f9f9f9;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: .5px;
  padding: 12px;
}
body.woocommerce-cart table.shop_table td {
  padding: 14px;
  border-top: 1px solid #eee;
}

/* Produktname */
body.woocommerce-cart .product-name a {
  color: #000;
  text-decoration: none;
}
body.woocommerce-cart .product-name a:hover {
  color: #990000;
}

/* Totals Box */
body.woocommerce-cart .cart_totals {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
body.woocommerce-cart .cart_totals h2 {
  font-weight: 500;
  margin-bottom: 12px;
}

/* Gutscheinfeld */
body.woocommerce-cart .coupon input.input-text {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 10px 12px;
  margin-right: 8px;
  font-weight: 400;
}

/* ================================================
   💳 CHECKOUT
   ================================================ */

/* Basis: einspaltig für kleine und mittlere Viewports */
body.woocommerce-checkout form.checkout {
  display: block;
  margin: 0 auto;
  max-width: 1040px;
}

/* Eingabefelder */
body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce form .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background: #fdfdfd;
}
body.woocommerce-checkout .woocommerce form .form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
}

body.woocommerce-checkout .wolke-required-note {
  margin: -4px 0 18px;
  color: #555;
  font-size: 13px;
  line-height: 1.35;
}

body.woocommerce-checkout .wolke-required-note span {
  color: #990000;
  font-weight: 700;
}

/* Box-Look für Abschnitte */
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review {
  background: #fff;
  border-radius: 8px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Zahlungsabschnitt */
body.woocommerce-checkout #payment {
  background: #fafafa;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}
body.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}
body.woocommerce-cart .woocommerce .woocommerce-message,
body.woocommerce-cart .woocommerce .woocommerce-error,
body.woocommerce-cart .woocommerce .woocommerce-info,
body.woocommerce-checkout .woocommerce .woocommerce-message,
body.woocommerce-checkout .woocommerce .woocommerce-error,
body.woocommerce-checkout .woocommerce .woocommerce-info {
	position: relative;
	top: auto;
	left: auto;
	width: auto;
}


/* Gutscheinbanner */
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
	margin-top: 0;
  margin-bottom: 20px;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  background: #fff;
  border-top-color: #990000;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}


/* Versandblock unter Rechnungsdetails */
body.woocommerce-checkout #customer_details .col2-set {
  display: block;
}
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
  clear: both;
}
body.woocommerce-checkout #customer_details .col-1 { order: 1; }
body.woocommerce-checkout #customer_details .col-2 {
  order: 2;
  margin-top: 24px;
}
body.woocommerce-checkout #customer_details #ship-to-different-address {
  margin: 0 0 12px 0;
  display: block;
}
body.woocommerce-checkout #customer_details #ship-to-different-address label {
  font-weight: 400;
}

/* Tabellen */
body.woocommerce-checkout #order_review table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eee;
  box-sizing: border-box;
  background: #fff;
}
body.woocommerce-checkout #order_review th,
body.woocommerce-checkout #order_review td {
  padding: 12px;
  border-top: 1px solid #eee;
}
body.woocommerce-checkout #order_review th {
  background: #f9f9f9;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: .5px;
}

/* Buttons unten im Checkout */
body.woocommerce-checkout #place_order {
  width: 100%;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

body.woocommerce-checkout #order_review {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table {
  order: 1;
  margin: 0;
}

body.woocommerce-checkout #order_review #order_payment_heading {
  order: 2;
  margin: 0;
}

body.woocommerce-checkout #order_review .ppcp-messages {
  order: 3;
}

body.woocommerce-checkout #order_review #payment {
  order: 4;
  margin-top: 0;
}

body.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder-legal {
  order: 5;
}

body.woocommerce-checkout #order_review .wc-gzd-order-submit {
  order: 6;
}

body.woocommerce-checkout #order_review .ppc-button-wrapper {
  order: 7;
}

/* PayPal-Iframes sollen beim Scrollen nicht über Header/Mini-Warenkorb liegen */
body.woocommerce-checkout .ppc-button-wrapper,
body.woocommerce-checkout #ppc-button-ppcp-gateway,
body.woocommerce-checkout #ppc-button-ppcp-card-button-gateway,
body.woocommerce-checkout .ppcp-button-apm,
body.woocommerce-checkout .paypal-buttons,
body.woocommerce-checkout iframe[name^="__zoid__paypal"],
body.woocommerce-checkout iframe[title*="PayPal"],
body.woocommerce-checkout iframe[title*="paypal"] {
  position: relative!important;
  z-index: 0!important;
}

body.woocommerce-checkout .ppc-button-wrapper {
  isolation: isolate;
}

/* Rechtstext im Checkout kompakter halten */
body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal,
body.woocommerce-checkout p.form-row.legal {
  margin: 0;
}

body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal label,
body.woocommerce-checkout p.form-row.legal label,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
  display: flex!important;
  gap: 10px;
  flex-wrap: nowrap!important;
  align-items: start;
  color: #333!important;
  font-size: 14px!important;
  line-height: 1.35!important;
  font-weight: 400!important;
}

body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal input[type="checkbox"],
body.woocommerce-checkout p.form-row.legal input[type="checkbox"],
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 2px 0 0!important;
}

body.woocommerce-checkout .woocommerce-gzd-legal-checkbox-text,
body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
  display: inline;
  flex: 1 1 auto;
  min-width: 0;
  color: #333!important;
  font-size: inherit!important;
  line-height: inherit!important;
}

body.woocommerce-checkout .woocommerce-gzd-legal-checkbox-text::after,
body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text::after {
  content: " *";
  color: #990000;
  font-weight: 700;
}

body.woocommerce-checkout .woocommerce-gzd-legal-checkbox-text a,
body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text a,
body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal a,
body.woocommerce-checkout p.form-row.legal a {
  color: #990000!important;
  font-weight: 400!important;
}

body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal label > .required,
body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal label > abbr.required,
body.woocommerce-checkout p.form-row.legal label > .required,
body.woocommerce-checkout p.form-row.legal label > abbr.required,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label > .required,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label > abbr.required {
  display: none!important;
}

/* Große Monitore: Rechnungsdaten links, Bestellübersicht/Zahlung rechts */
@media (min-width: 1180px) {
  body.woocommerce-checkout .woocommerce-form-coupon-toggle,
  body.woocommerce-checkout .woocommerce-form-coupon,
  body.woocommerce-checkout .woocommerce-notices-wrapper,
  body.woocommerce-checkout form.checkout {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  body.woocommerce-checkout form.checkout {
    display: block;
  }

  body.woocommerce-checkout form.checkout::after {
    content: "";
    display: block;
    clear: both;
  }

  body.woocommerce-checkout #customer_details {
    float: left;
    width: calc(56% - 16px);
    box-sizing: border-box;
    margin-bottom: 0;
  }

  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review {
    float: right;
    clear: right;
    width: calc(44% - 16px);
    box-sizing: border-box;
  }

  body.woocommerce-checkout #order_review_heading {
    margin: 0 0 16px;
  }

  body.woocommerce-checkout #order_review {
    margin-bottom: 0;
  }
}

/* Responsive – mobil bleibt einspaltig */
@media (max-width: 768px) {
  body.woocommerce-cart .woocommerce,
  body.woocommerce-checkout .woocommerce {
    padding-inline: 12px;
    font-size: 15px;
  }

  body.woocommerce-cart .e-con:has(.woocommerce-cart-form),
  body.woocommerce-checkout .e-con:has(form.checkout) {
    padding: 24px 16px;
    --padding-top: 24px;
    --padding-right: 16px;
    --padding-bottom: 24px;
    --padding-left: 16px;
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart_totals,
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  }

  body.woocommerce-cart table.shop_table,
  body.woocommerce-checkout table.shop_table {
    border: 0;
  }

  body.woocommerce-cart table.shop_table th,
  body.woocommerce-cart table.shop_table td,
  body.woocommerce-checkout table.shop_table th,
  body.woocommerce-checkout table.shop_table td {
    padding: 10px 0;
  }

  body.woocommerce-cart table.cart img {
    width: 72px;
    height: auto;
  }

  body.woocommerce-cart table.cart td.product-name,
  body.woocommerce-cart table.cart td.product-price,
  body.woocommerce-cart table.cart td.product-quantity,
  body.woocommerce-cart table.cart td.product-subtotal {
    line-height: 1.35;
  }

  body.woocommerce-cart table.cart td.actions {
    padding-top: 16px;
  }

  body.woocommerce-cart table.cart td.actions .coupon {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    float: none;
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
  }

  body.woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 100% !important;
    margin: 0;
    min-height: 44px;
  }

  body.woocommerce-cart table.cart td.actions .coupon .button,
  body.woocommerce-cart table.cart td.actions .coupon button[name="apply_coupon"],
  body.woocommerce-cart table.cart td.actions .coupon input[name="apply_coupon"] {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  body.woocommerce-cart table.cart td.actions .button,
  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    text-align: center;
  }

  body.woocommerce-cart .cart_totals h2 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  body.woocommerce-cart .wc-proceed-to-checkout {
    padding-top: 12px;
  }

  body.woocommerce-checkout form.checkout {
    max-width: none;
    padding: 0;
  }

  body.woocommerce-cart .woocommerce .woocommerce-message,
  body.woocommerce-cart .woocommerce .woocommerce-error,
  body.woocommerce-cart .woocommerce .woocommerce-info,
  body.woocommerce-checkout .woocommerce .woocommerce-message,
  body.woocommerce-checkout .woocommerce .woocommerce-error,
  body.woocommerce-checkout .woocommerce .woocommerce-info {
    margin-bottom: 14px;
    padding: 12px 14px 12px 42px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
  }

  body.woocommerce-checkout h3,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_payment_heading {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  body.woocommerce-checkout .woocommerce-form-coupon-toggle {
    margin-bottom: 14px;
  }

  body.woocommerce-checkout .woocommerce-form-coupon {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
    background: #fff;
  }

  body.woocommerce-checkout .woocommerce-form-coupon .form-row {
    width: 100%;
    float: none;
  }

  body.woocommerce-checkout .woocommerce-form-coupon button.button,
  body.woocommerce-checkout .woocommerce-form-coupon button[name="apply_coupon"],
  body.woocommerce-checkout .woocommerce-form-coupon input[name="apply_coupon"] {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

	body.woocommerce-cart .woocommerce a.button,
	.woocommerce table.cart td.actions .coupon .input-text+.button,
	.woocommerce table.cart td.actions .button,
	body.woocommerce-checkout .woocommerce button.button{
		font-size: 14px!important;
		text-transform: uppercase;
	}
	.woocommerce-form__label-for-checkbox,
	body.woocommerce-checkout .woocommerce form .form-row label,
	body.woocommerce-checkout .woocommerce form .form-row input.input-text{
		font-size: 14px;
	}
	body.woocommerce-checkout #customer_details,
	body.woocommerce-checkout #order_review {
		padding: 16px;
	}
	body.woocommerce-checkout #customer_details .col-2 {
		margin-top: 18px;
	}
	body.woocommerce-checkout #payment {
		padding: 16px;
		margin-top: 0;
	}
	body.woocommerce-checkout #payment ul.payment_methods li {
		padding: 12px 0;
	}
	body.woocommerce-checkout #payment ul.payment_methods li label {
		font-size: 16px;
		line-height: 1.35;
	}
	body.woocommerce-checkout #payment div.payment_box {
		margin: 10px 0 12px;
		padding: 14px;
		font-size: 14px;
		line-height: 1.45;
	}
	body.woocommerce-checkout #place_order {
		font-size: 16px;
		padding: 14px 18px;
	}
	body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal {
		font-size: 13px;
		line-height: 1.3;
	}
	body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal label,
	body.woocommerce-checkout p.form-row.legal label,
	body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
		gap: 8px;
		flex-wrap: nowrap!important;
		color: #333!important;
		font-size: 12px!important;
		line-height: 1.32!important;
	}
	body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal input[type="checkbox"],
	body.woocommerce-checkout p.form-row.legal input[type="checkbox"],
	body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
		width: 14px;
		height: 14px;
		margin-top: 2px!important;
	}
	body.woocommerce-checkout .woocommerce-gzd-legal-checkbox-text,
	body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
		display: inline;
		flex: 1 1 auto;
		min-width: 0;
		color: #333!important;
		font-size: inherit!important;
		line-height: inherit!important;
	}
	body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal label > .required,
	body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal label > abbr.required,
	body.woocommerce-checkout p.form-row.legal label > .required,
	body.woocommerce-checkout p.form-row.legal label > abbr.required,
	body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label > .required,
	body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label > abbr.required {
		display: none!important;
	}
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead {
		display: none;
	}
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table,
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tbody,
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot,
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr,
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table th,
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td {
		display: block;
		width: 100%;
	}
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr {
		border-top: 1px solid #eee;
	}
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table th,
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td {
		border-top: 0;
	}
}





