/* ================================================================ Calendar */

div.calendar-wrapper > * {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'twayfly';
  font-size: 62.5%;
}

div.calendar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  z-index: 1001;
}

div.calendar-area {
  position: absolute;
  top: 37%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1050px;
  padding: 8px 16px;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

div.calendar-header {
  height: 40px;
  font-size: 16px;
  position: relative;
  border-bottom: 1px solid #1376b5;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.calendar-header .calendar-action {
  font-size: 24px;
  color: #1376b5;
  cursor: pointer;
}

.calendar-header .calendar-action:hover {
  color: #003B4A;
}

div.calendar-close {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 0px solid #1f1f1f;
  font-size: 30px;
  top: 35%;
  right: 0;
  transform: translate(-2%, -50%);
  cursor: pointer;
}

div.calendar-body {
  width: 100%;
  display: flex;
  justify-content: center;
}

div.calstep2 {
  margin: 5px;
}
div.calstep2 h1 {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 0;
}

div.calstep2 ul {
  display: flex;
  justify-content: space-between;
}

div.calstep2 ul li {
  font-size: 14px;
  text-align: center;
  color: #1f1f1f;
  cursor: pointer;
  width: 40px;
  padding: 10px;
  border-radius: 5px;

}

div.calstep2 ul.chead li { margin: 3px; color: #6a6a6a; }
div.calstep2 ul.cbody li { margin: 3px; border: 1px solid #dedede; }

div.calstep2 ul.cbody li.active,
div.calstep2 ul.cbody li:hover {
  background-color: #1376b5;
  color: #fff;
}

div.calstep2 ul li.not-in-month { visibility: hidden; cursor: default; }
div.calstep2 ul li.disabled { background-color: #f8f8f8 !important; color: #eaeaea !important; cursor: no-drop; }
div.calstep2 ul li.today { border: 1px solid #1f1f1f; }
div.calstep2 ul li.endWeek:first-child { color: #ff4336; }
div.calstep2 ul li.endWeek:last-child { color: #1e88e5; }

div.calendar-footer {
  width: 100%;
  background-color: #fff;
  box-sizing: border-box;
  text-align: center;
}

div.calendar-footer .calendar-info {
  border-bottom: 1px solid #1f1f1f;
  width: 50%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
div.calendar-footer .calendar-info ul { flex: 1; margin: 5px; }
div.calendar-footer .calendar-info ul li { font-size: 1.1rem; padding: 8px 0;}
div.calendar-footer .calendar-info ul li.time-wrapper { display: flex; justify-content: space-between; align-items: center; }
div.calendar-footer .calendar-info ul li.time-wrapper > div { flex: 1; margin: 0 5px; }

div.calendar-footer div.calstep3 { padding: 10px 0; }

div.calendar-footer .btn {
  width: 50%;
  font-size: 16px;
  padding: 8px 0;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {

  div.calendar-wrapper {
    width: 100vw;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
  }

  div.calendar-area {
    position: fixed;
    width: 100vw;
    height: 100%;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 0;
    border-radius: 0px;
    box-shadow: none;

    background-color: #ffffff;

    display: grid;
    grid-template-rows: auto auto 1fr auto;
    grid-row-gap: .5rem;

    padding-bottom: unset;
  }

  div.calendar-area > .calendar-header { margin: 1rem 1rem 0 1rem; }
  div.calendar-area > .calendar-info { margin: 0 1rem 0 1rem;  }

  div.laclose {
    top: 15px;
    right: 15px;
    width: 20px;
  }

  div.calendar-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    padding: 1rem 1rem 1.6rem 1rem;
    border-bottom: 1px solid #003B4A;
  }

  div.calendar-info ul li {
    font-size: 1.6rem;
  }

  div.calendar-info ul li:nth-child(1) {
    color: #3a3a3a;
    text-align: center;
    padding: .8rem 0;
  }

  div.calendar-info .time-wrapper {
    display: flex;
    column-gap: .8rem;
  }

  div.calendar-info .time-wrapper .search-select { flex: 1; }


  div.calendar-body {
    height: calc( 100% - 2rem );
    overflow-y: auto;
    overflow-x: hidden;

    display: grid;
  }

  div.calstep2 h1 {
    font-size: 20px;
  }

  div.calstep2 ul.chead li {
    font-size: 14px;
  }

  div.calstep2 ul li {
    font-size: 16px;
    padding: 5px 0px;
  }

  div.calendar-footer {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0px -4px 6px rgba(200, 200, 200, 0.75);
  }

  div.calendar-footer  div.calstep3 {
    width: inherit;
    border-radius: 0px;
    box-shadow: none;
    background-color: transparent;
    padding: 1.6rem 0 2.4rem 0;
  }
  div.calendar-footer  div.calstep3 ul li:nth-child(1) {
    font-size: 1.6rem;
  }

  div.calendar-footer .calendar-info {
    width: 100%;
  }

}

/* ================================================================ Calendar End */
