:root {
  --main-size: 291.24998px;
}

div#schedule-app {
  clear: both;
}

@media (max-width: 1400px) {
  :root {
    --main-size: 250.749992px;
  }
}

@media (max-width: 1200px) {
  :root {
    --main-size: 210.249992px;
  }
}

@media (max-width: 992px) {
  :root {
    --main-size: 210.249992px;
  }
}

@media (max-width: 768px) {
  :root {
    --main-size: 291.1335px;
  }
}

@media (max-width: 576px) {
  :root {
    --main-size: 291.1335px;
  }
}


.search-wrap form {
  margin: 0px !important;
}

.dates-wrap {

  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 0 30px;
  min-width: 0;
  justify-content: space-between;
  margin: 30px -15px 0 -15px;

  .date-wrap {
    color: #002647;
    background-color: #F6F8FA;
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
    /* width: 100%; 
    margin: 0 15px;*/
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid #E9EAEB;
    min-width: 0;

    .day {
      font-weight: 600;
      font-size: 16px;
    }

    .month {
      font-weight: 700;
      font-size: 22px;
      margin-top: -5px;
    }
  }

  .date-wrap.active {
    background-color: #002647;
    color: #fff;
  }

}

.calendar-wrap {
  border: 1px solid #E9EAEB;
  background-color: #fff;
  border-radius: 6px;
  margin-top: 30px;
  display: flex;

  img.staff-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    display: block;
    object-fit: contain;
  }

  .staff-wrap {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: #002647;
    border-left: 1px solid #E9EAEB;
    justify-content: center;
    flex-direction: column;
    width: var(--main-size);
  }

  .table-schedule-wrap {
    grid-column: span 1;
    width: var(--main-size);
  }

  .table-wrap {
    display: flex;
    flex-direction: column;
  }

  .staffs-inner-wrap,
  .schedule-wrap {
    display: inline-grid;
    grid-template-columns: repeat(4, var(--main-size));
    overflow: auto;
    grid-auto-flow: column dense;
  }

  .staffs-inner-wrap {
    width: 90% !important;
  }

  .times-wrap,
  .staff-blank {
    width: 10%;
    position: sticky;
  }

  .times-wrap:last-child {
    /* border-bottom: 1px solid #E9EAEB; */
  }

  .times-wrap-blank {
    height: 65px;
    padding: 7.5px 15px;
    background-color: #fff;
    width: 10%;
  }

  .time-slot {
    padding: 5px 7.5px;
    border-top: 1px solid #E9EAEB;
    background-color: #fff;
    font-weight: 700;
    text-align: right;
    height: 55px;
    width: 100%;
  }

  .schedule-slot {
    padding: 5px 7.5px;
    height: 55px;
    background-color: #F6F8FA;
    position: relative;
    border-left: 1px solid #E9EAEB;
    width: var(--main-size);
  }

  .schedule-slot:empty {
    border-top: 1px solid #E9EAEB;
  }

  .schedule-slot:has(.closed):not(.booked) {
    border-top: 1px solid #E9EAEB;
  }

  .schedule-slot .closed {
    position: absolute;
    height: 100%;
    background-color: #fff;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    z-index: 9;
  }

  .schedule-slot .booked {
    position: absolute;
    height: 100%;
    background-color: #55EFC4;
    top: 0;
    bottom: 0;
    left: 5%;
    right: 5%;
    z-index: 99;
    width: 90%;
    height: 100%;

    .service-content-wrap {
      font-size: 12px;
      display: flex;
      text-align: center;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      align-content: center;
      height: 100%;

      .service {
        font-weight: 600;
      }

      .service-sep {
        padding: 0 5px;
      }

      .service-title {
        font-weight: 300;
      }
    }

  }

  .staff-blank {
    width: 10%;
  }

  .staff-inner-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    padding: 7.5px 15px;
  }

  .staffs-wrap {
    width: 100%;
  }

  .table-wrap {
    /* border-right: 1px solid #E9EAEB; */
    background-color: #F6F8FA;
  }

}

span.seprator {
  font-size: 20px;
}

