.topbar,
body {
  background: #fff;
}
.booking-head,
.brand,
.week-title {
  text-align: center;
}
:root {
  --brand: #e91e63;
  --brand-dark: #d81b60;
  --brand-soft: #f8bbd0;
  --ink: #292929;
  --line: #999;
  --soft: #fce4ec;
}
body,
html {
  min-height: 100%;
}
body {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.87);
  padding-bottom: 44px;
}
.topbar {
  height: 64px;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px rgba(0, 0, 0, 0.14),
    0 1px 10px rgba(0, 0, 0, 0.12);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
main {
  padding-top: 64px;
}
.bi {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  vertical-align: -0.125em;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}
.bi-filter-left {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M2 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M2 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5'/%3E%3C/svg%3E");
}
.bi-chevron-left {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M11 1.5 4.5 8l6.5 6.5-1 1L2.5 8 10 0.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M11 1.5 4.5 8l6.5 6.5-1 1L2.5 8 10 0.5z'/%3E%3C/svg%3E");
}
.bi-chevron-right {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='m5 1.5 6.5 6.5L5 14.5l1 1L13.5 8 6 .5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='m5 1.5 6.5 6.5L5 14.5l1 1L13.5 8 6 .5z'/%3E%3C/svg%3E");
}
.bi-person-fill {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E");
}
.brand {
  line-height: 0.85;
  letter-spacing: 0.12em;
  color: #e91e63;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  width: 151px;
}
.booking-submit,
.choose-btn,
.outline-nav {
  text-transform: uppercase;
  letter-spacing: 0.0892857143em;
  cursor: pointer;
}
.brand small {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.31rem;
  letter-spacing: 0.18em;
  margin-top: 6px;
  color: #aaa;
}
.outline-nav {
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.87);
  border-radius: 4px;
  background: #fff;
  color: rgba(0, 0, 0, 0.87);
  font: 500 12px/18px Roboto, sans-serif;
  padding: 0 12.4444px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s;
}
.book:hover,
.filters-link i,
.nav-week .btn,
.trainer i,
.week-range {
  color: var(--brand);
}
.filters-link,
.week-title {
  font: 400 16px/24px Roboto, sans-serif;
  white-space: nowrap;
}
.dialog-close:hover,
.outline-nav:hover {
  background: rgba(0, 0, 0, 0.06);
}
.flag {
  width: 32px;
  height: 20px;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ddd;
}
.flag span {
  display: block;
  height: 33.333%;
}
.flag .w {
  background: #fff;
}
.flag .g {
  background: #159447;
}
.flag .r {
  background: #d9292e;
}
.calendar-wrap {
  padding: 88px 12px 18px;
}
.toolbar {
  height: auto;
  min-height: 88px;
  margin: 0;
}
.toolbar-top {
  height: auto;
  min-height: 48px;
  padding-top: 12px;
}
.toolbar-bottom {
  height: auto;
  min-height: 40px;
  padding: 8px 0 4px;
}
.filters-link {
  cursor: pointer;
}
.filters-link i {
  font-size: 24px;
  vertical-align: -5px;
  margin-left: 4px;
}
.week-title {
  padding: 0;
}
.booking-meta strong,
.week-title strong {
  font-weight: 700;
}
.week-range {
  font-weight: 500;
}
.nav-week .btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  font-size: 16px;
  line-height: 24px;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.18s, background-color 0.18s;
}
.nav-week .btn:hover {
  color: var(--brand-dark);
  background: rgba(233, 30, 99, 0.08);
}
.nav-week .btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.choose-btn {
  width: 118.953px;
  height: 28px;
  background: var(--brand);
  border: 0;
  border-radius: 4px;
  font: 500 12px/18px Roboto, sans-serif;
  padding: 0 12.4444px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14),
    0 1px 5px rgba(0, 0, 0, 0.12);
  transition: background-color 0.18s, box-shadow 0.18s;
}
.choose-btn:focus,
.choose-btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.3), 0 4px 5px rgba(0, 0, 0, 0.18);
}
.filter-summary {
  color: #9e9e9e;
  font: 400 14px/20px Roboto, sans-serif;
  margin-left: 12px;
}
.schedule {
  position: relative;
  clear: both;
  margin-top: 0;
  border: 1px solid #ddd;
}
.day-title {
  height: 40px;
  background: var(--soft);
  border-left: 5px solid var(--brand);
  color: #7a1740;
  font: 700 16px/24px Roboto, sans-serif;
  padding: 8px 14px;
}
.class-row {
  display: grid;
  grid-template-columns: 140px 24px minmax(250px, 1.35fr) minmax(150px, 0.8fr) minmax(
      80px,
      0.5fr
    ) minmax(80px, 0.5fr) minmax(150px, 0.75fr);
  align-items: stretch;
  height: 41.5px;
  border-bottom: 1px solid #999;
  border-left: 5px solid var(--brand-soft);
  padding: 0;
  font: 400 16px/24px Roboto, sans-serif;
  transition: background-color 0.14s;
}
.class-row:hover {
  background: #fff3f7;
}
.class-row:last-child {
  border-bottom: 0;
}
.class-row.waiting {
  border-left-color: #f0d79b;
}
.class-row > .book,
.class-row > div {
  display: flex;
  align-items: center;
  padding: 8px 14px;
}
.class-row > div:first-child {
  grid-column: 1;
  white-space: nowrap;
}
.class-name {
  grid-column: 3;
  font-weight: 700;
}
.trainer i {
  font-size: 13px;
  margin-right: 7px;
}
.book {
  grid-column: 6;
  justify-content: flex-end;
  color: rgba(0, 0, 0, 0.87);
  text-decoration: underline;
  cursor: pointer;
}
.class-time {
  grid-column: 1;
}
.class-name {
  grid-column: 3;
}
.trainer {
  grid-column: 4;
}
.price {
  grid-column: 5;
}
.class-info {
  grid-column: 6;
}
.book,
.nonbookable {
  grid-column: 7;
}
.filters-panel {
  display: none;
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 14px;
  margin-bottom: 12px;
}
.filters-panel.show {
  display: block;
}
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px;
  font: 400 12.8px/19.2px Roboto, sans-serif;
  color: #888;
}
.footer a {
  color: #777;
}
.booking-dialog {
  width: min(700px, calc(100vw - 32px));
  height: min(700px, calc(100vh - 94px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: rgba(0, 0, 0, 0.87);
  box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2),
    0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);
}
.booking-dialog::backdrop {
  background: rgba(0, 0, 0, 0.54);
}
.booking-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 10px 24px;
}
.booking-head {
  position: relative;
  padding: 3px 42px 8px;
}
.booking-title {
  margin: 0;
  font: 700 24px/32px Roboto, sans-serif;
}
.dialog-close {
  position: absolute;
  right: 4px;
  top: 0;
  width: 40px;
  height: 40px;
  border: 0;
  background: 0 0;
  color: #e53935;
  font: 300 32px/32px Arial, sans-serif;
  cursor: pointer;
  border-radius: 50%;
}
.booking-meta {
  font-size: 16px;
  line-height: 22px;
  color: #777;
}
.availability {
  height: 58px;
  margin: 2px 0 14px;
  background: #90ee90;
  color: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}
