.woocommerce-checkout #custom_latitude_field,.woocommerce-checkout #custom_longitude_field{display:none !important;}

/* Hide payment area if capacity not checked or unavailable */
.driver-capacity-not-checked .woocommerce-checkout-payment,
.driver-capacity-unavailable .woocommerce-checkout-payment {
  display: none !important;
}

/* Show payment area if capacity is available */
.driver-capacity-available .woocommerce-checkout-payment {
  display: block !important;
}

/* --- MicroModal basic styling --------------------------------------- */
.modal { display: none; }
.modal.is-open        { display: block; }
.modal__overlay       { position: fixed; top:0; left:0; width:100%; height:100%;
                        background: rgba(0,0,0,.6); display:flex;
                        align-items:center; justify-content:center; z-index:9999; }
.modal__container     { background:#fff; padding:30px; width:90%; max-width:600px!important;
                        border-radius:6px; text-align:center; box-shadow:0 6px 24px rgba(0,0,0,.25);}
.modal__title         { margin:0 0 15px; font-size:1.25rem; }
.modal__content p     { margin:0 0 12px; }
/* optional close on overlay click – handled by data‑micromodal‑close */

/* --- Ensure #loop-cap-modal behaves as full-page overlay --- */
#loop-cap-modal {
  position: fixed !important;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

/* Optional: Prevent Divi from interfering with overflow or scroll */
body.et_fixed_nav #loop-cap-modal {
  top: 0 !important;
}

/* If modal is inside unexpected containers, prevent layout conflicts */
.et_pb_row #loop-cap-modal,
.et_pb_section #loop-cap-modal {
  position: fixed !important;
}


/* Make modal buttons sit side-by-side */
.modal-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 15px;
  justify-content: space-between; /* pushes one to the left, one to the right */
align-items: center; 
}


.modal-inline .button:hover,
.modal-inline .et_pb_button:hover {
	opacity: 0.9;
} 


.modal-inline .et_pb_button{padding: 8px 25px 8px 15px!important;}