
@import "../tfl-lib";

/* ---------------------------------------- Testimonials --------------------------------------- */


.tfl-testimonials {
  clear: both;

  .tfl-testimonial {
    margin-bottom: 20px;
  }

  .tfl-testimonial-text {
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 30px;
    text-align: center;
    position: relative;
    padding: 20px 20px 10px;
    margin-bottom: 40px;
    font-style: italic;
    font-size: 15px;
    line-height: 24px;
    color: #888;

    .tfl-dark-bg & {
      color: #666;
      background: #eee;
    }

    &:after {
      content: '';
      display: block;
      background: #fff;
      border-left: 1px solid #dbdbdb;
      border-bottom: 1px solid #dbdbdb;
      background: #ffffff;
      transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      transform: skew(0deg, -44deg);
      width: 24px;
      height: 24px;
      position: absolute;
      bottom: -12px;
      left: 40px;
      margin: auto;

      .rtl & {
        left: auto;
        right: 40px;
      }

      .tfl-dark-bg & {
        background: #eee;
      }
    }

    text-align: center;
    max-width: 450px;
  }

  .tfl-testimonial-user {
    display: table;

    .tfl-image-wrapper {
      display: table-cell;

      img {
        max-width: 64px;
        border-radius: 50%;
        margin-right: 20px;

        .rtl & {
          margin: 0 0 0 20px;
        }
      }
    }

    .tfl-text {
      display: table-cell;
      vertical-align: middle;
      color: #888;

      .tfl-dark-bg & {
        color: #909090;
      }

      .tfl-author-name {
        @include tfl-heading-style();
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 5px;
        color: #333;

        .tfl-dark-bg & {
          color: #e5e5e5;
        }
      }
    }
  }
}
