/* Shared single-date and existing range controls. ISO form values remain native. */
.unified-date-control,
.date-range .date-range-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 44px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--line, #ddd9e6);
  border-radius: 12px;
  background: white;
  color: var(--text, #111);
  text-align: left;
  white-space: nowrap;
  font: inherit;
  font-weight: 400;
}
.unified-date-control { position: relative; cursor: pointer; }
.unified-date-copy { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.unified-date-copy strong, .date-range-button strong { font-weight: 700; }
.unified-date-value { font-weight: 400; }
.unified-date-icon { display: flex; flex: 0 0 18px; pointer-events: none; }
.unified-date-icon svg, .date-range .date-range-button > svg { position: static; flex: 0 0 18px; width: 18px; height: 18px; margin-left: auto; transform: none; }
.unified-date-control > input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  border: 0;
  cursor: pointer;
}
.unified-date-control > input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.unified-date-control:focus-within, .date-range-button:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(75 61 152 / 10%);
}
.date-original-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap;
}
.date-control-disabled, .date-control-readonly { background: var(--brand-pale, #f8f7fc); }
.date-control-disabled { opacity: 0.65; cursor: default; }
.date-control-readonly > input { cursor: default; }
.date-range .date-range-popover { width: min(560px, calc(100vw - 32px)); }
.date-range-popover .unified-date-control { margin-top: 0; }
.delivery-slot-date-tools { flex-basis: 320px; }
@media (max-width: 560px) {
  .date-range .date-range-popover { grid-template-columns: 1fr; }
  .delivery-slot-date-tools { flex-basis: auto; }
}
@media print {
  .unified-date-control { border: 0; box-shadow: none; }
  .unified-date-icon { display: none; }
}
