/* Discovery: appointment time filter (mobile + desktop) — no home “hub” pill here */
body.discovery-page .hq-topchrome__primary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  margin-bottom: 10px;
  width: 100%;
  max-width: none;
}

body.discovery-page .hq-topchrome__logo {
  flex: 0 0 auto;
  align-self: center;
}

body.discovery-page .hq-topchrome__datetime-stack {
  flex: 1 1 16rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.discovery-page .hq-discovery-datetime-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

body.discovery-page .hq-topchrome__actions {
  margin-left: auto;
  align-self: center;
}

body.discovery-page .hq-topchrome__datetime-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.discovery-page .hq-topchrome__datetime-icon:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

body.discovery-page .hq-topchrome__datetime-icon:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.65);
  outline-offset: 2px;
}

body.discovery-page .hq-discovery-datetime-input {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

body.discovery-page .hq-discovery-datetime-input:focus {
  outline: 2px solid rgba(0, 122, 255, 0.55);
  outline-offset: 1px;
  border-color: rgba(0, 122, 255, 0.45);
}

body.discovery-page .hq-discovery-datetime-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.55;
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
}

/* Phone / tablet (below desktop sidebar): native picker icon duplicates our calendar button — hide it */
@media (max-width: 1149.98px) {
  body.discovery-page .hq-discovery-datetime-input::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

body.discovery-page .hq-discovery-datetime-apply {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 122, 255, 0.45);
  background: rgba(0, 122, 255, 0.35);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.discovery-page .hq-discovery-datetime-apply:hover {
  background: rgba(0, 122, 255, 0.5);
  border-color: rgba(0, 122, 255, 0.6);
}

body.discovery-page .hq-discovery-datetime-apply:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.75);
  outline-offset: 2px;
}

body.discovery-page .hq-discovery-datetime-clear {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.45);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.discovery-page .hq-discovery-datetime-clear:hover {
  background: rgba(220, 38, 38, 0.25);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

body.discovery-page .hq-discovery-datetime-clear.is-visible {
  display: flex;
}

body.discovery-page .hq-discovery-datetime-clear i {
  pointer-events: none;
}

body.discovery-page .hq-discovery-slot-hint {
  margin: 0;
  padding: 0 2px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}

body.discovery-page .hq-discovery-slot-hint--warn {
  color: rgba(251, 191, 36, 0.98);
  font-weight: 500;
}

@media (min-width: 768px) and (max-width: 1149.98px) {
  body.discovery-page .hq-discovery-datetime-input {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  body.discovery-page .hq-discovery-datetime-apply {
    font-size: 0.82rem;
    padding: 0 18px;
  }
}

/* Desktop with HQ light top chrome (≥ sidebar breakpoint): compact single row, readable text */
@media (min-width: 1150px) {
  body.discovery-page.home-page-hq .hq-topchrome__datetime-stack {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(420px, 36vw);
  }

  body.discovery-page.home-page-hq .hq-discovery-datetime-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: auto;
  }

  body.discovery-page.home-page-hq .hq-topchrome__datetime-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
  }

  body.discovery-page.home-page-hq .hq-topchrome__datetime-icon:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
  }

  body.discovery-page.home-page-hq .hq-discovery-datetime-input {
    flex: 0 1 auto;
    min-width: 9.5rem;
    max-width: min(200px, 22vw);
    width: auto;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.8125rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
  }

  body.discovery-page.home-page-hq .hq-discovery-datetime-input:focus {
    border-color: rgba(0, 102, 255, 0.45);
    outline: 2px solid rgba(0, 102, 255, 0.25);
  }

  body.discovery-page.home-page-hq .hq-discovery-datetime-input::-webkit-calendar-picker-indicator {
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.discovery-page.home-page-hq .hq-discovery-datetime-apply {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 102, 255, 0.5);
    background: rgba(0, 102, 255, 0.12);
    color: #0f172a;
    font-weight: 600;
  }

  body.discovery-page.home-page-hq .hq-discovery-datetime-apply:hover {
    background: rgba(0, 102, 255, 0.22);
    border-color: rgba(0, 102, 255, 0.65);
    color: #0f172a;
  }

  body.discovery-page.home-page-hq .hq-discovery-datetime-clear {
    width: 34px;
    height: 34px;
    min-height: 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
  }

  body.discovery-page.home-page-hq .hq-discovery-datetime-clear:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
  }

  body.discovery-page.home-page-hq .hq-discovery-slot-hint {
    color: #64748b;
    font-size: 0.68rem;
  }
}
