/* widget_calendar */
.calendar_wrap {
  width: 100%;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.widget_calendar {
  table {
    margin: 0;
    position: relative;
    text-align: center;

    //experiment
    display: flex;
    flex-direction: column;

    td, th{
      border: none;
    }
  }

  caption {
    line-height: 1;
    padding: 21px 0;
    text-align: center;
    color: $lightColor;
    background-color: $colorMain;
    font-size: 20px;
    font-weight: 600;
  }
  thead {
    background-color: $colorMain2;
    color: $lightColor;
    text-transform: capitalize;

    th {
      &:first-child {
        padding-left: 30px;
      }
      &:last-child {
        padding-right: 30px;
      }
      text-align: center;
      width: 100px;
    }

    @media (max-width: 575px) {
      th{
        padding: 18px 4px;
        font-size: 12px;
        &:first-child{
          padding-left: 10px;
        }
        &:last-child{
          padding-right: 10px;
        }
      }
    }
  }

  tbody {
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 500;
    tr {

      &:first-child {
        td {
          padding-top: 32px;
        }
      }
      &:last-child {
        td {
          padding-bottom: 32px;
        }
      }
    }
    td {
      padding: 11px 4px;
      position: relative;
      width: 100px;
      &:first-child {
        padding-left: 30px;
      }
      &:last-child {
        padding-right: 30px;
      }
      &.pad{
        color: lighten($fontColor, 20%);
      }
      a {
        color: $colorMain;
      }
    }
  }

  th {
    color: inherit;
  }

  tfoot {
    td {
      position: absolute;
      top: 0;
      a {

        text-align: center;
        height: 60px;
        line-height: 60px;
        display: inline-block;
        padding: 0 25px;
        font-size: 0;
        color: transparent;
        &:hover {
          opacity: 0.4;
        }
        &:before,
        &:after {
          color: $lightColor;
          font-size: 12px;
          font-family: "Font Awesome 5 Free", sans-serif;
          font-weight: 900;
        }
      }
      &.pad {
        display: none;
      }
    }

    //prev
    td:first-child {
      left: 0;
      padding: 0;
      a {
        &:before {
          content: '\f053';
        }
      }
    }
    //next
    td:last-child {
      right: 0;
      padding: 0;
      a {
        &:after {
          content: '\f054';
        }
      }
    }
  }
}