.trip-type-picker .trip-type-buttons label,
.trip-type-picker .trip-type-buttons label:has(input:checked) {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.trip-type-picker .trip-type-buttons input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.trip-type-picker .trip-type-buttons span {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border: 2px solid #344052;
  border-radius: 16px;
  background: #111821;
  color: #fff;
  cursor: pointer;
  text-align: center;
  font-weight: 800;
}

.trip-type-picker .trip-type-buttons input:checked + span {
  border-color: #49a4ff;
  background: linear-gradient(145deg, #126bd6, #0753ad);
  box-shadow: 0 10px 28px #126bd666;
}

.trip-type-picker .trip-type-buttons input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.no-tip-link {
  display: block;
  width: max-content;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: .88rem;
}

.modern-picker .picker-launch {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0 16px 0 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #10233d;
  text-align: left;
  box-shadow: none;
}

.modern-picker .picker-launch .picker-icon {
  margin-right: 14px;
}

.modern-picker .picker-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.modern-picker select {
  min-height: 58px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #10233d;
  font-weight: 750;
  cursor: pointer;
}

.booking-dialog {
  width: min(94vw, 470px);
  border: 1px solid #9bc9ff;
  border-radius: 22px;
  padding: 22px;
  background: #fff;
  color: #10233d;
  box-shadow: 0 30px 100px #000a;
}

.booking-dialog::backdrop { background: #02060dcc; backdrop-filter: blur(3px); }
.booking-dialog h2 { margin: 0; color: #10233d; font-size: 1.35rem; }
.dialog-heading { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; text-align: center; }
.dialog-heading button { width: 44px; height: 44px; margin: 0; padding: 0; background: #eaf4ff; color: #126bd6; font-size: 2rem; }
.calendar-weekdays,.calendar-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; margin-top: 18px; }
.calendar-weekdays span { color: #60738d; font-size: .75rem; font-weight: 800; text-align: center; }
.calendar-days button { aspect-ratio: 1; margin: 0; padding: 0; border-radius: 50%; background: #f2f7fd; color: #10233d; font-size: .95rem; }
.calendar-days button:hover:not(:disabled),.calendar-days button:focus-visible { outline: 3px solid #57a9ff; background: #dcedff; }
.calendar-days button.today { border: 2px solid #126bd6; }
.calendar-days button.selected-day { background: #126bd6; color: #fff; }
.calendar-days button:disabled { opacity: .25; cursor: not-allowed; }
.dialog-cancel { margin: 20px 0 0; background: #e8eef6; color: #29415f; }
.time-controls { display: grid; grid-template-columns: 1fr auto 1fr 1.2fr; align-items: end; gap: 10px; margin-top: 24px; }
.time-controls>span { padding-bottom: 15px; font-size: 1.5rem; font-weight: 900; }
.time-controls label { color: #29415f; font-size: .78rem; }
.time-controls select { min-height: 58px; border: 2px solid #9fb4ce; border-radius: 12px; background: #fff; color: #10233d; font-size: 1.15rem; font-weight: 800; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }
.dialog-actions button { margin-top: 22px; }

@media (max-width: 450px) {
  .booking-dialog { padding: 16px; }
  .calendar-weekdays,.calendar-days { gap: 3px; }
  .time-controls { grid-template-columns: 1fr auto 1fr; }
  .time-controls label:last-child { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .trip-type-picker .trip-type-buttons span {
    min-height: 74px;
  }
}


/* Bubble time picker */
.time-bubble-dialog { width: min(620px, calc(100% - 28px)); }
.time-bubble-picker { display: grid; gap: 18px; margin-top: 22px; }
.time-bubble-picker fieldset { margin: 0; padding: 0; border: 0; }
.time-bubble-picker legend { margin-bottom: 9px; color: #29415f; font-size: .82rem; font-weight: 850; }
.time-bubble-picker .legend-note { font-weight: 650; color: #60738b; }
.time-bubble-grid { display: grid; gap: 9px; }
.hour-bubbles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.minute-bubbles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.period-bubbles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.booking-dialog .time-bubble {
  min-height: 48px;
  margin: 0;
  padding: 9px 6px;
  border: 2px solid #a9bad0;
  border-radius: 999px;
  background: #f7f9fc;
  color: #17304f;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 3px 0 #d4ddea;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.booking-dialog .time-bubble.selected {
  border-color: #17304f;
  background: #17304f;
  color: #fff;
  box-shadow: 0 4px 0 #08182b;
  transform: translateY(-1px);
}
.booking-dialog .time-bubble:focus-visible { outline: 3px solid #e3ad36; outline-offset: 2px; }
.time-bubble-preview {
  margin: 2px 0 0;
  padding: 13px 16px;
  border-radius: 999px;
  background: #e9f0f8;
  color: #10233d;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 950;
}
@media (max-width: 520px) {
  .hour-bubbles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .booking-dialog .time-bubble { min-height: 46px; }
}
