.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
}

.modal.active {
  z-index: 9999;
  opacity: 1;
  visibility: visible;
}

.modal-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-box {
  position: relative;
  margin: 0px auto;
  background: #fff;
  width: 340px;
  max-width: calc(100% - 40px);
  border-radius: 5px;
  padding-bottom: 5px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-box .btn-close {
  position: absolute;
  background: url(../img/icons/icon-x-w.svg) 50% 50% no-repeat;
  background-size: 16px auto;
  width: 24px;
  height: 24px;
  right: 0;
  top: -30px;
  text-indent: -9999em;
  overflow: hidden;
  display: block;
}

#timetableModal .modal-box-header {
  padding: 16px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
}

#timetableModal .modal-box-header h1 {
  background: url(../img/icons/icon-freshbread.png) 0 0 no-repeat;
  background-size: 50px auto;
  height: 50px;
  box-sizing: border-box;
  padding-left: 60px;
  padding-top: 4px;
  font-size: 16px;
  line-height: 1.325;
  color: #111;
  margin-bottom: 10px;
  margin-top: -4px;
}

#timetableModal .modal-box-header p {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

#timetableModal .modal-box-header .days {
  font-size: 0;
  margin: 0 -5px;
}

#timetableModal .modal-box-header .days a {
  width: 34px;
  height: 34px;
  font-size: 14px;
  color: #666666;
  background: #ebebeb;
  line-height: 36px;
  text-align: center;
  display: inline-block;
  border-radius: 50%;
  margin: 0 5px;
}

#timetableModal .modal-box-header .days a.active {
  background: rgba(2, 53, 134, 0.15);
  color: #023586;
  font-weight: 700;
}

#timetableModal .modal-box-body {
  padding: 16px;
  box-sizing: border-box;
  height: 390px;
  max-height: 390px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#timetableModal .timetable-per-day {
  display: none;
}

#timetableModal .timetable-per-day.active {
  display: block;
}

#timetableModal .timetable-block {
  margin-bottom: 30px;
}

#timetableModal .timetable-block:last-child {
  margin-bottom: 0;
}
#timetableModal .timetable-block .time {
  border-bottom: 2px solid #888;
  padding-bottom: 12px;
}
#timetableModal .timetable-block .time span {
  line-height: 32px;
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  padding: 0 14px;
  background: #ebebeb;
  display: inline-block;
  border-radius: 40px;
}

#timetableModal .timetable-block .product-item {
  border-bottom: 1px solid #ebebeb;
  padding: 18px 0 10px;
  position: relative;
  padding-left: 62px;
  min-height: 70px;
  box-sizing: border-box;
}

#timetableModal .timetable-block .product-item:last-child {
  margin-bottom: 0;
}

#timetableModal .timetable-block .product-item .tb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #ebebeb;
  overflow: hidden;
  position: absolute;
  top: 10px;
  left: 0;
}

#timetableModal .timetable-block .product-item .tb2 {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 10px;
  right: 0;
}

#timetableModal .timetable-block .product-item .tb img {
  width: 50px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#timetableModal .timetable-block .product-item .product-meta {
  color: #333333;
  letter-spacing: -0.025em;
}

#timetableModal .timetable-block .product-item .product-meta .name {
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.2;
}
#timetableModal .timetable-block .product-item .product-meta .price {
  font-size: 12px;
  font-weight: 900;
}

#timetableModal .timetable-block.active .time span {
  background: rgba(2, 53, 134, 0.15);
  color: #023586;
  font-weight: 700;
}

@media screen and (max-width: 480px) {
  #timetableModal .modal-box-body {
    height: calc(100vh - 240px);
  }
}
@media screen and (max-width: 320px) {
  .modal-box {
    width: 310px;
  }
}

.modal-box {
  padding-bottom: 0;
}
.layerBtn {
  display: block;
  height: 60px;
  text-align: center;
  background: #023586;
  line-height: 60px;
  font-size: 18px;
  color: #fff;
}