/* R100 — DATE and TIME alongside one another on all CH / DE / AT
   Multi-Stop forms, both languages. Presentation only.
   R84 remains the single source of truth for date/time selection and calendar rules.
   Loaded after R84, R88, R89 and AT R81/R94 styling. */

/* R84 creates these cards dynamically for pickup, delivery windows and deadlines.
   The earlier R84 stylesheet forced a single column at every viewport size. */
#msMain .ms-r84-card .ms-r84-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) !important;
  gap: 12px;
  align-items: end;
  width: 100%;
  min-width: 0;
}
#msMain .ms-r84-card .ms-r84-fields > label {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
#msMain .ms-r84-card .ms-r84-fields .x25-select,
#msMain .ms-r84-card .ms-r84-fields .x25-select-button,
#msMain .ms-r84-card .ms-r84-fields select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Austria's legacy R81 markup (if still present before R84 initialises):
   R81 includes an !important single-column rule. Match it explicitly. */
#msMain .ms-r81-card .ms-r81-fields.ms-r78-date-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) !important;
  gap: 12px;
}

/* Keep both fields side by side on normal mobile screens; slightly reduce
   paddings in the two pickers to avoid text colliding with the chevron. */
@media (max-width: 520px) {
  #msMain .ms-r84-card .ms-r84-fields,
  #msMain .ms-r81-card .ms-r81-fields.ms-r78-date-row { gap: 8px; }
  #msMain .ms-r84-card .ms-r84-fields .x25-select-button,
  #msMain .ms-r81-card .ms-r81-fields .x25-select-button {
    padding-left: 34px;
    padding-right: 25px;
    font-size: 13px;
  }
  #msMain .ms-r84-card .ms-r84-fields .x25-select-chevron,
  #msMain .ms-r81-card .ms-r81-fields .x25-select-chevron { right: 10px; }
}

/* Below 360px there is not enough width for a readable calendar date and time
   inside a delivery-window card. Stack only at this genuinely narrow width. */
@media (max-width: 359px) {
  #msMain .ms-r84-card .ms-r84-fields,
  #msMain .ms-r81-card .ms-r81-fields.ms-r78-date-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
