.tsitah-booking-picker,
.tsitah-booking-picker * {
  box-sizing: border-box;
}

.tsitah-booking-picker {
  position: relative;
  display: block;
  width: 100%;
  color: #171714;
  font-family: inherit;
}

.tsitah-booking-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(8, 9, 10, 0.26);
  border-radius: 0;
  color: rgba(8, 9, 10, 0.54);
  background: #fffdf9;
  padding: 0.9rem 1rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tsitah-booking-trigger:hover,
.tsitah-booking-trigger:focus-visible,
.tsitah-booking-picker.is-open .tsitah-booking-trigger {
  border-color: #cf9a37;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(207, 154, 55, 0.16);
}

.tsitah-booking-trigger.has-value {
  color: #171714;
}

.tsitah-booking-trigger-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-left: 0.8rem;
  border: 1.5px solid currentColor;
}

.tsitah-booking-trigger-icon::before,
.tsitah-booking-trigger-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1.5px;
  height: 5px;
  background: currentColor;
}

.tsitah-booking-trigger-icon::before {
  left: 4px;
}

.tsitah-booking-trigger-icon::after {
  right: 4px;
}

.tsitah-booking-calendar {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  left: 0;
  display: block;
  width: min(430px, calc(100vw - 3rem));
  border: 1px solid rgba(8, 9, 10, 0.24);
  background: #f7f1e8;
  padding: 1rem;
  box-shadow: 0 24px 70px rgba(18, 15, 11, 0.24);
}

.tsitah-booking-calendar[hidden] {
  display: none;
}

.tsitah-booking-calendar-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.tsitah-booking-calendar-head strong {
  color: #171714;
  font-size: 1.05rem;
  text-align: center;
}

.tsitah-booking-calendar-head button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(8, 9, 10, 0.23);
  color: #171714;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.tsitah-booking-calendar-head button:hover:not(:disabled),
.tsitah-booking-calendar-head button:focus-visible {
  border-color: #cf9a37;
  outline: 0;
  background: #e1aa43;
}

.tsitah-booking-calendar-head button:disabled {
  opacity: 0.28;
  cursor: default;
}

.tsitah-booking-weekdays,
.tsitah-booking-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tsitah-booking-weekdays span {
  padding: 0.45rem 0.1rem;
  color: #766d61;
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
}

.tsitah-booking-days {
  border-top: 1px solid rgba(8, 9, 10, 0.14);
  border-left: 1px solid rgba(8, 9, 10, 0.14);
}

.tsitah-booking-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(8, 9, 10, 0.14);
  border-bottom: 1px solid rgba(8, 9, 10, 0.14);
  border-radius: 0;
  color: #171714;
  background: #fffdf9;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.tsitah-booking-day:hover:not(:disabled),
.tsitah-booking-day:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #cf9a37;
  outline-offset: -2px;
  background: #f5dfb7;
}

.tsitah-booking-day.is-empty {
  background: rgba(8, 9, 10, 0.025);
}

.tsitah-booking-day.is-unavailable {
  color: rgba(255, 253, 249, 0.72);
  background: #34332f;
  cursor: not-allowed;
}

.tsitah-booking-day.is-past {
  color: rgba(8, 9, 10, 0.28);
  background: rgba(8, 9, 10, 0.07);
}

.tsitah-booking-day.is-today:not(.is-unavailable) {
  box-shadow: inset 0 0 0 2px #cf9a37;
}

.tsitah-booking-day.is-selected {
  color: #090909;
  background: #e1aa43;
  box-shadow: inset 0 0 0 2px #090909;
}

.tsitah-booking-legend {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.8rem;
  color: #655e55;
  font-size: 0.72rem;
  line-height: 1.35;
}

.tsitah-booking-legend i {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  background: #34332f;
}

@media (max-width: 520px) {
  .tsitah-booking-calendar {
    right: 0;
    left: auto;
    width: min(430px, calc(100vw - 2rem));
    padding: 0.75rem;
  }

  .tsitah-booking-day {
    font-size: 0.75rem;
  }
}