span.month-selected {
  font-size: 20px;
}

.select-date-wrap {

  margin-top: 15px;
  margin-bottom: -15px;

  ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 0px;
    margin: 0px;
  }

  li:nth-child(2) {
    color: #002647;
    font-weight: 700;
    font-size: 22px;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
  }

  svg {
    height: 25px;
    width: 25px;
    fill: #002647;
    cursor: pointer;
  }

  svg:hover {
    fill: #00ADCB
  }

}

input#header-date-select {
  padding: 7px 10px;
  margin: 30px 15px -15px 0;
  cursor: pointer;
}

#header-date-select::-webkit-inner-spin-button,
#header-date-select::-webkit-calendar-picker-indicator {
  /* display: none;
    -webkit-appearance: none; */
  margin: 0;
  cursor: pointer;
}

#header-date-select::-webkit-datetime-edit {
  display: none;
}

.day {
  .day-short-selected {
    display: none;
  }
}

.inputs--upper-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  span {
    width: 100%;
  }
}

.inputs--lower-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 15px;

  span {
    width: 49%;
  }
}

.inputs--wrapper.inputs--checkbox-wrapper {
  display: flex;
  align-items: flex-start;
}

input#agree {
  margin-top: 5px;
  margin-right: 7.5px;
}

.inputs--wrapper {
  margin-bottom: 30px;
}

@media (max-width: 1200px) {
  .day {
    .day-short-selected {
      display: block;
    }

    .day-selected {
      display: none;
    }
  }
}

@media (max-width: 992px) {

  .dates-wrap {
    & .date-wrap {
      .month {
        font-weight: 700;
        font-size: 18px;
        margin-top: -5px;
      }
    }
  }

  .dates-wrap {
    gap: 0 15px;
  }

  span.month-selected {
    font-size: 14px;
  }
}

@media (max-width: 768px) {

  .dates-wrap {
    gap: 0 7.5px;
  }

  .inner-sche {
    .dates-wrap {
      .date-wrap {
        background-color: rgba(255, 255, 255, 0.3);
        color: #fff;
        text-align: center;
        padding: 15px 0;
        border-radius: 6px;
        -webkit-border-radius: 6px;
        -moz-border-radius: 6px;
        -ms-border-radius: 6px;
        -o-border-radius: 6px;
        width: 100%;
        margin: 0 5px;
        cursor: pointer;
        border: 0px;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
      }
    }
  }

  #schedule-app {
    & .date--items-wrap {
      label {
        background: #fff;
        border: 1px solid #F6F8FA;
        padding: 20px 2px;
        border-radius: 6px;
        width: 100%;
        height: 100%;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
        cursor: pointer;
        font-size: 12px;
      }
    }
  }

  .booking--page {
    .dates-wrap {
      .date-wrap {
        color: #002647;
        background-color: #fff;
        text-align: center;
        padding: 15px 4.5px;
      }
    }
  }

  #schedule-app {
    .date--items-wrap {
      width: 31% !important;
      font-size: 14px;
      margin: 7.5px 1% !important;
      margin-bottom: 15px;
    }
  }

}

.form-control {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--bs-body-bg);
  background-clip: padding-box;
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  height: 50px;
  border-color: #dee2e6 !important;
}

.form-control:focus {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: #002647;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(0, 38, 71, .0);
}

.inputs--wrapper label {
  color: #002647;
  font-weight: 700;
  margin-bottom: 5px;

  span {
    color: #FF6B6B;
  }
}

