/* Carte de recherche : Cherche partout + Arriver avant, présentation type iOS. */

body.app-shell .mz-search-ios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mz-border, #e5e7eb);
  min-width: 0;
}

body.app-shell .mz-search-ios .mz-deep-search,
body.app-shell .mz-search-ios .mz-deep-search.is-on {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
}

body.app-shell .mz-ios-deep-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--mz-ink, #12151c);
}

body.app-shell .mz-ios-deep-hint {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: var(--mz-muted, #5b6578);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

body.app-shell .mz-ios-switch {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  position: relative;
  width: 64px;
  height: 36px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c5ccd6;
  cursor: pointer;
  box-sizing: border-box;
}

body.app-shell .mz-ios-switch::before {
  content: "";
  position: absolute;
  inset: -8px -4px;
}

body.app-shell .mz-ios-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(18, 21, 28, 0.28);
  transition: transform 160ms ease;
  pointer-events: none;
}

body.app-shell .mz-ios-switch.is-on,
body.app-shell .mz-ios-switch[aria-checked="true"] {
  background: var(--mz-accent, #ff6a00);
}

body.app-shell .mz-ios-switch.is-on .mz-ios-switch-knob,
body.app-shell .mz-ios-switch[aria-checked="true"] .mz-ios-switch-knob {
  transform: translateX(28px);
}

body.app-shell .mz-ios-switch-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

body.app-shell .mz-ios-arrive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
}

body.app-shell .mz-ios-kicker {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mz-muted, #5b6578);
}

body.app-shell .mz-ios-arrive-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

body.app-shell .mz-ios-choose,
body.app-shell .mz-ios-clear {
  appearance: none;
  margin: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 10px;
}

body.app-shell .mz-ios-choose {
  color: var(--mz-accent-text, #b34700);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

body.app-shell .mz-ios-clear {
  color: var(--mz-muted, #5b6578);
  font-size: 14px;
  font-weight: 600;
}

body.app-shell .mz-ios-clear[hidden],
body.app-shell .mz-ios-picker[hidden] {
  display: none !important;
}

body.app-shell .mz-ios-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 2px;
}

body.app-shell .mz-ios-picker-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mz-ink, #12151c);
}

body.app-shell .mz-ios-picker input[type="time"] {
  min-height: 44px;
  min-width: 8.5rem;
  padding: 0 10px;
  border: 1px solid var(--mz-border, #d5dbe3);
  border-radius: 12px;
  background: var(--mz-bg, #f7f8fa);
  color: var(--mz-ink, #12151c);
  font: inherit;
  font-weight: 700;
}

body.app-shell .mz-ios-switch:focus-visible,
body.app-shell .mz-ios-choose:focus-visible,
body.app-shell .mz-ios-clear:focus-visible,
body.app-shell .mz-ios-picker input:focus-visible {
  outline: 3px solid var(--mz-ink, #12151c);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--mz-accent-soft, rgba(255, 106, 0, 0.35));
}

:root.dark body.app-shell .mz-ios-switch:not(.is-on):not([aria-checked="true"]) {
  background: #3d4658;
}

:root.dark body.app-shell .mz-ios-switch-knob {
  background: #f4f6fa;
}

:root.dark body.app-shell .mz-ios-switch:focus-visible,
:root.dark body.app-shell .mz-ios-choose:focus-visible,
:root.dark body.app-shell .mz-ios-clear:focus-visible,
:root.dark body.app-shell .mz-ios-picker input:focus-visible {
  outline-color: #fff;
}

:root.dark body.app-shell .mz-ios-picker input[type="time"] {
  background: var(--mz-surface, #151a24);
  color: var(--mz-ink, #f4f6fa);
  border-color: var(--mz-border, #2c3444);
}

@media (min-width: 1024px) {
  body.app-shell.has-results #mzSearchIosOptions {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-shell .mz-ios-switch-knob {
    transition: none;
  }
}

@media (forced-colors: active) {
  body.app-shell .mz-ios-switch {
    border: 2px solid CanvasText;
    background: Canvas;
  }
  body.app-shell .mz-ios-switch[aria-checked="true"] {
    background: Highlight;
    forced-color-adjust: none;
  }
  body.app-shell .mz-ios-switch-knob {
    background: Canvas;
    forced-color-adjust: none;
  }
}
