:root {
  --booking-red: #cc0000;
  --booking-red-hover: #bd0000;
  --booking-text: #303343;
  --booking-muted: #676a74;
  --booking-line: #d7d7db;
  --booking-bg: #fff;
  --booking-shell: 940px;
  --booking-sidebar: 240px;
  --booking-calendar: 300px;
  --booking-radius-pill: 999px;
  --booking-control-border: #8c8f98;
  --booking-speed: .16s ease;
}

html,
body,
.booking-page {
  background: var(--booking-bg);
}

body.site-layout:has(.booking-page) {
  color: var(--booking-text);
  font-family: Montserrat, Arial, sans-serif;
}

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

body.site-layout main > .booking-page {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.booking-page {
  padding: 20px 0 86px;
}

body.site-layout .booking-page .booking-shell {
  width: min(100% - 48px, var(--booking-shell)) !important;
  max-width: var(--booking-shell) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.booking-hero h1 {
  margin: 0 0 16px;
  color: var(--booking-red);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.33;
}

.booking-hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.booking-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--booking-text);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.booking-back:hover,
.booking-back:focus-visible,
.booking-dropdown__button:hover,
.booking-dropdown__button:focus-visible,
.booking-more:hover,
.booking-more:focus-visible {
  color: var(--booking-red);
  outline: none;
}

.booking-back span,
.booking-dropdown__button span[aria-hidden="true"],
.booking-more span[aria-hidden="true"] {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-bottom: 1px solid currentColor;
  font-size: 0;
  line-height: 0;
}

.booking-back span {
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
}

.booking-dropdown__button span[aria-hidden="true"],
.booking-more span[aria-hidden="true"] {
  margin-left: 4px;
  border-right: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--booking-speed);
}

.booking-dropdown__button[aria-expanded="true"] span[aria-hidden="true"],
.booking-more[aria-expanded="true"] span[aria-hidden="true"] {
  transform: rotate(225deg) translateY(-2px);
}

.booking-filter {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--booking-line);
  color: var(--booking-muted);
  font-size: 14px;
}

.booking-filter button,
.booking-select button,
.booking-more,
.booking-month__button,
.booking-slot,
.booking-button {
  font: inherit;
}

.booking-filter button,
.booking-more,
.booking-month__button {
  border: 0;
  background: transparent;
  color: var(--booking-text);
  cursor: pointer;
}

.booking-dropdown {
  position: relative;
}

.booking-dropdown__button {
  cursor: pointer;
}

.booking-filter .booking-dropdown__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 16px;
}

.booking-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  min-width: 246px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--booking-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(48, 51, 67, .13);
}

.booking-dropdown__menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--booking-text);
  text-align: left;
  cursor: pointer;
}

.booking-dropdown__menu button:hover,
.booking-dropdown__menu button:focus-visible {
  background: rgba(204, 0, 0, .08);
  color: var(--booking-red);
  outline: none;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr var(--booking-sidebar);
  gap: 52px;
  align-items: start;
  margin-top: 58px;
}

.booking-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--booking-line);
}

.booking-panel-head--simple {
  display: block;
}

.booking-panel-head h2 {
  margin: 0;
  color: var(--booking-text);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}

.booking-panel-head p,
.booking-timezone,
.booking-more,
.booking-service__details {
  color: var(--booking-muted);
  font-size: 14px;
}

.booking-panel-head p {
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
}

.booking-timezone {
  display: none;
}

.booking-calendar__body {
  display: grid;
  grid-template-columns: var(--booking-calendar) 1fr;
  gap: 48px;
  padding-top: 15px;
}

.booking-month {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
}

.booking-month__button {
  width: 38px;
  height: 32px;
  padding: 0;
  color: #343746;
  font-size: 42px;
  line-height: .75;
}

.booking-month__title,
.booking-days,
.booking-day,
.booking-slots h3,
.booking-slot,
.booking-show-all,
.booking-select,
.booking-select .booking-dropdown__button,
.booking-service h3 {
  font-size: 16px;
}

.booking-month__title {
  text-align: center;
  line-height: 1.2;
}

.booking-month__title span {
  margin-left: 10px;
}

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

