
/* ==============================================================
   4.77 — Checkout redesign ONLY from Zahlungsart downward.
   Everything above the payment section intentionally remains untouched.
   ============================================================== */

/* The review wrapper itself becomes visually neutral so payment + summary
   can read as two clean sections instead of a card inside a card. */
body.mustis-bistro-theme.woocommerce-checkout #order_review,
body.woocommerce-checkout #order_review {
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.mustis-bistro-theme.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review_heading {
  display: none !important;
}

/* ========== PAYMENT ========== */
body.mustis-bistro-theme.woocommerce-checkout #payment,
body.woocommerce-checkout #payment {
  order: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.mustis-bistro-theme.woocommerce-checkout #payment::before,
body.woocommerce-checkout #payment::before {
  content: "Zahlungsart";
  display: block !important;
  margin: 0 0 10px !important;
  color: #17110f !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  letter-spacing: -.025em !important;
}

body.mustis-bistro-theme.woocommerce-checkout #payment ul.payment_methods,
body.woocommerce-checkout #payment ul.payment_methods {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

body.mustis-bistro-theme.woocommerce-checkout #payment ul.payment_methods li,
body.woocommerce-checkout #payment ul.payment_methods li {
  position: relative !important;
  margin: 0 0 12px !important;
  padding: 16px 18px !important;
  border: 1.5px solid #c9141e !important;
  border-radius: 17px !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: 0 5px 18px rgba(23,17,15,.025) !important;
}

body.mustis-bistro-theme.woocommerce-checkout #payment ul.payment_methods li > input,
body.woocommerce-checkout #payment ul.payment_methods li > input {
  width: 20px !important;
  height: 20px !important;
  margin: 0 10px 0 0 !important;
  accent-color: #c9141e !important;
  vertical-align: middle !important;
}

body.mustis-bistro-theme.woocommerce-checkout #payment ul.payment_methods li > label,
body.woocommerce-checkout #payment ul.payment_methods li > label {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  color: #17110f !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}

body.mustis-bistro-theme.woocommerce-checkout #payment div.payment_box,
body.woocommerce-checkout #payment div.payment_box {
  margin: 10px 0 0 30px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff8f4 !important;
  color: #766d67 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

/* AGB / legal row: deliberately small and compact. */
body.mustis-bistro-theme.woocommerce-checkout #payment .place-order,
body.woocommerce-checkout #payment .place-order {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.mustis-bistro-theme.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper,
body.mustis-bistro-theme.woocommerce-checkout #payment .wc-gzd-checkbox-placeholder,
body.mustis-bistro-theme.woocommerce-checkout #payment .form-row.legal,
body.mustis-bistro-theme.woocommerce-checkout #payment #terms_field,
body.mustis-bistro-theme.woocommerce-checkout #payment #legal_field,
body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout #payment .wc-gzd-checkbox-placeholder,
body.woocommerce-checkout #payment .form-row.legal,
body.woocommerce-checkout #payment #terms_field,
body.woocommerce-checkout #payment #legal_field {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #6f6660 !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
}

body.mustis-bistro-theme.woocommerce-checkout #payment .woocommerce-form__label-for-checkbox,
body.mustis-bistro-theme.woocommerce-checkout #payment .wc-gzd-checkbox-placeholder label,
body.mustis-bistro-theme.woocommerce-checkout #payment .form-row.legal label,
body.mustis-bistro-theme.woocommerce-checkout #payment #terms_field label,
body.mustis-bistro-theme.woocommerce-checkout #payment #legal_field label,
body.woocommerce-checkout #payment .woocommerce-form__label-for-checkbox,
body.woocommerce-checkout #payment .wc-gzd-checkbox-placeholder label,
body.woocommerce-checkout #payment .form-row.legal label,
body.woocommerce-checkout #payment #terms_field label,
body.woocommerce-checkout #payment #legal_field label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px !important;
  margin: 0 !important;
  color: #6f6660 !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}

