/* Checkout and cart scoped polish */
.woocommerce-cart .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-payment {
  border-radius: 16px;
  padding: clamp(0.95rem, 1.9vw, 1.25rem);
}

.woocommerce-cart table.shop_table td,
.woocommerce-checkout .woocommerce-checkout-review-order-table td,
.woocommerce-checkout .woocommerce-checkout-review-order-table th {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.woocommerce-checkout .mad-fresh-rolling--checkout {
  margin-bottom: 0.8rem;
}

/* Checkout text contrast and readability */
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout p,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout li,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout td,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout th {
  color: #eef1f6;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout h1,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout h2,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout h3,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout legend,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout #order_review_heading {
  color: #ffffff;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-checkout-review-order-table td,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout #payment,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout #payment label,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .wc_payment_methods label {
  color: #fff202;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-checkout-review-order-table .product-name,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .order-total .amount {
  color: #ffffff;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-shipping-totals td,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .payment_method_paypal .about_paypal {
  color: #cfd5df;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-info,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-message {
  color: #dbefff;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout a {
  color: #fff202;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout a:hover,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout a:focus-visible {
  color: #fff76a;
}

/* Checkout readability hard override (labels/placeholders/selects) */
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row label,
body.mad-baits-theme.woocommerce-checkout .woocommerce-billing-fields label,
body.mad-baits-theme.woocommerce-checkout .woocommerce-shipping-fields label,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row > label,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-form__label {
  color: #ffe94a !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row .required,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row .asterisk {
  color: #fff202 !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row .optional {
  color: rgba(234, 234, 234, 0.85) !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row input.input-text,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row select,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row textarea,
body.mad-baits-theme.woocommerce-checkout .woocommerce form.checkout_coupon input.input-text,
body.mad-baits-theme.woocommerce-checkout .woocommerce .woocommerce-form-coupon input.input-text {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid rgba(16, 16, 16, 0.2) !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row input.input-text::placeholder,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row textarea::placeholder,
body.mad-baits-theme.woocommerce-checkout .woocommerce form.checkout_coupon input.input-text::placeholder,
body.mad-baits-theme.woocommerce-checkout .woocommerce .woocommerce-form-coupon input.input-text::placeholder {
  color: #666666 !important;
  opacity: 1;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row input.input-text:focus,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row select:focus,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row textarea:focus,
body.mad-baits-theme.woocommerce-checkout .woocommerce form.checkout_coupon input.input-text:focus,
body.mad-baits-theme.woocommerce-checkout .woocommerce .woocommerce-form-coupon input.input-text:focus {
  border-color: #fff202 !important;
  box-shadow: 0 0 0 3px rgba(255, 242, 2, 0.22) !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row select,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .form-row select option {
  color: #111111 !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-container .select2-selection--single {
  background: #ffffff !important;
  border: 1px solid rgba(16, 16, 16, 0.2) !important;
  color: #111111 !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  color: #111111 !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow b {
  border-color: #333333 transparent transparent transparent !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-container--focus .select2-selection--single,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: #fff202 !important;
  box-shadow: 0 0 0 3px rgba(255, 242, 2, 0.22) !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-dropdown,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-results__option,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-search__field {
  background: #ffffff !important;
  color: #111111 !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-search__field {
  border: 1px solid rgba(16, 16, 16, 0.24) !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-results__option--highlighted[aria-selected] {
  background: rgba(255, 242, 2, 0.3) !important;
  color: #111111 !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-invalid-required-field input.input-text,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-invalid-required-field select,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-invalid-required-field textarea {
  border-color: rgba(216, 46, 46, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(216, 46, 46, 0.18) !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-error,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-notices-wrapper {
  color: #ffeaea;
}

@media (max-width: 760px) {
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review,
  .woocommerce-checkout .woocommerce-checkout-payment,
  .woocommerce-cart .cart_totals {
    padding: 0.82rem;
  }

  body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .woocommerce-error + .woocommerce-error,
  body.mad-baits-theme.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-error + .woocommerce-error {
    display: none;
  }

  body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout-review-order,
  body.mad-baits-theme.woocommerce-checkout #payment {
    margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* -------------------------------------------------------------------------
   Checkout labels + fields (classic + WooCommerce Blocks)
   ------------------------------------------------------------------------- */

body.mad-baits-theme.woocommerce-checkout .woocommerce-billing-fields > h3,
body.mad-baits-theme.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.mad-baits-theme.woocommerce-checkout .woocommerce-additional-fields > h3,
body.mad-baits-theme.woocommerce-checkout #order_review_heading,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-checkout-step-title,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-title,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-panel__button-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

/* Labels on dark checkout panels (not inside white block field shells) */
body.mad-baits-theme.woocommerce-checkout #customer_details > .woocommerce-billing-fields > label,
body.mad-baits-theme.woocommerce-checkout .woocommerce-account-fields label,
body.mad-baits-theme.woocommerce-checkout .woocommerce form.checkout > label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-checkbox__label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-radio-control__label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-checkout-step__description {
  color: #fff9d6 !important;
  font-weight: 650 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

body.mad-baits-theme.woocommerce-checkout .woocommerce form .form-row .required,
body.mad-baits-theme.woocommerce-checkout .woocommerce form .form-row .asterisk,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-label__required {
  color: #fff202 !important;
}

/* Block checkout: white field shells with readable in-field labels */
body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-combobox,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-textarea {
  background: #ffffff !important;
  border: 1px solid rgba(18, 18, 18, 0.22) !important;
  border-radius: 12px !important;
  color: #121212 !important;
}

body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input input,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input input[type="email"],
body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input input[type="tel"],
body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input input[type="text"],
body.mad-baits-theme.woocommerce-checkout .wc-block-components-combobox input,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-textarea textarea {
  background: transparent !important;
  color: #121212 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-combobox label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-textarea label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input.is-active label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input.has-error label {
  color: #2a2a2a !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input.is-active label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input.has-label label {
  color: #3a3a3a !important;
}

body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
  color: #666666 !important;
  opacity: 1 !important;
}

body.mad-baits-theme.woocommerce-checkout .wc-block-components-text-input:focus-within,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-combobox:focus-within,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-textarea:focus-within {
  border-color: #fff202 !important;
  box-shadow: 0 0 0 3px rgba(255, 242, 2, 0.22) !important;
}

body.mad-baits-theme.woocommerce-checkout .wc-block-components-checkout-order-summary,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-sidebar-layout__sidebar,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-totals-wrapper,
body.mad-baits-theme.woocommerce-checkout .wc-block-checkout__sidebar {
  color: #eef1f6;
}

body.mad-baits-theme.woocommerce-checkout .wc-block-components-order-summary-item__product-name,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-product-name,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-totals-item__label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-totals-item__value {
  color: #f3f3f3 !important;
}

body.mad-baits-theme.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-formatted-money-amount {
  color: #ffffff !important;
}

body.mad-baits-theme.woocommerce-checkout .wc-block-components-checkbox__label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-radio-control__label {
  color: #f2f2f2 !important;
  text-shadow: none !important;
}

body.mad-baits-theme.woocommerce-checkout .wc-block-components-notice-banner,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-notice-banner__content {
  color: #f5f5f5;
}

/* Classic checkout field stack (labels above white inputs on dark panels) */
body.mad-baits-theme.woocommerce-checkout #customer_details .form-row,
body.mad-baits-theme.woocommerce-checkout .woocommerce-billing-fields .form-row,
body.mad-baits-theme.woocommerce-checkout .woocommerce-shipping-fields .form-row {
  display: grid;
  gap: 0.4rem;
}

body.mad-baits-theme.woocommerce-checkout #customer_details .form-row label,
body.mad-baits-theme.woocommerce-checkout .woocommerce-billing-fields .form-row label,
body.mad-baits-theme.woocommerce-checkout .woocommerce-shipping-fields .form-row label {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.35;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.mad-baits-theme.woocommerce-checkout .woocommerce form .form-row select,
body.mad-baits-theme.woocommerce-checkout .woocommerce form .form-row textarea,
body.mad-baits-theme.woocommerce-checkout .woocommerce form.checkout_coupon input.input-text,
body.mad-baits-theme.woocommerce-checkout .woocommerce .woocommerce-form-coupon input.input-text,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-container .select2-selection--single {
  background: #ffffff !important;
  color: #121212 !important;
  border: 1px solid rgba(18, 18, 18, 0.22) !important;
  border-radius: 12px !important;
  min-height: 47px;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce form .form-row input.input-text::placeholder,
body.mad-baits-theme.woocommerce-checkout .woocommerce form .form-row textarea::placeholder {
  color: #666666 !important;
  opacity: 1 !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.mad-baits-theme.woocommerce-checkout .woocommerce form .form-row select:focus,
body.mad-baits-theme.woocommerce-checkout .woocommerce form .form-row textarea:focus,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-container--focus .select2-selection--single,
body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: #fff202 !important;
  box-shadow: 0 0 0 3px rgba(255, 242, 2, 0.22) !important;
}

body.mad-baits-theme.woocommerce-checkout .woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  color: #121212 !important;
}

body.woocommerce-checkout #payment .payment_methods label,
body.mad-baits-theme.woocommerce-checkout #payment .payment_methods label,
body.woocommerce-checkout .wc-block-components-radio-control--payment-method .wc-block-components-radio-control__label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-radio-control--payment-method .wc-block-components-radio-control__label,
body.woocommerce-checkout .wc-block-components-payment-method-label,
body.mad-baits-theme.woocommerce-checkout .wc-block-components-payment-method-label {
  color: #fff202 !important;
  -webkit-text-fill-color: #fff202 !important;
}
