/* Studio checkout visual cleanup. No validation, payment or order logic changed. */
/* Selected payment or shipping rows already have borders and native selection state.
   The additional focus-within rectangle from commerce-experience.css is redundant. */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option:focus-within {
  outline: none !important;
  outline-offset: 0 !important;
}
/* Keep visible keyboard focus on the actual native Woo input. */
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(.wc-block-components-radio-control__input,.wc-block-components-checkbox__input):focus-visible {
  outline: 2px solid #24443c !important;
  outline-offset: 3px !important;
}
/* Undo forced browser-native appearance from studio-refinements.css. Woo's
   radio check and checkbox checkmark are provided by the WC Blocks component. */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control input.wc-block-components-radio-control__input,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkbox input.wc-block-components-checkbox__input {
  appearance: none !important;
  -webkit-appearance: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}
/* Cart also uses WC's custom checkbox. The earlier theme forced native UI
   there as well, which can superimpose its checkmark over the WC mark. */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-checkbox input.wc-block-components-checkbox__input {
  appearance: none !important;
  -webkit-appearance: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}
/* Remove secondary error rings and boxes; preserve readable red validation text,
   invalid input outline, and aria-invalid for accessibility. */
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(.wc-block-components-text-input.has-error,.wc-block-components-combobox.is-invalid,.wc-block-components-checkbox.has-error,.wc-block-components-checkout-step.has-error) {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"],.has-error input) {
  box-shadow: none !important;
  outline: none !important;
  border-color: #a43629 !important;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-validation-error {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  color: #a43629 !important;
}
body.woocommerce-checkout :is(.wc-block-components-notice-banner.is-error,.woocommerce-error) {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #a43629 !important;
}
