/* Kasse: saved payment method radios */
body.page-kasse .wc-saved-payment-methods {
  list-style: none !important;
  margin: 12px 0 !important;
  padding: 0 !important;
}
body.page-kasse .wc-saved-payment-methods li {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  margin: 0 0 8px !important;
  padding: 12px 14px;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
body.page-kasse .wc-saved-payment-methods li::marker { content: none; }
body.page-kasse .wc-saved-payment-methods li:has(input:checked) {
  border-color: #0b2e59;
  background: #f3f7fc;
}
body.page-kasse .wc-saved-payment-methods input[type="radio"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  display: inline-block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 0 !important;
  position: static !important;
  opacity: 1 !important;
  accent-color: #0b2e59;
  cursor: pointer;
}
body.page-kasse .wc-saved-payment-methods label {
  margin: 0 !important;
  line-height: 1.4;
  font-size: 15px;
  cursor: pointer;
}
@media (max-width: 600px) {
  body.page-kasse .wc-saved-payment-methods li { padding: 14px 12px; }
  body.page-kasse .wc-saved-payment-methods label { font-size: 14px; }
}

/* Kinder / Ehepartner note in the order summary ("Diese Buchung beinhaltet 3 Kinder und 1 Ehepartner."), from class-magic-login.php */
body.page-kasse .form-uebersicht__booking-members {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid #0b2e59;
  border-radius: 6px;
  background: #f3f7fc;
  color: #0b2e59;
  font-size: 15px;
  line-height: 1.4;
}

/* Same note at the top of the checkout: as wide as the checkout card (700px) and centered */
body.page-kasse .form-uebersicht__booking-members--top {
  box-sizing: border-box;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 24px;
}
@media (max-width: 1024px) {
  body.page-kasse .form-uebersicht__booking-members--top { width: calc(100% - 30px); }
}

/* Magic link: cart is locked (body class from class-magic-login.php) – no remove, quantity or coupon changes */
body.migrando-magic-locked .clear-cart,                          /* "Löschen" product */
body.migrando-magic-locked .custom_quantity-selection-cart,      /* - / + buttons */
body.migrando-magic-locked .quantity,                            /* quantity field */
body.migrando-magic-locked .coupon,                              /* coupon form */
body.migrando-magic-locked .shop-shopping-cart__selection__coupon-button,
body.migrando-magic-locked button[name="update_cart"],
body.migrando-magic-locked .custom_totals-wrapper .remove-link,  /* × on the coupon */
body.migrando-magic-locked #custom_order-review_product {         /* pencil in the checkout summary */
  display: none !important;
}

/* Ansprechpartner section on the checkout (templates/checkout-ansprechpartner-fields.php), closed by default */
body.page-kasse .migrando-ansprechpartner {
  margin: 16px 0;
}
body.page-kasse .migrando-ansprechpartner > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
}
body.page-kasse .migrando-ansprechpartner > summary::-webkit-details-marker { display: none; }
body.page-kasse .migrando-ansprechpartner > summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 12px;
  border-right: 2px solid #0b2e59;
  border-bottom: 2px solid #0b2e59;
  transform: rotate(45deg);
  transition: transform .2s;
}
body.page-kasse .migrando-ansprechpartner[open] > summary::after { transform: rotate(-135deg); }
body.page-kasse .migrando-ansprechpartner[open] > summary { margin-bottom: 12px; }

/* Ansprechpartner fields: same icons as the other checkout fields (icons live in the theme) */
.checkout-form-area .additional-ansprechpartner-input {
  position: relative;
}
.checkout-form-area .additional-ansprechpartner-input label::after {
  content: '';
  width: clamp(16px, 3vw, 20px);
  height: clamp(15px, 3vw, 20px);
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  bottom: 30%;
  left: 15px;
  opacity: 0.5;
}
.checkout-form-area .additional-ansprechpartner-input:focus-within label::after {
  opacity: 1;
}
.checkout-form-area #billing_ansprechpartner_first_name_field label::after,
.checkout-form-area #billing_ansprechpartner_last_name_field label::after {
  background-image: url("/wp-content/themes/migrando-child/icons/checkout/checkout-form-field-name.svg");
}
.checkout-form-area #billing_ansprechpartner_email_field label::after {
  background-image: url("/wp-content/themes/migrando-child/icons/checkout/checkout-form-field-mail.svg");
}
.checkout-form-area #billing_ansprechpartner_phone_field label::after {
  background-image: url("/wp-content/themes/migrando-child/icons/checkout/checkout-form-field-number.svg");
}