#schedule-app {

  margin-top: 45px;

  .calendar-wrap {
    border: 0px solid #fff;
    background-color: #fff;
    border-radius: 0px;
    margin-top: 30px;
  }

  .continue--btn {
    margin: -15px 0 30px 0;
  }

  .continue--btn,
  .submit--btn {
    width: 100%;
    background: rgb(0, 173, 203);
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    padding: 15px;
    border-radius: 36px;
    border: 0px;
  }

  .continue--btn:disabled,
  .continue--btn[disabled] {
    opacity: 0.3;
  }

  .right-section {
    text-align: right;
  }

  .left-section {
    display: flex;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;

    span {
      margin-left: 30px;
    }
  }

  .inputs--button-wrapper {
    margin-bottom: 30px;
  }

  .staff-wrapper {
    background-color: #F6F8FA;
    border: 1px solid #E9EAEB;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      -webkit-border-radius: 50%;
      -moz-border-radius: 50%;
      -ms-border-radius: 50%;
      -o-border-radius: 50%;
      object-fit: cover;
    }


  }

  .date--title {
    color: #002647;
    font-weight: 700;
    font-size: 18px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: left;
    border-bottom: 1px solid #F6F8FA;
    padding: 0 0 10px 0;
    margin: 0 0 15px 0;
  }

  .date--items-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    margin: 0 -0.5%;
  }

  .date-full--wrapper {
    margin-bottom: 15px;
  }

  .date--items-wrap {
    width: 19%;
    font-size: 14px;
    margin: 0 0.5%;
    margin-bottom: 15px;

    input[type="radio"] {
      visibility: hidden;
      width: 0px;
      height: 0px;
      -webkit-user-select: none;
      /* Safari */
      -ms-user-select: none;
      /* IE 10 and IE 11 */
      user-select: none;
      /* Standard syntax */
      cursor: pointer;
    }

    label {
      background: #F6F8FA;
      border: 1px solid #E9EAEB;
      padding: 20px 15px;
      border-radius: 6px;
      width: 100%;
      height: 100%;
      -webkit-user-select: none;
      /* Safari */
      -ms-user-select: none;
      /* IE 10 and IE 11 */
      user-select: none;
      /* Standard syntax */
      cursor: pointer;
    }

    input[type="radio"]:checked+label {
      background-color: #002647;
      color: #fff;
    }

  }

  .dates--wrapper {
    margin-bottom: 15px;
  }

}

.side-panel-wrap {
  iframe {
    width: 100%;
  }
}

/** UPDATED **/

.service-wrap-date:empty {
  display: none;
}

.service-wrap-date {
  font-size: 18px;
  font-weight: 700;
  display: block;
}

.zones-wrap {
  width: 90%;
  overflow: auto;
}

.calendar-wrap {

  border: 1px solid #E9EAEB;
  background-color: #fff;
  border-radius: 6px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;

  .table-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .table-schedule-wrap {
    display: flex;
  }

  .staffs-wrap {
    display: flex;
    justify-content: flex-end;
  }
}

.red-border {
  border-color: #e74c3c !important;
}

#modal_overlay {
  position: absolute !important;
}

#modal_overlay .modal_overlay--inner {
  max-height: 900px;
  max-width: 770px;
  overflow: auto;
  scrollbar-width: thin;
}

@media (max-width: 1400px) {
  .month {
    font-weight: 700;
    font-size: 22px;
    margin-top: -5px;
  }
}

/* L */
@media (max-width: 1200px) {}

/* M */
@media (max-width: 992px) {}

/* S */
@media (max-width: 768px) {
  #modal_overlay .modal_overlay--inner {
    width: 95% !important;
  }

  .calendar-wrap {
    .staff-wrapper {
      background-color: #F6F8FA;
      border: 1px solid #E9EAEB;
      padding: 30px;
      border-radius: 8px;
      margin-bottom: 30px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      flex-direction: column;
    }
  }

  #modal_overlay {
    position: fixed !important;
  }

  .booking--page .staff-wrapper .left-section {
    display: flex;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    justify-content: space-between;
    width: 100%;
  }

  .booking--page .staff-wrapper .right-section {
    text-align: left !important;
    width: 100%;
    margin: 30px 0 0 0;
  }

  .booking--page .dates-wrap {
    .date-wrap.active {
      background-color: #002647 !important;
      color: #fff !important;
    }
  }

  .booking--page .dates-wrap {
    & .date-wrap {
      .month {
        font-weight: 700;
        font-size: 15px !important;
        margin-top: -5px;
      }

      .day {
        font-weight: 600;
        font-size: 14px !important;
      }
    }
  }



}

/* XS */
@media (max-width: 576px) {}