@import "mixins";

.ftm_review_content_wrapper {
  .ftm-reviews-content {
    padding: 25px 10px;
  }
}

div#ftm-reviews-top-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  border: 1px solid #f2f2f2;
  border-radius: 10px;
  box-shadow: 0px 0px 7px -1px #d6d6d6;
  padding: 9px 5px;
  width: 100%;
  background-color: #fff;

  > div {
    border-right: 1px solid #dedede94;
    padding-right: 17px;
    min-height: 46px;
    width: 50%;

    &:last-of-type {
      padding-right: 0px;
      border-right: none;
    }
  }

  .site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    align-content: center;

    > img {
      max-width: 100%;
    }
  }

  .site-bonus {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    min-width: 200px;
    line-height: 20px;

    .welcome-bonus-line-one {
      font-size: 19px;
      white-space: break-spaces;
      max-width: 90%;
      text-align: center;
      font-weight: 600;
      font-family: helvetica;
    }

    .welcome-bonus-line-two {
      font-size: 17px;
      white-space: break-spaces;
      max-width: 90%;
      text-align: center;
      font-weight: 600;
      font-family: helvetica;
    }
  }

  .site-rating {
    font-size: 1rem;
    height: 28px;
    position: relative;
    min-width: 140px;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    max-width: 200px;
    width: 100%;
    padding: 10px;

    .just-stars {
      font-size: 1.25rem;
      height: 28px;
      position: relative;
      display: block;
      width: 138px;

      .star-rating__overlay {
        background: url(/app/themes/ftm-base/assets/images/star-green.svg);
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        z-index: 4;
      }

      .star-rating__underlay {
        background-size: 28px;
        background: url(/app/themes/ftm-base/assets/images/star-green.svg);
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        filter: grayscale(1);
        width: 100%;
      }
    }
  }

  .site-button {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    min-width: 200px;

    > a.visit_button {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-content: center;
      justify-content: center;
      align-items: center;
      color: #fff;
      background-color: #57a636;
      text-decoration: none;
      border-radius: 10px;
      cursor: pointer;
      font-size: 17px;
      font-weight: 500;
      line-height: 20px;
      margin: 10px 0;
      width: 100%;
      max-width: 70%;
      overflow: hidden;
      padding: 12px;
      position: relative;
      text-align: center;
      text-decoration: none;
      text-transform: none;
      transition: all 0.3s ease-in-out;
      font-family: helvetica;

      &:hover {
        background-color: #3a445c;
        color: #fff;
      }
    }
  }
}

div#ftm-reviews-second-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  position: relative;

  > .left-panel {
    --swiper-navigation-color: #ffffff;
    --swiper-theme-color: #ffffff;
    --swiper-navigation-size: 25px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px;
  }

  > .right-panel {
    width: 100%;
    max-width: 100%;
    padding: 10px;

    .key-features-wrapper {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-content: flex-start;
      justify-content: center;
      align-items: flex-start;
      width: 100%;

      table.key-features-table {
        width: 100%;
        border: 1px solid #e2e1e1;
        table-layout: fixed;

        tr {
          td.key-feature-name {
            width: 150px;
            background-color: #dedede;
            height: 40px;
            padding: 0px 5px;
            font-family: helvetica;
            font-size: 0.9em;
            font-weight: 400;
            border: none;
          }

          td.key-feature-value {
            width: 100%;
            border: none;
            background-color: #f4f3f3;
            padding: 0px 5px;
            font-family: helvetica;
            font-size: 0.9em;
            font-weight: 100;
          }
        }
      }
    }
  }

  .swiper {
    width: 600px;
    max-height: 268px;

    .swiper-slide {
      > img {
        aspect-ratio: auto 16 / 9;
        max-width: 430px;
      }
    }
  }
}

