#booking-app {
  --booking-ink: #112e28;
  --booking-muted: #52645d;
  --booking-line: #dce5db;
  --booking-light: #edf4df;
  --booking-lime: #d6ef57;
  --booking-surface: #fffef9;
  width: 100%;
  color: var(--booking-ink);
  font-family: var(--body, "PT Sans", sans-serif);
  font-size: 15px;
}

#booking-app :where(*, *::before, *::after) {
  box-sizing: border-box;
}

#booking-app [hidden] {
  display: none !important;
}

#booking-app :is(button, input, select) {
  font: inherit;
}

#booking-app :is(button, input, select):focus-visible {
  outline: 2px solid #377854;
  outline-offset: 3px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.booking-panel {
  min-width: 0;
  border: 1px solid var(--booking-line);
  border-radius: 22px;
  background: var(--booking-surface);
  padding: clamp(17px, 2.7vw, 30px);
  box-shadow: 0 7px 28px rgb(17 46 40 / 4%);
}

.booking-panel h3 {
  margin: 0 0 16px;
  font: 750 clamp(22px, 2.8vw, 30px)/1.12 var(--display, Montserrat, sans-serif);
  letter-spacing: -0.035em;
}

.booking-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  font-weight: 700;
}

#booking-app .booking-field :is(input, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--booking-line);
  border-radius: 10px;
  padding: 8px 11px;
  background-color: #fff;
  color: var(--booking-ink);
}

#booking-app .booking-field select {
  padding-right: 28px;
}

#booking-app .booking-field input {
  font-size: 16px;
}

#booking-app .booking-field input::placeholder {
  color: #64736a;
  opacity: 1;
}

.booking-month {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin: 18px 0 6px;
  text-align: center;
}

.booking-month strong {
  text-transform: capitalize;
  font: 750 16px/1.2 var(--display, Montserrat, sans-serif);
}

#booking-app .booking-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--booking-line);
  border-radius: 50%;
  color: var(--booking-ink);
  background: transparent;
}

.booking-arrow svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#booking-app button:not(:disabled) {
  cursor: pointer;
}

#booking-app .booking-arrow:disabled {
  opacity: 0.35;
}

#booking-app :is(.booking-arrow, .booking-group):hover:not(:disabled) {
  background: var(--booking-light);
}

.booking-week,
.booking-days {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}

.booking-week {
  margin-bottom: 5px;
  color: var(--booking-muted);
  font-size: 12px;
}

#booking-app .booking-day {
  appearance: none;
  display: flex;
  min-width: 0;
  min-height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 0;
  color: #65756a;
  background-color: #f2f4ef;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 1;
}

.booking-day small {
  min-height: 0.95em;
  font-size: clamp(8px, 1.25vw, 11px);
  white-space: nowrap;
}

#booking-app .booking-day[data-availability="full"] {
  border-color: #dedfd3;
  color: #55605a;
  background-color: transparent;
}

#booking-app .booking-day[data-availability="open"] {
  color: var(--booking-ink);
  background: var(--booking-light);
  font-weight: 700;
}

#booking-app .booking-day[data-availability="open"]:not(:disabled):hover,
#booking-app .booking-day[aria-pressed="true"] {
  border-color: #a4ba35;
  color: var(--booking-ink);
  background: var(--booking-lime);
}

.booking-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 15px;
  color: var(--booking-muted);
  font-size: 12px;
  line-height: 1.25;
}

.booking-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.booking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dbe3da;
}

.booking-dot-open {
  background: #8ca82a;
}

.booking-dot-full {
  border: 1px solid #687c6e;
  background: transparent;
}

.booking-selected {
  margin: -4px 0 14px;
  color: var(--booking-muted);
}

.booking-selected::first-letter {
  text-transform: uppercase;
}

.booking-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

#booking-app .booking-group {
  display: flex;
  width: 100%;
  min-height: 42px;
  gap: 7px 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--booking-line);
  border-radius: 10px;
  padding: 7px 11px;
  background: #fff;
  color: var(--booking-ink);
  text-align: left;
}

.booking-group strong {
  flex-shrink: 0;
  font-size: 13px;
}

#booking-app .booking-group[aria-pressed="true"] {
  border-color: #679052;
  background: var(--booking-light);
}

#booking-app .booking-group:disabled {
  background: #f1f3ee;
  color: var(--booking-muted);
}

#booking-fields {
  display: grid;
  min-width: 0;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

#booking-fields:disabled :is(label, .booking-field > span) {
  color: var(--booking-muted);
}

#booking-fields:disabled :is(input, .booking-stepper) {
  background: #f1f3ee;
  opacity: 1;
}

.booking-counts {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.booking-stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: stretch;
  min-height: 47px;
  border: 1px solid var(--booking-line);
  border-radius: 10px;
}

#booking-app .booking-stepper button {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 0;
  color: var(--booking-ink);
  background: transparent;
  font: 600 21px/1 var(--body, "PT Sans", sans-serif);
}

#booking-app .booking-stepper button:hover:not(:disabled) {
  background: var(--booking-light);
}

#booking-app .booking-stepper button:disabled {
  opacity: 0.42;
}

#booking-app .booking-stepper input {
  appearance: textfield;
  min-height: 0;
  border: none;
  padding: 0;
  color: var(--booking-ink);
  background: transparent;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.booking-stepper input::-webkit-outer-spin-button,
.booking-stepper input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

#booking-app .booking-submit {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 8px 16px 8px 20px;
  color: var(--booking-ink);
  background: var(--booking-lime);
  font: 750 15px/1.2 var(--display, Montserrat, sans-serif);
  text-align: left;
}

#booking-app .booking-submit:hover:not(:disabled) {
  border-color: #a4ba35;
  background: #c9e74b;
}

#booking-app .booking-submit:disabled {
  border-color: var(--booking-line);
  color: var(--booking-muted);
  background: #e8eee4;
  opacity: 1;
}

.booking-submit span:last-child {
  font-size: 19px;
  line-height: 1;
}

.booking-capacity,
.booking-status,
.booking-note {
  margin: 0;
  color: var(--booking-muted);
  font-size: 13px;
  line-height: 1.35;
}

.booking-capacity:empty,
.booking-status:empty {
  display: none;
}

.booking-calendar .booking-status,
.booking-details > .booking-status,
.booking-note {
  margin-top: 12px;
}

.booking-note[data-mode="demo"] {
  padding: 8px 10px;
  border-radius: 9px;
  background: #f5f0d7;
  color: #544a2c;
}

.booking-capacity[data-tone="error"],
.booking-status[data-tone="error"] {
  color: #982c27;
}

.booking-status[data-tone="success"] {
  padding: 10px 12px;
  border-radius: 9px;
  color: #194f35;
  background: var(--booking-light);
  font-weight: 700;
}

#booking-app .booking-link {
  min-height: 38px;
  margin-top: 4px;
  border: 0;
  padding: 0;
  color: var(--booking-ink);
  background: none;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 740px) {
  .booking-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-day small {
    font-size: clamp(8px, 2.45vw, 11px);
  }
}

@media (max-width: 350px) {
  .booking-week,
  .booking-days {
    gap: 2px;
  }

  .booking-stepper {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }
}