.booking-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.field-label {
  margin: 0 0 1px;
  font-weight: 700;
}
.booking-input,
.booking-select {
  width: 100%;
  height: 41px;
  border: 1px solid #999;
  border-radius: 4px;
  background: #fff;
  padding: 8px 12px;
  font: 400 16px/24px Roboto, sans-serif;
  color: rgba(0, 0, 0, 0.87);
  outline: 0;
}
.booking-input:focus,
.booking-select:focus {
  border: 2px solid var(--brand);
  padding: 7px 11px;
}
.booking-input.required-look {
  border: 2px solid pink;
  padding: 7px 11px;
}
.required-note {
  height: 34px;
  padding: 1px 12px 0;
  color: #ef5350;
  font-size: 12px;
  line-height: 20px;
}
.comment-label {
  margin: 4px 0 1px;
  color: #aaa;
  font-size: 12px;
  line-height: 16px;
}
.booking-submit {
  width: 100%;
  height: 36px;
  margin-top: auto;
  border: 0;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font: 500 14px/20px Roboto, sans-serif;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14),
    0 1px 5px rgba(0, 0, 0, 0.12);
}
.booking-submit:hover {
  background: var(--brand-dark);
}
.header-logo {
  width: auto;
  height: 50px;
  max-width: 100%;
  object-fit: contain;
}
div.unavailable {
  background-color: #ccc;
}
.nonbookable {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 14px;
  color: rgba(0, 0, 0, 0.87);
  white-space: nowrap;
}
.footer > div:first-child {
  margin-right: auto;
}

