/* SimpleBooking fields for Augustine individual-room pages. */
.qodef-room-reservation-filter .nawa-simplebooking-room-form,
.qodef-room-reservation-filter .nawa-simplebooking-room-form * {
  box-sizing: border-box;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .qodef-m-field {
  margin-bottom: 32px;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .qodef-m-field-input-wrapper,
.qodef-room-reservation-filter .nawa-simplebooking-room-form .nawa-guests-summary {
  cursor: pointer;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .nawa-guests-summary {
  padding-right: 28px;
  text-overflow: ellipsis;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .nawa-guests-dropdown {
  max-height: min(70vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  border-color: #c4c4c4;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .nawa-room-count {
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e3e3;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .nawa-booking-room {
  padding: 18px 0 4px;
  border-top: 1px solid #e3e3e3;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .nawa-booking-room:first-child {
  padding-top: 0;
  border-top: 0;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .nawa-booking-room-title {
  margin: 0 0 16px;
  color: #0b6354;
  font-family: "Sarabun", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .qodef-m-field-person .qodef-e-label-text {
  padding-right: 12px;
  font-size: 20px;
}

.qodef-room-reservation-filter .nawa-booking-quantity {
  display: inline-grid;
  flex: 0 0 auto;
  grid-template-columns: 30px 38px 30px;
  align-items: center;
  border: 1px solid #c4c4c4;
}

.qodef-room-reservation-filter .nawa-booking-quantity button,
.qodef-room-reservation-filter .nawa-booking-quantity input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font: inherit;
  line-height: 34px;
  text-align: center;
}

.qodef-room-reservation-filter .nawa-booking-quantity button {
  cursor: pointer;
  font-size: 19px;
}

.qodef-room-reservation-filter .nawa-booking-quantity button:hover,
.qodef-room-reservation-filter .nawa-booking-quantity button:focus-visible {
  background: #0b6354;
  color: #fff;
}

.qodef-room-reservation-filter .nawa-booking-quantity input {
  border-right: 1px solid #e3e3e3;
  border-left: 1px solid #e3e3e3;
  border-radius: 0;
}

.qodef-room-reservation-filter .nawa-child-ages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: -2px 0 20px;
}

.qodef-room-reservation-filter .nawa-child-age-field {
  display: block;
  min-width: 0;
  margin: 0;
}

.qodef-room-reservation-filter .nawa-child-age-field span {
  display: block;
  margin-bottom: 5px;
  color: #0b6354;
  font-family: "Sarabun", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.qodef-room-reservation-filter .nawa-child-age-field select {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 4px 24px 4px 8px;
  border: 1px solid #c4c4c4;
  background-color: #fff;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .nawa-guests-done {
  width: 100%;
  border: 0;
  background: #918168;
  color: #fff;
  cursor: pointer;
  font-family: "Sarabun", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 12px 18px;
  text-transform: uppercase;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .nawa-guests-done:hover,
.qodef-room-reservation-filter .nawa-simplebooking-room-form .nawa-guests-done:focus-visible {
  background: #053d34;
}

.qodef-room-reservation-filter .nawa-simplebooking-room-form .qodef--booking .qodef-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}


@media only screen and (max-width: 680px) {
  .qodef-room-reservation-filter .nawa-child-ages {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Keep the top filter at four fields, matching the Lihim booking layout. */
.qodef-room-reservation-filter.qodef-layout--horizontal .nawa-simplebooking-room-form {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  margin: 0 !important;
}

.qodef-room-reservation-filter.qodef-layout--horizontal .nawa-simplebooking-room-form .qodef-m-field {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.qodef-room-reservation-filter.qodef-layout--horizontal .nawa-simplebooking-room-form .qodef--guests .qodef-m-field-persons {
  left: 0;
  width: 100%;
}

@media only screen and (max-width: 1024px) {
  .qodef-room-reservation-filter.qodef-layout--horizontal .nawa-simplebooking-room-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 680px) {
  .qodef-room-reservation-filter.qodef-layout--horizontal .nawa-simplebooking-room-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Nawa reservation-filter datepicker cleanup. */
.datepick-popup .nawa-simplebooking-datepick .datepick-nav,
.datepick-popup .nawa-simplebooking-datepick .datepick-ctrl {
  display: none !important;
}

.datepick-popup .nawa-simplebooking-datepick .datepick-month-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 0 44px;
  line-height: 1.35;
  white-space: nowrap;
}

.datepick-popup .nawa-simplebooking-datepick .datepick-month-header select {
  width: auto;
  min-width: 0;
  height: 32px;
  margin: 0 3px;
  padding: 3px 24px 3px 8px;
  border: 1px solid #c4c4c4;
  background-color: #fff;
  color: #000;
  line-height: 1.2;
}

.datepick-popup .nawa-simplebooking-datepick .datepick-month-row .datepick-cmd {
  top: 0;
  display: flex;
  align-items: center;
  min-height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
}
/* Nawa's current SimpleBooking configuration accepts adults only. */
.nawa-simplebooking-room-form.nawa-children-disabled .qodef--children,
.nawa-simplebooking-room-form.nawa-children-disabled .nawa-child-ages {
  display: none !important;
}
