/**
 * Courses styles — extracted verbatim from the Avada child theme's style.css
 * so the [class-calendar] tables and single-course details look identical.
 *
 * NOTE: the single-course rules are scoped to `#content .post-content` to match
 * Avada's markup. If you move to a theme that doesn't use that wrapper, adjust
 * the `.course-details` / `.single_add_to_cart_button` selectors below.
 */

/* Classes/Courses styles */
.tab-content > .tab-pane {
  display: none;
}

.fade.in {
  opacity: 1;
}

.fade {
  opacity: 0;
  -webkit-transition: opacity .15s linear;
  -o-transition: opacity .15s linear;
  transition: opacity .15s linear;
}

.tab-content > .active {
  display: block;
}

/* --------- tables styles --------- */
#class-calendar {
  font-size: 12px;
}

#class-calendar .nav-tabs {
  padding: 0;
  margin: 0;
}

#class-calendar .nav-tabs > li {
  float: left;
  list-style-type: none;
  margin-bottom: -1px;
  margin-right: 4px;
}

#class-calendar .nav-tabs > li > a {
  display: block;
  text-decoration: none;
  font-size: 13px;
  position: relative;
  padding: 10px 15px;
  color: #4A4A4A;
  cursor: default;
  background-color: #EDEDED;
  border: 1px solid #D1D1D1;
  border-radius: 9px 9px 0 0;
}

#class-calendar .nav-tabs > li.active > a {
  background: white;
  border-bottom-color: white;
}

/* content */

#class-calendar .dataTables_wrapper {
  margin-top: 20px;
}

#class-calendar table.dataTable.no-footer {
  border-bottom: 1px solid #075696;
}

#class-calendar table.dataTable thead .sorting {
  color: #5B5D65;
}

#class-calendar table.dataTable thead th,
#class-calendar table.dataTable thead td,
#class-calendar table.dataTable thead th,
#class-calendar table.dataTable tbody td {
  padding: 10px 15px;
}

#class-calendar table.dataTable thead th {
  border-bottom: 1px solid #075696;
}

#class-calendar .tab-content {
  clear: both;
  padding: 20px;
  border: 1px solid #D1D1D1;
}

#class-calendar .tab-content table {
  min-width: 100%;
}

#class-calendar .tab-content h2 {
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin-top: 15px;
}

#class-calendar .tab-content .details a {
  display: block;
  color: white;
  background: #1980B6;
  border-radius: 3px;
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  border: 1px solid #005596;
  text-align: center;
}

#class-calendar .tab-content .details a:hover {
  background: #005596;
}

#class-calendar .tab-content .single-filter {
  display: inline-block;
  margin-right: 15px;
  width: 100%;
  position: relative;
}

#class-calendar .tab-content .single-filter label {
  font-family: Heebo, Arial, Helvetica, sans-serif;
  display: block;
  color: #5B5D65;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

#class-calendar .tab-content .single-filter .close-icon {
  display: block;
  width: 18px;
  height: 18px;
  position: absolute;
  border-radius: 50%;
  background: #D1D1D1;
  color: white;
  font-size: 10px;
  font-weight: bold;
  outline: none;
  border: none;
  right: 6px;
  bottom: 6px;
  padding: 0;
  margin: 0;
  line-height: 18px;
}

#class-calendar .tab-content .single-filter .close-icon:hover {
  background: #ee6b42;
}

#class-calendar .tab-content .single-filter input,
#class-calendar .tab-content .single-filter select {
  display: block;
  width: 100%;
  font-size: 14px;
}

#class-calendar .tab-content input[type=text] {
  padding: 8px 10px;
}

#class-calendar .tab-content .index-5,
#class-calendar .tab-content .index-6,
#class-calendar .dataTables_filter {
  display: none;
}

#class-calendar .tab-content table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before,
#class-calendar .tab-content table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
  left: -9px;
  top: 50%;
  margin-top: -7px;
}

/* Course Single */
#content .post-content .course-details {
  margin-bottom: 1em;
}

#content .post-content .course-details span {
  color: #918b8b;
  font-weight: 700;
}

#content .post-content .single_add_to_cart_button {
  background: #90c9e8;
  text-transform: uppercase;
  color: #105378;
  background-image: -webkit-gradient(linear, left bottom, left top, from(#5aabd6), to(#90c9e8));
  background-image: linear-gradient(to top, #5aabd6, #90c9e8);
  background-image: -webkit-linear-gradient(to top, #5aabd6, #90c9e8);
  background-image: -moz-linear-gradient(to top, #5aabd6, #90c9e8);
  background-image: -ms-linear-gradient(to top, #5aabd6, #90c9e8);
  background-image: -o-linear-gradient(to top, #5aabd6, #90c9e8);
  transition: all .2s;
  border-width: 0px;
  border-style: solid;
  border-color: #105378;
  border-radius: 25px;
  -webkit-transition: all .2s;
  -moz-transition: all .2s;
  -ms-transition: all .2s;
  -o-transition: all .2s;
  -webkit-border-radius: 25px;
  text-decoration: none;
  margin-bottom: 2em;
  display: block;
  max-width: 120px;
}

#content .post-content .single_add_to_cart_button:hover {
  background: #5aabd6;
  color: #105378;
  background-image: -webkit-gradient(linear, left bottom, left top, from(#90c9e8), to(#5aabd6));
  background-image: linear-gradient(to top, #90c9e8, #5aabd6);
  background-image: -webkit-linear-gradient(to top, #90c9e8, #5aabd6);
  background-image: -moz-linear-gradient(to top, #90c9e8, #5aabd6);
  background-image: -ms-linear-gradient(to top, #90c9e8, #5aabd6);
  background-image: -o-linear-gradient(to top, #90c9e8, #5aabd6);
  border-color: #105378;
}

/* Additional Information (flyer PDF) button — shares the cart button look but
   sized for the longer label. */
#content .post-content .ilr-course-flyer-button {
  background: #90c9e8;
  text-transform: uppercase;
  color: #105378;
  background-image: linear-gradient(to top, #5aabd6, #90c9e8);
  transition: all .2s;
  border: 0 solid #105378;
  border-radius: 25px;
  text-decoration: none;
  margin-bottom: 2em;
  display: inline-block;
  padding: 0 22px;
  line-height: 40px;
}

#content .post-content .ilr-course-flyer-button:hover {
  background: #5aabd6;
  color: #105378;
  background-image: linear-gradient(to top, #90c9e8, #5aabd6);
  border-color: #105378;
}

/* Meta box: flyer controls spacing */
.ilr-flyer-controls #ilr-flyer-filename {
  margin: 0 8px;
}

/* Media Queries */

@media screen and (min-width: 768px) {
  #class-calendar {
    font-size: 13px;
  }

  #class-calendar .nav-tabs > li > a {
    padding: 10px 20px;
    font-size: 16px;
  }

  #class-calendar .tab-content .single-filter {
    width: auto;
    min-width: 150px;
  }
}

@media screen and (min-width: 900px) {
  #class-calendar .tab-content h2 {
    font-size: 20px;
  }
}

@media screen and (min-width: 1200px) {
  #class-calendar {
    font-size: 14px;
  }
}

@media screen and (min-width: 1350px) {
  #class-calendar, #class-calendar .tab-content .single-filter input,
  #class-calendar .tab-content .single-filter select {
    font-size: 16px;
  }

  #class-calendar .tab-content .single-filter .close-icon {
    bottom: 9px;
  }

  #class-calendar .tab-content input[type=text],
  #class-calendar .tab-content .single-filter input,
  #class-calendar .tab-content .single-filter select {
    height: 36px;
  }
}
