/* Separate asset name makes the iPhone correction visible despite OVH/browser caching. */
@media (max-width: 700px) {
  .booking-first .date-time {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }
  .booking-first .date-time label,
  .booking-first .date-time input {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }
  .booking-first .date-time input {
    min-height: 52px;
    padding: 12px 50px 12px 14px !important;
    text-align: left;
  }
  .booking-first .date-time .picker-trigger {
    right: 7px;
    bottom: 6px;
    width: 42px;
    height: 42px;
  }
  #trip-picker[open] {
    position: fixed !important;
    inset: 0 !important;
    box-sizing: border-box;
    width: min(370px, calc(100vw - 24px)) !important;
    height: fit-content !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    margin: auto !important;
    padding: 22px;
    border-radius: 16px !important;
    overflow-y: auto;
  }
  #trip-picker .time-picker-fields {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 24px;
  }
  #trip-picker .time-picker-fields label { flex: 1; min-width: 0; }
  #trip-picker .time-picker-fields select { width: 100%; min-width: 0; min-height: 52px; }
}
@media (pointer: coarse) {
  .booking-first .date-time input { pointer-events: none; }
}
/* iOS Safari can give native date/time controls an intrinsic width wider than their grid cell. */
@media (max-width: 700px) {
  .booking-first .date-time label {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .booking-first .date-time label::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52px;
    border: 1px solid #ccd8c8;
    border-radius: 5px;
    box-sizing: border-box;
    pointer-events: none;
  }
  .booking-first .date-time input[type='date'],
  .booking-first .date-time input[type='time'] {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: 52px;
    min-height: 52px;
    flex: none;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
  }
  .booking-first .date-time .picker-trigger { z-index: 1; }
}
