/* Local booking widget — uses the site's own design tokens so it reads as part
 * of the page rather than a form bolted onto it:
 *   accent          #8b5ba1 (the brand purple every other button uses)
 *   card            radius 18px, shadow 0 4px 18px rgba(0,0,0,.08), no border
 *   button          20px/300, sentence case, radius 20px
 *   text            #3c4858, Heebo (inherited)
 */
#local-booking {
  /* No max-width: the widget fills the page's content column, so its edges line
     up with the text above it. */
  margin: 40px 0 10px;
  font-family: inherit;
  color: #3c4858;
}
#local-booking .lb-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 30px 25px;
}
#local-booking h3 {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
  color: #3c4858;
}
/* The theme styles every <button> in page content as a large pill — padding,
   borders, uppercase, shadows. The widget's own buttons opt out first and are
   then styled deliberately below. */
#local-booking button {
  padding: 0;
  margin: 0;
  min-width: 0;
  width: auto;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  font-family: inherit;
  line-height: normal;
  color: inherit;
}
#local-booking button:hover,
#local-booking button:focus {
  box-shadow: none;
  transform: none;
}

#local-booking label,
#local-booking .lb-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #3c4858;
  margin: 18px 0 7px;
}

/* Every control is the same height, whatever the browser's own defaults are. */
#local-booking select,
#local-booking input[type='text'],
#local-booking input[type='email'],
#local-booking input[type='tel'],
#local-booking .lb-date-field {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  color: #3c4858;
  border: 1px solid #dcd3e2;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s;
}
#local-booking select:focus,
#local-booking input:focus,
#local-booking .lb-date-field:focus {
  outline: none;
  border-color: #8b5ba1;
}
#local-booking .lb-date-field {
  text-align: left;
  cursor: pointer;
  position: relative;
  border: 1px solid #dcd3e2;
  border-radius: 10px;
  background: #fff;
  text-transform: none;
  line-height: 46px;
}
#local-booking .lb-date-field.is-empty {
  color: #8f97a3;
}
#local-booking .lb-date-field::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid #8b5ba1;
  border-bottom: 2px solid #8b5ba1;
  transform: rotate(45deg);
}

/* --- date picker ---------------------------------------------------------- */
#local-booking .lb-date {
  position: relative;
}
#local-booking .lb-cal {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  max-width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  padding: 14px;
}
#local-booking .lb-cal[hidden] {
  display: none;
}
#local-booking .lb-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
#local-booking .lb-cal-title {
  font-size: 15px;
  font-weight: 500;
  color: #3c4858;
}
#local-booking .lb-cal-nav {
  cursor: pointer;
  color: #8b5ba1;
  font-size: 22px;
  line-height: 1;
  padding: 4px 12px;
  border-radius: 20px;
  transition: background 0.3s;
}
#local-booking .lb-cal-nav:hover:not(:disabled) {
  background: #f3edf6;
}
#local-booking .lb-cal-nav:disabled {
  color: #cfcfd4;
  cursor: not-allowed;
}
#local-booking .lb-cal-dow,
#local-booking .lb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
#local-booking .lb-cal-dow span {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #8f97a3;
  padding: 4px 0;
}
#local-booking .lb-day {
  width: 100%;
  font-size: 14px;
  font-weight: 300;
  color: #3c4858;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
#local-booking .lb-day:hover:not(:disabled) {
  background: #f3edf6;
}
#local-booking .lb-day:disabled {
  color: #cfcfd4;
  cursor: not-allowed;
}
#local-booking .lb-day.is-selected {
  background: #8b5ba1;
  color: #fff;
}
#local-booking .lb-day.is-empty {
  visibility: hidden;
}
#local-booking .lb-day:focus-visible,
#local-booking .lb-slot:focus-visible,
#local-booking .lb-cal-nav:focus-visible,
#local-booking .lb-date-field:focus-visible,
#local-booking .lb-submit:focus-visible {
  outline: 2px solid #8b5ba1;
  outline-offset: 2px;
}
/* Picking a date is the one thing every patient has to do, and it was the
   smallest thing on the page: 36x36 day cells and 31x30 month arrows, against
   the 44px a fingertip needs. Sizes go up wherever the input is touch, not at
   a width guess — a tablet is coarse-pointered at 900px too. */
@media (pointer: coarse), (max-width: 480px) {
  #local-booking .lb-day {
    height: 44px;
    font-size: 15px;
  }
  #local-booking .lb-cal-nav {
    min-width: 44px;
    min-height: 44px;
    padding: 4px 14px;
  }
  #local-booking .lb-slot {
    min-height: 44px;
  }
}

/* Seven 44px columns need 320px of grid, which does not fit inside the theme's
   294px form card — so on a phone the popover steps outside the card and
   centres itself on the field instead. */
@media (max-width: 480px) {
  #local-booking .lb-cal {
    width: calc(100vw - 20px);
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 10px;
  }
}

#local-booking .lb-cal-help {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  color: #8f97a3;
}

/* --- time slots ----------------------------------------------------------- */
#local-booking .lb-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
#local-booking .lb-slot {
  border: 1px solid #dcd3e2;
  background: #fff;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 300;
  color: #3c4858;
  cursor: pointer;
  transition: 0.3s;
}
#local-booking .lb-slot:hover {
  border-color: #8b5ba1;
  color: #8b5ba1;
}
#local-booking .lb-slot.is-selected {
  background: #8b5ba1;
  border-color: #8b5ba1;
  color: #fff;
}
#local-booking .lb-hint {
  font-size: 15px;
  font-weight: 300;
  color: #8f97a3;
  margin-top: 8px;
}

/* --- submit --------------------------------------------------------------- */
#local-booking .lb-submit {
  margin-top: 28px;
  width: 100%;
  padding: 13.34px 26.6px;
  font-size: 20px;
  font-weight: 300;
  line-height: 32.36px;
  color: #fff;
  background: #8b5ba1;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}
#local-booking .lb-submit:hover:not(:disabled) {
  background: #77497f;
}
#local-booking .lb-submit:disabled {
  background: #d6cbdd;
  cursor: not-allowed;
}
#local-booking .lb-msg {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 300;
  display: none;
}
#local-booking .lb-msg.is-error {
  display: block;
  background: #fdecec;
  color: #b3261e;
}
#local-booking .lb-msg.is-ok {
  display: block;
  background: #f3edf6;
  color: #6c4680;
}
@media (max-width: 600px) {
  #local-booking .lb-card {
    padding: 22px 18px;
  }
  #local-booking h3 {
    font-size: 24px;
  }
  #local-booking .lb-submit {
    font-size: 18px;
  }
}
