/* Hide calendar timeslots under the grid; timeslots are chosen in the popup instead */
body .booked-calendar-wrap:not(.booked-list-view) .booked-appt-list .timeslot {
  display: none;
}

/* Hide the explicit "Continue" button; options themselves open the popup */
body .booked-calendar-wrap .booked-calendar-continue {
  display: none;
}

/* Center custom fields block in calendar view */
body .booked-calendar-wrap .booked-calendar-fields--calendar {
  text-align: center;
}

body .booked-calendar-wrap .booked-calendar-fields--calendar .field {
  display: inline-block;
}

/* Style calendar custom-field radio options as buttons */
body .booked-calendar-wrap .booked-calendar-fields--calendar .checkbox-radio-block input[type="radio"] {
  display: none;
}

body .booked-calendar-wrap .booked-calendar-fields--calendar .checkbox-radio-block label {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
  background: #7F9471;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  width: 200px;
}

body .booked-calendar-wrap .booked-calendar-fields--calendar .checkbox-radio-block input[type="radio"]:checked + label {
  background: #7F9471;
}

/* Simple selected state for popup timeslot buttons */
.booked-timeslots-in-modal .booked-select-timeslot.selected {
  box-shadow: 0 0 0 2px #7F9471;
}

/* Wizard steps: only current step is visible (JS will toggle) */
.booked-wizard-step {
  display: none;
}

.booked-wizard-step-1 {
  display: block;
}

.booked-wizard-nav {
  margin-top: 15px;
  text-align: right;
}

body .booked-modal button.booked-next-step,
body .booked-modal button.booked-location-next-step{
  background: #7F9471 !important;
}

#submit-request-appointment {
  background: #7F9471 !important;
  border-color: #7F9471 !important;
}

.booked-form.booked-scrollable {
  overflow-x: hidden;
  touch-action: pan-y;
}

.booked-summary-content {
  background: #fff;
}

body .booked-form .field .checkbox-radio-block {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 0 3px 10px;
}

body .booked-form .field .checkbox-radio-block label {
  display: block;
  margin: 0;
  padding: 0;
  position: static;
  line-height: 1.4;
  flex: 1;
}

body .booked-form input[type=radio],
body .booked-form input[type=checkbox] {
  top: 0;
  margin: 3px 0 0 0;
  flex-shrink: 0;
}

.booked-summary {
  background: #dfe3df;
  padding: 18px;
  border-radius: 0;
}

.booked-summary-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 500;
  color: #222;
}

.booked-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booked-summary-card {
  background: #f3f1f1;
  padding: 12px 14px;
  box-sizing: border-box;
}

.booked-summary-card-full {
  grid-column: 1 / -1;
}

.booked-summary-card-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #2f2f2f;
  margin-bottom: 10px;
}

.booked-summary-text,
.booked-summary-line {
  font-size: 14px;
  line-height: 1.45;
  color: #2f2f2f;
}

.booked-summary-line + .booked-summary-line {
  margin-top: 2px;
}

.booked-summary-label {
  font-weight: 400;
}

/*
.quickcal-step-location {
  background: #eef1ec;
  max-width: 600px;
  font-family: Arial, sans-serif;
  color: #2f2f2f;
}
*/
.quickcal-step-header {
  background: #849372;
  padding: 10px 14px;
}

.quickcal-step-header h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
}

.quickcal-step-body {
  padding: 14px;
}
/*
.quickcal-step-location .field {
  margin-bottom: 14px;
}

.quickcal-step-location .field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 400;
}
*/
.quickcal-choice-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/*
.quickcal-radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}
*/
.quickcal-location-block {
  margin-top: 16px;
}

.quickcal-location-block h4 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.quickcal-map {
  width: 100%;
  height: 600px;
  background: #dbe7f0;
  border: 1px solid #d7d7d7;
  margin-bottom: 14px;
}

.quickcal-selected-relay-summary {
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.quickcal-step-location select,
.quickcal-step-location input[type="text"] {
  width: 100% !important;
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  background: #fff;
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 0;
}

.quickcal-row {
  display: flex;
  gap: 12px;
}

.quickcal-col {
  flex: 1;
}

.quickcal-col-small {
  max-width: 25%;
}

.quickcal-step-actions {
  margin-top: 20px;
  text-align: center;
}
/*
.quickcal-step-actions .booked-next-step {
  background: #849372 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 9px;
  padding: 12px 28px;
  font-size: 16px;
  cursor: pointer;
}
*/
.quickcal-infowindow {
  min-width: 220px;
  font-size: 14px;
  line-height: 1.4;
}

.quickcal-infowindow-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.quickcal-infowindow-address {
  margin-bottom: 10px;
}

.quickcal-select-relay-btn {
  background: #849372;
  color: #fff;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
}

.quickcal-relay-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.quickcal-relay-item:hover {
  background: #f5f5f5;
}

.quickcal-relay-item.active {
  background: #849372;
  color: #fff;
}

.quickcal-relay-name {
  font-weight: 600;
}

.quickcal-relay-address {
  font-size: 13px;
  opacity: 0.8;
}
/*
body .booked-modal.quickcal-location-open .bm-window {
  width: min(680px, calc(100vw - 40px));
}
*/
#delivery_street {
  width: 37em;
}

#delivery_city {
  width: 25em;
}

#delivery_zip {
  width: 5em;
}

/*** MOBILE ONLY ***/
@media (max-width: 640px) {
  .booked-summary-grid {
    grid-template-columns: 1fr;
  }

  .booked-form input,
  .booked-form select,
  .booked-form textarea {
    font-size: 16px !important;
  }

  body .booked-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    height: 100dvh;
  }

  body .booked-modal .bm-window {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  body .booked-modal .bm-window .booked-scrollable {
    flex: 1;
    max-height: none;
    overflow-y: auto;
  }

  #delivery_street {
    width: 15em;
  }

  #delivery_city {
    width: 10em;
  }

  #delivery_zip {
    width: 3em;
  }
}