/* Let the checkout's content and controls shrink with the browser viewport. */
#root .checkout-shell,
#root form.gtech-checkout-v2,
#root form.gtech-checkout-v2 :is(.checkout-main, .checkout-summary, .checkout-card, .form-grid, .fulfillment-options) {
  min-inline-size: 0;
  max-inline-size: 100%;
}

#root form.gtech-checkout-v2 :is(.form-grid, .fulfillment-options) > *,
#root form.gtech-checkout-v2 :is(.form-grid, .gtech-phone-row) > * {
  min-inline-size: 0;
}

#root form.gtech-checkout-v2 :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea) {
  min-inline-size: 0;
  max-inline-size: 100%;
}

#root form.gtech-checkout-v2 :is(.checkout-card-title, .checkout-totals, .checkout-item-details, .fulfillment-option, .checkout-helper) {
  overflow-wrap: anywhere;
}

#root form.gtech-checkout-v2 .gtech-phone-row {
  grid-template-columns: minmax(0, min(46%, 16rem)) minmax(0, 1fr) !important;
}

#root form.gtech-checkout-v2 .gtech-phone-country {
  inline-size: 100%;
  direction: ltr;
  text-overflow: ellipsis;
}

@media (max-width: 1120px) {
  #root form.gtech-checkout-v2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #root form.gtech-checkout-v2 .checkout-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  #root form.gtech-checkout-v2 :is(.form-grid, .fulfillment-options, .gtech-phone-row) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
