/*
 * Shortcode: testimonials.scss
 * -----------------------------------------------
*/
.tm-sc-testimonials {
  .tm-testimonial {
    .testimonial-text-holder {
      .testimonial-title {
        font-size: 20px;
        color: $headings-color;
        font-family: $heading-font;
      }
      .author-text {
        font-size: 1.2rem;
        font-style: italic;
      }
      margin-bottom: 15px;
    }
    .testimonial-author-details {
      display: table;
      width: 100%;
      .testimonial-image-holder {
        width: 90px;
        display: table-cell;
        vertical-align: middle;
        margin: 0;
        padding-right: 15px;
        .author-thumb {
        }
      }
      .testimonial-author-info-holder {
        display: table-cell;
        vertical-align: middle;
        .name {
          color: #000;
          display: block;
        }
        .job-position, .company-url {
          color: #aaa;
          font-size: 0.9rem;
          font-weight: $font-weight-normal;
        }
        .job-position {
          font-family: $heading-font;
        }
        .company-url {
          font-style: italic;
        }
      }
    }
    @include star-rating-function();
    .star-rating {
      float: none;
      margin: 20px 0 0;
    }
  }

  &.testimonial-has-custom-quote-icon {
    .tm-testimonial {
      .author-text {
        &:before {
          content: "" !important;
        }
        .quote-icon {
          top: -20px;
          font-size: 48px;
          opacity: 0.15;
          line-height: 1;
          position: absolute;
          left: 0;
          right: 0;
          margin: 0 auto;
        }
      }
    }
    &.custom-quote-icon-center {
      .tm-testimonial {
        .author-text {
          .quote-icon {
            left: 0;
            right: 0;
            margin: 0 auto;
          }
        }
      }
    }
    &.custom-quote-icon-right {
      .tm-testimonial {
        .author-text {
          .quote-icon {
            left: auto;
            right: 0;
          }
        }
      }
    }
  }

  /* Style 1 - Simple */
  &.testimonial-simple {
    .tm-testimonial {
      .testimonial-text-holder {
        .author-text {
          font-style: normal;
          font-size: 22px;
        }
        .star-rating {
          float: none;
          margin: 20px 0 20px;
          display: inline-block;
        }
      }
      .testimonial-author-details {
        display: inline-block;
        .testimonial-image-holder {
          display: inline-block;
        }
      }
    }
  }


  /* Style 2 - Everything Center Aligned */
  &.testimonial-centered-aligned {
    .tm-testimonial {
      text-align: center;
      .testimonial-text-holder {
        .testimonial-title {
          font-size: 22px;
        }
        .author-text {
          font-size: 24px;
          font-style: normal;
        }
      }
      .testimonial-author-details {
        display: block;
        .testimonial-image-holder {
          display: block;
          margin: 30px auto 10px;
          padding: 0;
          .author-thumb {
          }
        }
        .testimonial-author-info-holder {
          display: block;
          .name {
          }
          .job-position, .company-url {
          }
          .company-url {
          }
        }
      }
      .star-rating {
        margin: 20px auto 0;
      }
    }
  }


  /* Style 3 - Classic */
  &.testimonial-classic {
    .tm-testimonial {
      .testimonial-inner {
        display: table;
        .testimonial-image-holder {
          display: table-cell;
          vertical-align: top;
          text-align: center;
          .author-thumb {
            margin-right: 20px;
            width: 90px;
          }
        }
        .testimonial-author-details {
          display: table-cell;
          vertical-align: top;
          width: 100%;
        }
      }
    }
  }


  /* Style 4 - Modern */
  &.testimonial-modern {
    .tm-testimonial {
      .testimonial-text-holder {
        background-color: rgba(255, 255, 255, 0.7);
        padding: 30px;
        .testimonial-title {
        }
        .author-text {
          font-size: 15px;
        }
      }
      .testimonial-author-details {
        .testimonial-image-holder {
          .author-thumb {
          }
        }
        .testimonial-author-info-holder {
          .name {
          }
          .job-position, .company-url {
          }
          .company-url {
          }
        }
      }
    }
  }


  /* Style 5 - Boxed */
  &.testimonial-boxed {
    .tm-testimonial {
      .testimonial-image-holder {
      }
      .testimonial-author-details {
        padding: 30px;
        background-color: #fff;
        border-radius: 12px;
        .testimonial-title {
          margin-top: 0;
        }
        .testimonial-text-holder {
          margin-bottom: 10px;
          padding-bottom: 20px;
          border-bottom: 1px solid #eee;
          .author-text {
            font-size: 15px;
            font-style: normal;
          }
        }
      }
    }
  }

  /* Style 6 - Boxed Flat */
  &.testimonial-boxed-flat {
    .tm-testimonial {
      .testimonial-image-holder {
      }
      .testimonial-author-details {
        .testimonial-text-holder {
          margin-bottom: 10px;
          padding-bottom: 10px;
          border-bottom: 1px solid #eee;
          .testimonial-title {
            margin-bottom: 0;
          }
          .author-text {
            margin-top: 10px;
            font-size: 16px;
          }
        }
      }
    }
  }

  &.tm-sc-testimonials-thumb-carousel {
    text-align: center;
    .tm-testimonial {
      .author-text {
        &:before {
          left: 0;
          right: 0;
        }
      }
      .star-rating {
        margin-left: auto;
        margin-right: auto;
      }
    }
    .tm-owl-thumbs {
      .tm-owl-thumb-item {
        width: 90px;
        margin-left: 7px;
        margin-right: 7px;
        margin-top: 20px;
        opacity: 0.5;
        display: inline-block;
        cursor: pointer;
        &.active {
          opacity: 1;
        }
      }
    }
  }

  /* quote-icon */
  &.testimonial-has-quote-icon {
    .tm-testimonial {
      .author-text {
        position: relative;
        &:before {
          top: 0;
          content: "\f10e";
          font-family: "Font Awesome 5 Free";
          font-weight: 600;
          font-size: 48px;
          opacity: 0.15;
          line-height: 1;
          position: absolute;
          left: 0;
        }
      }
    }
    &.testimonial-style2-centered-aligned {
      .tm-testimonial {
        .author-text {
          &:before {
            top: 0;
            left: 0;
            right: 0;
          }
        }
      }
    }
  }
}

.section-typo-light {
  .tm-sc-testimonials {
    .tm-testimonial {
      .testimonial-title,
      .author-text,
      .name {
        color: #fff !important;
      }
      .job-position, {
        color: #aaa !important;
      }
      .company-url {
        color: #808080 !important;
      }
    }
  }
}

body {
  &.tm-dark-layout {
    .tm-sc-testimonials {
      &.testimonial-style7-current-theme {
        .testimonial-author-details {
          background-color: $dark-layout-default-bg-color;
        }
      }
    }
  }
}