@media (min-width: 768px) and (max-width: 1499.98px) {
  .toolbar-top {
    min-height: 64px;
  }
  .week-title {
    white-space: normal;
    line-height: 20px;
    padding: 0 12px;
  }
  .toolbar-bottom {
    padding-top: 8px;
  }
  .class-row {
    grid-template-columns: 125px 12px minmax(210px, 1.35fr) minmax(115px, 0.8fr) 55px 55px minmax(
        130px,
        0.75fr
      );
  }
  .class-row > div,
  .class-row > span {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 767.98px) {
  .booking-dialog,
  .booking-shell {
    height: auto;
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
  }
  .booking-dialog {
    max-width: 500px;
    margin: auto;
    padding: 0;
    overflow: hidden;
  }
  .header-logo {
    height: 46px;
  }
  .topbar {
    height: 58px;
  }
  main {
    padding-top: 0;
  }
  .brand {
    font-size: 1.25rem;
  }
  .calendar-wrap {
    padding: 76px 8px 18px;
  }
  .toolbar {
    height: auto;
    min-height: 0;
  }
  .toolbar-top {
    height: auto;
    min-height: 88px;
    padding-top: 0;
  }
  .week-title {
    order: -1;
    width: 100%;
    min-height: 40px;
    height: auto;
    margin-bottom: 8px;
    white-space: normal;
    line-height: 20px;
  }
  .toolbar-bottom {
    height: auto;
    min-height: 60px;
    padding: 8px 0;
  }
  .filter-summary {
    display: block;
    min-height: 20px;
    margin: 4px 0 0;
    line-height: 20px;
  }
  .schedule {
    margin-top: 0;
  }
  .class-row > .book,
  .class-row > div {
    padding: 4px 10px;
  }
  .class-row > div:first-child,
  .class-time {
    grid-column: 1;
    grid-row: 1;
  }
  .book {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .day-title {
    padding-left: 10px;
  }
  .flag {
    width: 28px;
  }
  .footer {
    position: static;
  }
  .booking-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }
  .booking-title {
    font-size: 20px;
    line-height: 28px;
  }
  .booking-shell {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 8px 14px;
  }
  .availability {
    height: 50px;
  }
  .class-row {
    grid-template-columns: 34% 66%;
    gap: 0;
    height: auto;
    min-height: 106px;
    grid-template-columns: 34% 66%;
    grid-template-rows: auto auto auto;
  }
  .class-name {
    grid-column: 2;
    grid-row: 1;
  }
  .price {
    grid-column: 1;
    grid-row: 2;
  }
  .trainer {
    grid-column: 2;
    grid-row: 2;
  }
  .class-info {
    grid-column: 1;
    grid-row: 3;
  }
  .book,
  .nonbookable {
    grid-column: 2;
    grid-row: 3;
    justify-content: flex-start;
  }
  .class-row > div,
  .class-row > span {
    min-width: 0;
    padding: 4px 10px;
  }
}


.booking-form {
  gap: 0;
}
.booking-input.input-error {
  border: 2px solid #e53935;
}
.field-error {
  min-height: 18px;
  margin: 2px 0 6px;
  color: #e53935;
  font-size: 12px;
  line-height: 16px;
}
.form-message {
  display: none;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
}
.form-message.success {
  display: block;
  color: #1b5e20;
  background: #e8f5e9;
}
.form-message.error {
  display: block;
  color: #b71c1c;
  background: #ffebee;
}
.booking-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}
