/* CRAFT 1.8.69 — iOS Safari: prevent input-focus page zoom and field overflow.
   Safari automatically zooms editable controls rendered below 16px. This is
   especially noticeable after selecting CodeRockz pickup date/time/location,
   and can make the page appear shifted and horizontally cropped. */
@media (max-width: 900px) {
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout select,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout textarea,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .select2-selection__rendered,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .select2-search__field,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .woocommerce-input-wrapper input,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .woocommerce-input-wrapper select,
  body.woocommerce-checkout:not(.woocommerce-order-received) .select2-search__field,
  body.woocommerce-checkout:not(.woocommerce-order-received) .coderockz_woo_delivery_datepicker,
  body.woocommerce-checkout:not(.woocommerce-order-received) input[id*="coderockz"],
  body.woocommerce-checkout:not(.woocommerce-order-received) select[id*="coderockz"] {
    font-size:16px!important;
    -webkit-text-size-adjust:100%;
  }

  /* Maintain a full-width, shrinkable mobile form without clipping content. */
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .checkout-card,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .checkout-card .form-row,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .woocommerce-input-wrapper,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout #craftDeliveryPickupFieldsGrid,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-order-type-radio,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-order-type-choice,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout #craftPickupLocationList,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-pickup-location,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .location-option {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout #craftPickupLocationList,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .location-list {
    grid-template-columns:minmax(0,1fr)!important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-order-type-text,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .location-option .method-meta {
    min-width:0!important;
    overflow-wrap:break-word;
  }

  /* Constrain common CodeRockz date picker popups within mobile viewport.
     These do not modify availability rules or date-selection scripts. */
  body.woocommerce-checkout .flatpickr-calendar,
  body.woocommerce-checkout .ui-datepicker,
  body.woocommerce-checkout .xdsoft_datetimepicker {
    box-sizing:border-box!important;
    max-width:calc(100vw - 24px)!important;
  }
  body.woocommerce-checkout .flatpickr-calendar .flatpickr-innerContainer,
  body.woocommerce-checkout .flatpickr-calendar .flatpickr-rContainer,
  body.woocommerce-checkout .flatpickr-calendar .dayContainer {
    max-width:100%!important;
  }
}
