/* 1.1: Explicitly scoped to the designated CF7 form and pages containing it. */
body.chw-booking-page #header.fixed { top: var(--chw-admin-offset, 0px) !important; }
body.chw-booking-page #event-phone-cta.mepcta[data-mepcta-mode="automatic"] {
  top: var(--chw-header-bottom, 0px) !important;
  z-index: 2;
}
body.chw-booking-page #info,
body.chw-booking-page #info_top,
body.chw-booking-page #info .info_contents { max-width: 100%; }
body.chw-booking-page #info .info_contents img { max-width: 100%; height: auto; }
body.chw-booking-page #showrooms,
body.chw-booking-page #footer { min-width: 0; max-width: 100%; }
body.chw-booking-page #showrooms .top_showroom_contents,
body.chw-booking-page #showrooms .ttl,
body.chw-booking-page #showrooms .top_showroom_inner,
body.chw-booking-page #footer .inner { max-width: 100%; }
@media (max-width: 769px) {
  body.chw-booking-page #header { height: 60px; }
  body.chw-booking-page #header .logo a {
    box-sizing: border-box;
    width: 250px;
    max-width: calc(100vw - 76px);
    margin-bottom: 0;
  }
  body.chw-booking-page #header .logo a img { width: 100%; max-width: 100%; height: auto; }
  body.chw-booking-page #navBtnOpen,
  body.chw-booking-page.open #header .logo a { top: var(--chw-admin-offset, 0px) !important; }
  body.chw-booking-page #spNav {
    top: var(--chw-admin-offset, 0px) !important;
    height: calc(100% - var(--chw-admin-offset, 0px));
  }
}
:is(body, #info) .chw-booking.chw-target {
  --chw-sticky-top: 80px;
  max-width: 820px;
}
:is(body, #info) .chw-booking.chw-target .chw-input {
  width: 100% !important;
  display: block !important;
  font-size: 16px !important;
}
:is(body, #info) .chw-booking.chw-target .chw-field,
:is(body, #info) .chw-booking.chw-target .chw-date-control,
:is(body, #info) .chw-booking.chw-target .chw-time-control {
  min-width: 0;
  scroll-margin-top: calc(var(--chw-sticky-top) + 115px);
}
:is(body, #info) .chw-booking.chw-target.is-enhanced .chw-progress {
  position: sticky;
  top: var(--chw-sticky-top);
  z-index: 2;
  padding: 14px 0 13px;
  background: #fffefa;
  border-bottom: 1px solid var(--chw-border);
  box-shadow: 0 8px 10px -12px #263c3566;
}
:is(body, #info) .chw-booking.chw-target .chw-progress__steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  font-size: 10px;
  line-height: 1.6;
}
:is(body, #info) .chw-booking.chw-target .chw-progress__steps > span {
  white-space: nowrap;
  padding-left: 9px;
  letter-spacing: 0;
}
:is(body, #info) .chw-booking.chw-target .chw-date-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
:is(body, #info) .chw-booking.chw-target .chw-sub-label {
  margin: 4px 0 12px;
  font-size: 13px;
  font-weight: 600;
}
/* Keep CF7's controls and error messages in the DOM and submission payload. */
:is(body, #info) .chw-booking.chw-target .chw-native-control {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar {
  padding: 16px 10px 12px;
  border: 1px solid var(--chw-border);
  border-radius: 14px;
  background: #fff;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--chw-ink);
  line-height: 1.5;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar button,
:is(body, #info) .chw-booking.chw-target .chw-time-slot {
  appearance: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--chw-ink);
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  touch-action: manipulation;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar .chw-calendar__nav {
  width: 40px;
  height: 40px;
  border-color: var(--chw-border);
  background: var(--chw-surface);
  font-size: 23px;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar__weekdays,
:is(body, #info) .chw-booking.chw-target .chw-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar__weekdays {
  margin-bottom: 6px;
  color: var(--chw-muted);
  font-size: 11px;
  line-height: 28px;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar__weekdays [data-weekday="0"] {
  color: #a76258;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar__weekdays [data-weekday="6"] {
  color: #5a7690;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar .chw-calendar__day,
:is(body, #info) .chw-booking.chw-target .chw-calendar__empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 42px;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar .chw-calendar__day.is-today {
  border-color: #a8b69c;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar__selection {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eceee7;
  color: var(--chw-accent);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
:is(body, #info) .chw-booking.chw-target .chw-time-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
:is(body, #info) .chw-booking.chw-target .chw-time-slot {
  width: 100%;
  min-height: 50px;
  border-color: var(--chw-border);
  background: #fff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar .chw-calendar__day.is-selected,
:is(body, #info) .chw-booking.chw-target .chw-time-slot.is-selected {
  color: #fff;
  background: var(--chw-accent);
  border-color: var(--chw-accent);
  box-shadow: 0 3px 8px #52654a22;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar button:disabled,
:is(body, #info) .chw-booking.chw-target .chw-time-slot:disabled {
  color: #a8aca5;
  background: #f7f8f5;
  opacity: .65;
  cursor: default;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar button:focus-visible,
:is(body, #info) .chw-booking.chw-target .chw-time-slot:focus-visible {
  outline: 2px solid var(--chw-accent);
  outline-offset: 2px;
}
:is(body, #info) .chw-booking.chw-target .chw-calendar.has-error,
:is(body, #info) .chw-booking.chw-target .chw-time-slots.has-error {
  outline: 1px solid #ab4f46;
  outline-offset: 4px;
}
@media (hover: hover) {
  :is(body, #info) .chw-booking.chw-target .chw-calendar button:not(:disabled):not(.is-selected):hover,
  :is(body, #info) .chw-booking.chw-target .chw-time-slot:not(:disabled):not(.is-selected):hover {
    background: #edf1e7;
    border-color: #a8b69c;
  }
}
@media (max-width: 640px) {
  :is(body, #info) .chw-booking.chw-target { padding: 28px 18px 26px; margin: 28px auto; }
  :is(body, #info) .chw-booking.chw-target .chw-date-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  :is(body, #info) .chw-booking.chw-target .chw-booking__header { gap: 8px; align-items: center; }
  :is(body, #info) .chw-booking.chw-target .chw-booking__title { font-size: clamp(23px, 6vw, 29px); }
  :is(body, #info) .chw-booking.chw-target .chw-house { flex-basis: 75px; margin-right: 0; }
  :is(body, #info) .chw-booking.chw-target .chw-booking__lead { font-size: 12px; line-height: 1.9; }
  :is(body, #info) .chw-booking.chw-target .chw-field__hint { font-size: 11px; line-height: 1.7; }
  :is(body, #info) .chw-booking.chw-target .chw-calendar { padding: 12px 8px; }
  :is(body, #info) .chw-booking.chw-target .chw-calendar .chw-calendar__day { min-height: 44px; }
  :is(body, #info) .chw-booking.chw-target.is-enhanced .chw-progress { margin: 16px 0 24px; padding: 12px 0; }
  :is(body, #info) .chw-booking.chw-target .chw-progress__message { font-size: 11px; line-height: 1.6; }
  :is(body, #info) .chw-booking.chw-target .chw-time-slots { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
}
@media (max-width: 350px) {
  :is(body, #info) .chw-booking.chw-target { padding-left: 14px; padding-right: 14px; }
  :is(body, #info) .chw-booking.chw-target .chw-progress__steps { font-size: 9px; gap: 2px; }
  :is(body, #info) .chw-booking.chw-target .chw-calendar__days { gap: 2px; }
  :is(body, #info) .chw-booking.chw-target .chw-time-slot { font-size: 14px; }
}