body.mustis-bistro-theme.woocommerce-checkout #payment input[type="checkbox"],
body.woocommerce-checkout #payment input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  margin: 1px 0 0 !important;
  accent-color: #c9141e !important;
}

body.mustis-bistro-theme.woocommerce-checkout #payment a,
body.woocommerce-checkout #payment a {
  color: #c9141e !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* ========== ORDER SUMMARY ========== */
body.mustis-bistro-theme.woocommerce-checkout .mustis-order-summary-title,
body.woocommerce-checkout .mustis-order-summary-title {
  order: 2 !important;
  display: block !important;
  margin: 0 0 -10px !important;
  padding: 0 !important;
  color: #17110f !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  letter-spacing: -.025em !important;
}

body.mustis-bistro-theme.woocommerce-checkout #order_review table.mustis-checkout-review-list,
body.woocommerce-checkout #order_review table.mustis-checkout-review-list {
  order: 3 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(23,17,15,.09) !important;
  border-radius: 20px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: 0 8px 26px rgba(23,17,15,.035) !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list thead,
body.woocommerce-checkout .mustis-checkout-review-list thead {
  display: none !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list th,
body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list td,
body.woocommerce-checkout .mustis-checkout-review-list th,
body.woocommerce-checkout .mustis-checkout-review-list td {
  padding: 12px 16px !important;
  border: 0 !important;
  background: transparent !important;
  color: #17110f !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list tbody tr + tr td,
body.woocommerce-checkout .mustis-checkout-review-list tbody tr + tr td,
body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list tfoot tr th,
body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list tfoot tr td,
body.woocommerce-checkout .mustis-checkout-review-list tfoot tr th,
body.woocommerce-checkout .mustis-checkout-review-list tfoot tr td {
  border-top: 1px solid rgba(23,17,15,.07) !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list td.product-name,
body.woocommerce-checkout .mustis-checkout-review-list td.product-name {
  width: 72% !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list td.product-total,
body.woocommerce-checkout .mustis-checkout-review-list td.product-total {
  width: 28% !important;
  text-align: right !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-review-product,
body.woocommerce-checkout .mustis-review-product {
  display: grid !important;
  grid-template-columns: 54px minmax(0,1fr) !important;
  gap: 12px !important;
  align-items: center !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-review-thumb,
body.woocommerce-checkout .mustis-review-thumb {
  width: 54px !important;
  height: 54px !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  background: #f6efe8 !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-review-thumb img,
body.woocommerce-checkout .mustis-review-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-review-product__copy,
body.woocommerce-checkout .mustis-review-product__copy {
  min-width: 0 !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-review-product__name,
body.woocommerce-checkout .mustis-review-product__name {
  display: block !important;
  color: #17110f !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-review-product__qty,
body.woocommerce-checkout .mustis-review-product__qty {
  display: block !important;
  margin-top: 3px !important;
  color: #7d746e !important;
  font-size: 11.5px !important;
  line-height: 1.3 !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-review-product__meta,
body.woocommerce-checkout .mustis-review-product__meta {
  margin-top: 3px !important;
  color: #7d746e !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-review-price,
body.woocommerce-checkout .mustis-review-price {
  font-size: 14px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-review-remove,
body.woocommerce-checkout .mustis-review-remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 27px !important;
  height: 27px !important;
  margin-left: 9px !important;
  border-radius: 50% !important;
  background: #fff0f0 !important;
  color: #c9141e !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list tfoot th,
body.woocommerce-checkout .mustis-checkout-review-list tfoot th {
  width: 68% !important;
  color: #292321 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list tfoot td,
body.woocommerce-checkout .mustis-checkout-review-list tfoot td {
  width: 32% !important;
  text-align: right !important;
  color: #292321 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list .mustis-tax-total-row th,
body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list .mustis-tax-total-row td,
body.woocommerce-checkout .mustis-checkout-review-list .mustis-tax-total-row th,
body.woocommerce-checkout .mustis-checkout-review-list .mustis-tax-total-row td {
  color: #857b74 !important;
  font-size: 12px !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list .order-total th,
body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list .order-total td,
body.woocommerce-checkout .mustis-checkout-review-list .order-total th,
body.woocommerce-checkout .mustis-checkout-review-list .order-total td {
  padding-top: 17px !important;
  padding-bottom: 17px !important;
  background: #fff5f0 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list .order-total td,
body.woocommerce-checkout .mustis-checkout-review-list .order-total td {
  color: #c9141e !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list .woocommerce-shipping-methods,
body.woocommerce-checkout .mustis-checkout-review-list .woocommerce-shipping-methods {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list .woocommerce-shipping-methods li,
body.woocommerce-checkout .mustis-checkout-review-list .woocommerce-shipping-methods li {
  margin: 0 !important;
  padding: 0 !important;
}

body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list .woocommerce-shipping-methods label,
body.woocommerce-checkout .mustis-checkout-review-list .woocommerce-shipping-methods label {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
}

/* Buy button follows the summary visually. */
body.mustis-bistro-theme.woocommerce-checkout #place_order,
body.woocommerce-checkout #place_order {
  width: 100% !important;
  min-height: 58px !important;
  margin: 8px 0 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #cb0d18 !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 24px rgba(203,13,24,.16) !important;
}

body.mustis-bistro-theme.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:hover {
  background: #a90b14 !important;
}

@media (max-width: 768px) {
  body.mustis-bistro-theme.woocommerce-checkout #order_review,
  body.woocommerce-checkout #order_review {
    gap: 18px !important;
  }

  body.mustis-bistro-theme.woocommerce-checkout #payment::before,
  body.woocommerce-checkout #payment::before,
  body.mustis-bistro-theme.woocommerce-checkout .mustis-order-summary-title,
  body.woocommerce-checkout .mustis-order-summary-title {
    font-size: 20px !important;
  }

  body.mustis-bistro-theme.woocommerce-checkout #payment ul.payment_methods li,
  body.woocommerce-checkout #payment ul.payment_methods li {
    padding: 14px 15px !important;
    border-radius: 15px !important;
  }

  body.mustis-bistro-theme.woocommerce-checkout #order_review table.mustis-checkout-review-list,
  body.woocommerce-checkout #order_review table.mustis-checkout-review-list {
    border-radius: 17px !important;
  }

  body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list th,
  body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list td,
  body.woocommerce-checkout .mustis-checkout-review-list th,
  body.woocommerce-checkout .mustis-checkout-review-list td {
    padding: 11px 12px !important;
  }

  body.mustis-bistro-theme.woocommerce-checkout .mustis-review-product,
  body.woocommerce-checkout .mustis-review-product {
    grid-template-columns: 48px minmax(0,1fr) !important;
    gap: 10px !important;
  }

  body.mustis-bistro-theme.woocommerce-checkout .mustis-review-thumb,
  body.woocommerce-checkout .mustis-review-thumb {
    width: 48px !important;
    height: 48px !important;
    border-radius: 11px !important;
  }

  body.mustis-bistro-theme.woocommerce-checkout .mustis-review-product__name,
  body.woocommerce-checkout .mustis-review-product__name,
  body.mustis-bistro-theme.woocommerce-checkout .mustis-review-price,
  body.woocommerce-checkout .mustis-review-price {
    font-size: 13px !important;
  }

  body.mustis-bistro-theme.woocommerce-checkout .mustis-review-remove,
  body.woocommerce-checkout .mustis-review-remove {
    width: 25px !important;
    height: 25px !important;
    margin-left: 6px !important;
    font-size: 17px !important;
  }

  body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list .order-total th,
  body.mustis-bistro-theme.woocommerce-checkout .mustis-checkout-review-list .order-total td,
  body.woocommerce-checkout .mustis-checkout-review-list .order-total th,
  body.woocommerce-checkout .mustis-checkout-review-list .order-total td {
    font-size: 18px !important;
  }

  body.mustis-bistro-theme.woocommerce-checkout #place_order,
  body.woocommerce-checkout #place_order {
    min-height: 56px !important;
    font-size: 16px !important;
  }
}
