.noreka-reservation-grid > .noreka-reservation-field,
.noreka-reservation-conditions > label,
.noreka-reservation-conditions > .noreka-reservation-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.noreka-reservation-conditions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, .65fr) minmax(260px, 1.15fr) minmax(220px, 1fr);
  align-items: start;
  gap: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e0d3c3;
}

.noreka-reservation-conditions > label,
.noreka-reservation-conditions > .noreka-reservation-field {
  align-content: start;
}

.noreka-reservation-conditions input,
.noreka-reservation-conditions select,
.noreka-reservation-conditions .noreka-date-picker__trigger {
  height: 52px;
  min-height: 52px;
}

.noreka-reservation-field__label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.noreka-reservation-field__label em {
  color: #98502f;
  font-size: 11px;
  font-style: normal;
}

.noreka-reservation-field__help {
  margin-top: 1px;
  color: #71675d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.noreka-time-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #98502f 50%), linear-gradient(135deg, #98502f 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 38px !important;
}

.noreka-time-select:disabled {
  background-color: #f1ece4;
  color: #867c72;
  cursor: not-allowed;
}

.noreka-date-picker {
  position: relative;
}

.noreka-date-picker__native {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 1px solid #bfae9b;
  border-radius: 4px;
  background: #fffdfa;
  padding: 11px 13px;
  color: #211d19;
  font: inherit;
  font-size: 16px;
}

.noreka-date-picker__trigger {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #b9aa99;
  border-radius: 4px;
  background: #fffdfa;
  padding: 0 15px 0 16px;
  color: #74695e;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.noreka-date-picker__trigger:hover {
  border-color: #98502f;
  background: #fff;
}

.noreka-date-picker__trigger:focus-visible {
  outline: 3px solid rgba(199, 144, 73, .38);
  outline-offset: 2px;
  border-color: #98502f;
}

.noreka-date-picker__trigger.has-value {
  color: #211d19;
}

.noreka-date-picker__trigger svg {
  width: 22px;
  height: 22px;
  color: #98502f;
}

.noreka-date-picker.is-open .noreka-date-picker__trigger {
  border-color: #98502f;
  box-shadow: 0 0 0 3px rgba(199, 144, 73, .18);
}

.noreka-date-picker.has-error .noreka-date-picker__trigger {
  border-color: #a43b32;
  box-shadow: 0 0 0 3px rgba(164, 59, 50, .12);
}

.noreka-date-calendar[hidden] {
  display: none;
}

.noreka-date-calendar {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 10;
  box-sizing: border-box;
  width: min(350px, calc(100vw - 80px));
  border: 1px solid #c7b69f;
  border-radius: 6px;
  background: #fffdfa;
  padding: 12px;
  box-shadow: 0 22px 48px rgba(35, 26, 20, .2), 0 4px 12px rgba(35, 26, 20, .1);
  font-weight: 500;
}

.noreka-date-calendar::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #c7b69f;
  border-left: 1px solid #c7b69f;
  background: #fffdfa;
  transform: rotate(45deg);
}

.noreka-date-calendar__header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 7px;
}

.noreka-date-calendar__header strong {
  text-align: center;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 17px;
  letter-spacing: .04em;
}

.noreka-date-calendar__header button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #3c342e;
  cursor: pointer;
}

.noreka-date-calendar__header button:hover:not(:disabled),
.noreka-date-calendar__header button:focus-visible {
  background: #f0e5d5;
  color: #98502f;
}

.noreka-date-calendar__header button:focus-visible,
.noreka-date-calendar__days button:focus-visible,
.noreka-date-calendar__footer button:focus-visible {
  outline: 2px solid #c79049;
  outline-offset: 1px;
}

.noreka-date-calendar__header button:disabled {
  opacity: .28;
  cursor: default;
}

.noreka-date-calendar__header svg {
  width: 20px;
  height: 20px;
}

.noreka-date-calendar__weekdays,
.noreka-date-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.noreka-date-calendar__weekdays {
  padding: 0 0 5px;
  border-bottom: 1px solid #e2d6c7;
  color: #786d62;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.noreka-date-calendar__weekdays span:first-child {
  color: #a24a3d;
}

.noreka-date-calendar__weekdays span:last-child {
  color: #27705e;
}

.noreka-date-calendar__days {
  gap: 1px;
  padding-top: 6px;
}

.noreka-date-calendar__days button {
  display: grid;
  width: 34px;
  height: 34px;
  min-width: 0;
  justify-self: center;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #302923;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: background-color .12s ease, color .12s ease, transform .12s ease;
}

.noreka-date-calendar__days button:hover:not(:disabled):not(.is-selected) {
  background: #f0e5d5;
  transform: translateY(-1px);
}

.noreka-date-calendar__days button.is-sunday:not(.is-selected) {
  color: #a24a3d;
}

.noreka-date-calendar__days button.is-saturday:not(.is-selected) {
  color: #27705e;
}

.noreka-date-calendar__days button.is-outside {
  opacity: .34;
}

.noreka-date-calendar__days button:disabled {
  color: #bbb1a7;
  cursor: not-allowed;
  opacity: .42;
}

.noreka-date-calendar__days button.is-today {
  box-shadow: inset 0 0 0 1px #c79049;
}

.noreka-date-calendar__days button.is-selected {
  background: #8e442d;
  color: #fff;
  font-weight: 850;
  box-shadow: 0 4px 10px rgba(142, 68, 45, .25);
}

.noreka-date-calendar__footer {
  display: flex;
  min-height: 28px;
  align-items: end;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e2d6c7;
  color: #796f65;
  font-size: 11px;
}

.noreka-date-calendar__footer button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  padding: 4px 0;
  color: #8e442d;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.noreka-date-calendar__footer button:disabled {
  display: none;
}

@media (max-width: 720px) {
  .noreka-reservation-conditions {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 24px;
  }

  .noreka-date-calendar {
    width: 100%;
    padding: 12px;
  }

  .noreka-date-calendar__days button {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .noreka-reservation-field__help {
    font-size: 11px;
  }
}

@media (min-width: 721px) and (max-width: 840px) {
  .noreka-reservation-conditions {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noreka-date-picker__trigger,
  .noreka-date-calendar__days button {
    transition: none;
  }
}
