.event-calendar-wrapper {
  margin: 0 auto;
}

.event-calendar-block {
  background: #f8f8f8;
  padding: 20px 15px;
  box-sizing: border-box;
}

.calendar-event-lists {
  display: none;
  padding: 30px 0 10px;
  margin: 30px 0 10px;
  border-top: 1px solid #dddd;
}

h1.calendar-title {
  font-size: 26px;
  line-height: 31px;
}

.calendar-header > h2 {
  font-size: 20px;
  line-height: 23px;
}

.calendar-pagination {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

table.calendar tr {
  display: table-row;
  padding: 0;
}

table.calendar thead tr {
  color: #fff;
  background-color: #8c4830;
}

table.calendar thead th {
  width: 14.28%;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
  padding: 8px 0;
}

table.calendar thead th span {
  display: none;
}

table.calendar thead th:last-child {
  border-right: 1px solid #d2d2d2;
}

table.calendar tbody td {
  width: 14.28%;
  vertical-align: top;
  box-sizing: border-box;
  border: 1px solid #d2d2d2;
  border-top: 0;
  border-right: 0;
  background: #ffffff;
  height: 50px;
}

table.calendar tbody td:last-child {
  border-right: 1px solid #d2d2d2;
}

table.calendar tbody td.calendar-day-np {
  background: #f3f3f3;
}

table.calendar tbody td .day-number {
  background: transparent;
  color: #333;
  text-align: center;
  font-size: 16px;
  padding: 5px;
  line-height: 1;
}

table.calendar tbody td.calendar-day-event:after {
  content: "";
  display: block;
  height: 8px;
  width: 8px;
  padding: 0;
  border-radius: 50%;
  background-color: #333;
  margin: 5px auto;
}

table.calendar tbody td.calendar-day-past {
  background: #f7f7f7;
  opacity: 0.6;
}

table.calendar tbody td.calendar-day-today {
  background: #d2d2d2;
  color: #fff;
}

table.calendar tbody td.calendar-day.active {
  background: #8c4830;
  color: #fff;
}

table.calendar tbody td.calendar-day.active .day-number {
  color: #fff;
}

table.calendar tbody td.calendar-day.active:after {
  background-color: #fff;
}

table.calendar .calendar-event {
  padding: 3px 8px;
  margin: 0 5px;
  border-bottom: 1px solid #d2d2d2;
  position: relative;
  display: none;
}

table.calendar .calendar-event:last-child {
  border-bottom: 0;
}

table.calendar .calendar-event > h3.event_title {
  font-size: 13px;
  line-height: 21px;
  margin: 10px 0;
}

table.calendar .calendar-event .event_tooltip {
  display: none;
}

table.calendar .calendar-event:hover .event_tooltip {
  display: block;
}

table.calendar .event_tooltip {
  position: absolute;
  left: 0;
  bottom: 65px;
  width: 320px;
  background: #fff;
  padding: 15px;
  box-shadow: 1px 3px 9px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

table.calendar .event_tooltip:after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
  clear: both;
}

table.calendar .event_tooltip h3.event_title {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 21px;
  color: #8c4830;
}

table.calendar .event_tooltip .event_date {
  font-size: 13px;
  line-height: 19px;
  margin: 0 0 10px 0;
  letter-spacing: 0;
  color: #777;
}

table.calendar .event_tooltip .event_thumbnail {
  float: left;
  max-width: 100px;
  margin: 0 10px 10px 0;
}

table.calendar .event_tooltip .event_description {
  font-size: 13px;
  line-height: 21px;
}

@media (min-width: 768px) {
  .event-calendar-block {
    padding: 50px 15px;
  }

  .calendar-event-lists {
    display: none !important;
  }

  h1.calendar-title {
    font-size: 28px;
    line-height: 33px;
    text-align: center;
    margin: 20px 0 30px;
  }

  .calendar-header > h2 {
    font-size: 23px;
    line-height: 27px;
  }

  table.calendar tbody td {
    height: 120px;
  }

  table.calendar tbody td .day-number {
    background-color: #e39f70;
    color: #fff;
    font-size: 13px;
    padding: 7px 10px;
    text-align: left;
  }

  table.calendar tbody td.calendar-day-past {
    background: none;
    opacity: 1;
  }

  table.calendar tbody td.calendar-day-today,
  table.calendar tbody td.calendar-day.active {
    background: #fff;
    color: #333;
  }

  table.calendar tbody td.calendar-day:hover {
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px;
  }

  table.calendar tbody td.calendar-day-today .day-number {
    background: #8c4830;
  }

  table.calendar td.calendar-day-past .day-number {
    background-color: #ccc;
  }

  table.calendar td.calendar-day-past .calendar-event > h3.event_title a {
    color: #ccc;
    font-weight: 300;
  }

  table.calendar tbody td.calendar-day-event:after {
    display: none;
  }

  table.calendar .calendar-event {
    display: block;
  }
}