.booking-days {
  margin-top: 20px;
  color: #5e6370;
  line-height: 1;
  text-align: center;
}

.booking-grid {
  gap: 8px 4px;
  margin-top: 21px;
}

.booking-day {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border-radius: 50%;
  color: #8f929b;
  line-height: 1;
}

.booking-day:empty {
  visibility: hidden;
}

.booking-day--available {
  color: var(--booking-red);
  cursor: pointer;
  transition: background-color var(--booking-speed), color var(--booking-speed), transform var(--booking-speed);
}

.booking-day--available::after,
.booking-day--selected::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.booking-day--available::after {
  bottom: 3px;
  background: var(--booking-red);
}

.booking-day--selected {
  background: var(--booking-red);
  color: #fff;
}

.booking-day--selected::after {
  bottom: 4px;
  background: #fff;
}

.booking-day--available:hover,
.booking-day--available:focus-visible {
  background: rgba(204, 0, 0, .08);
  outline: none;
  transform: translateY(-1px);
}

.booking-day--selected:hover,
.booking-day--selected:focus-visible {
  background: var(--booking-red);
  color: #fff;
}

.booking-slots h3 {
  margin: 2px 0 28px;
  font-weight: 400;
  line-height: 1.45;
}

.booking-slots__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.booking-slot,
.booking-select .booking-dropdown__button,
.booking-button {
  border-radius: var(--booking-radius-pill);
}

.booking-slot {
  min-height: 42px;
  padding: 8px 22px;
  border: 1px solid var(--booking-control-border);
  background: transparent;
  color: var(--booking-text);
  cursor: pointer;
  transition: background-color var(--booking-speed), border-color var(--booking-speed), color var(--booking-speed), transform var(--booking-speed);
}

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

.booking-slot:hover,
.booking-slot:focus-visible {
  border-color: var(--booking-red);
  color: var(--booking-red);
  outline: none;
  transform: translateY(-1px);
}

.booking-slot--selected {
  border-color: var(--booking-red);
  background: var(--booking-red);
  color: #fff;
}

.booking-show-all {
  display: block;
  margin-top: 26px;
  color: var(--booking-red);
  text-align: center;
  text-decoration: underline;
}

.booking-preferences {
  margin-bottom: 25px;
}

.booking-select {
  display: block;
  margin-top: 18px;
  color: var(--booking-muted);
}

.booking-select .booking-dropdown__button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid var(--booking-control-border);
  background: transparent;
  color: var(--booking-text);
}

.booking-service {
  padding-top: 18px;
}

.booking-service h3 {
  margin: 0 0 16px;
  font-weight: 400;
  line-height: 1.35;
}

.booking-more {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  text-align: left;
}

.booking-service__details {
  margin: -4px 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--booking-text);
  line-height: 1.55;
}

.booking-service__details p {
  margin: 0 0 2px;
}

.booking-service__details p:last-child {
  margin-bottom: 0;
}

.booking-button {
  width: 100%;
  min-height: 40px;
  margin-top: 42px;
  border: 0;
  background: var(--booking-red);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background-color var(--booking-speed), transform var(--booking-speed), box-shadow var(--booking-speed);
}

.booking-button:hover,
.booking-button:focus-visible {
  background: var(--booking-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(204, 0, 0, .18);
  outline: none;
}

.booking-button:active {
  transform: translateY(1px) scale(.985);
}

@media (max-width: 980px) {
  body.site-layout .booking-page .booking-shell {
    width: min(100% - 32px, var(--booking-shell)) !important;
  }

  .booking-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .booking-calendar__body {
    grid-template-columns: minmax(0, var(--booking-calendar)) minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 680px) {
  .booking-page {
    padding: 28px 0 52px;
  }

  .booking-hero h1 {
    font-size: 30px;
  }

  .booking-filter,
  .booking-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-filter {
    gap: 12px;
  }

  .booking-panel-head {
    gap: 8px;
  }

  .booking-panel-head p {
    white-space: normal;
  }

  .booking-calendar__body,
  .booking-slots__grid {
    grid-template-columns: 1fr;
  }
}