/* Mobile-first polish for the public booking flow */

.booking-flow-steps {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.booking-flow-steps::-webkit-scrollbar {
  display: none;
}

.booking-flow-steps > li {
  flex: 1 0 auto;
  min-width: 3.25rem;
}

/* Keep step markers circular — do not inherit booking-tap-target min-height */
.booking-flow-steps .booking-step-marker {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  max-width: 2.5rem;
  max-height: 2.5rem;
  line-height: 1;
  padding: 0;
}

.booking-flow-steps .booking-step-label {
  display: none;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 420px) {
  .booking-flow-steps .booking-step-label {
    display: block;
  }
}

.booking-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 420px) {
  .booking-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.booking-tap-target {
  min-height: 48px;
}

.booking-submit {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-inline: -1.25rem;
  margin-bottom: -1.5rem;
  padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 30%);
  border-top: 1px solid #d7e0dc;
}

.booking-submit .booking-submit__btn {
  width: 100%;
  min-height: 48px;
}

@media (min-width: 640px) {
  .booking-submit {
    position: static;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }
}

/* Larger Flatpickr day cells on touch devices */
@media (max-width: 640px) {
  .flatpickr-day {
    max-width: none;
    height: 42px;
    line-height: 42px;
  }

  .flatpickr-calendar {
    width: 100% !important;
    max-width: 100%;
  }

  .flatpickr-rContainer,
  .flatpickr-days {
    width: 100%;
  }

  .dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
}