@include xxs {
  div#ftm-reviews-top-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    min-height: 116px;

    &.sticky {
      position: sticky;
      top: 0;
      z-index: 2;
      &.top-80 {
        top: 80px;
      }
    }

    > div {
      border-right: 1px solid rgba(222, 222, 222, 0.5803921569);
      padding-right: 17px;
      min-height: 100px;
      width: 33%;
      box-sizing: border-box;

      &:last-of-type {
        padding-right: 0px;
        border-right: none;
      }
    }

    .site-logo {
      display: flex;

      > img {
        max-width: 100%;
      }
    }

    .site-bonus {
      display: flex;
      min-width: 165px;

      .welcome-bonus-line-one,
      .welcome-bonus-line-two {
        font-size: 16px;
      }
    }

    .site-rating {
      display: none;
    }

    .site-button {
      min-width: 150px;

      > a.visit_button {
        max-width: 130px;
      }
    }
  }

  div#ftm-reviews-second-bar {
    > .left-panel {
      --swiper-navigation-color: #b3b3b3;
      --swiper-theme-color: #b3b3b3;
      --swiper-navigation-size: 44px;

      .swiper-slide {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        align-items: center;
        object-fit: fill;
      }
    }
  }
}

@include sm {
  div#ftm-reviews-top-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    min-height: 116px;
    border: 1px solid #f2f2f2;
    border-radius: 10px;
    box-shadow: 0px 0px 7px -1px #d6d6d6;
    padding: 9px 5px;
    width: 100%;

    > div {
      border-right: 1px solid #dedede94;
      padding-right: 17px;
      min-height: 100px;
      width: 30%;

      &:last-of-type {
        padding-right: 0px;
        border-right: none;
      }
    }

    .site-logo {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      align-content: center;

      > img {
        max-width: 200px;
      }
    }

    .site-bonus {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      align-content: center;
      flex-wrap: nowrap;
      min-width: 200px;
      line-height: 20px;

      .welcome-bonus-line-one {
        font-size: 19px;
        white-space: break-spaces;
        max-width: 90%;
        text-align: center;
        font-weight: 600;
        font-family: helvetica;
      }

      .welcome-bonus-line-two {
        font-size: 17px;
        white-space: break-spaces;
        max-width: 90%;
        text-align: center;
        font-weight: 600;
        font-family: helvetica;
      }
    }

    .site-rating {
      font-size: 1rem;
      height: 28px;
      position: relative;
      min-width: 140px;
      display: flex;
      flex-direction: column;
      flex-wrap: nowrap;
      align-content: center;
      justify-content: center;
      align-items: center;
      max-width: 200px;
      width: 100%;
      padding: 10px;

      .just-stars {
        font-size: 1.25rem;
        height: 28px;
        position: relative;
        display: block;
        width: 138px;

        .star-rating__overlay {
          background: url(/app/themes/ftm-base/assets/images/star-green.svg);
          height: 100%;
          left: 0;
          position: absolute;
          top: 0;
          z-index: 4;
        }

        .star-rating__underlay {
          background-size: 28px;
          background: url(/app/themes/ftm-base/assets/images/star-green.svg);
          height: 100%;
          left: 0;
          position: absolute;
          top: 0;
          filter: grayscale(1);
          width: 100%;
        }
      }
    }

    .site-button {
      display: flex;
      flex-direction: column;
      align-content: center;
      justify-content: center;
      align-items: center;
      min-width: 150px;

      > a.visit_button {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        align-items: center;
        color: #fff;
        background-color: #57a636;
        text-decoration: none;
        border-radius: 10px;
        cursor: pointer;
        font-size: 17px;
        font-weight: 500;
        line-height: 20px;
        margin: 10px 0;
        width: 100%;
        max-width: 190px;
        overflow: hidden;
        padding: 12px;
        position: relative;
        text-align: center;
        text-decoration: none;
        text-transform: none;
        transition: all 0.3s ease-in-out;
        font-family: helvetica;

        &:hover {
          background-color: #3a445c;
          color: #fff;
        }
      }
    }
  }

  div#ftm-reviews-second-bar {
    > .left-panel {
      max-width: 50%;
    }

    > .right-panel {
      max-width: 50%;
    }
  }
}

@include md {
  div#ftm-reviews-second-bar {    
    > .right-panel {
      .key-features-wrapper {  
        table.key-features-table {  
          tr {
            td.key-feature-name {
              width: 200px;
            }
          }
        }
      }
    }
  }
}
