

/* =====================================================
   SETTINGS
===================================================== */

.tt-slider-wrap {
  --tt-card-height: 260px;
  --tt-gap: 18px;

  width: 100%;
}


/* =====================================================
   SLIDER
   EXACTLY 3 CARDS VISIBLE
===================================================== */

.tt-review-slider {
  position: relative;

  width: 100%;

  height: calc(
    (var(--tt-card-height) * 3) +
    (var(--tt-gap) * 2)
  );

  overflow: hidden;

  box-sizing: border-box;
}


/* =====================================================
   TRACK
===================================================== */

.tt-review-track {
  width: 100%;

  animation:
    ttMoveReviews 70s linear infinite;

  will-change: transform;
}


/* pause when hovering */

.tt-review-slider:hover .tt-review-track {
  animation-play-state: paused;
}


/* =====================================================
   REVIEW SET
===================================================== */

.tt-review-set {
  display: flex;
  flex-direction: column;

  gap: var(--tt-gap);

  padding-bottom: var(--tt-gap);

  box-sizing: border-box;
}


/* =====================================================
   CARD
===================================================== */

.tt-review-card {
  position: relative;

  width: 100%;
  height: var(--tt-card-height);

  flex: 0 0 var(--tt-card-height);

  padding: 22px 28px;

  background: #ffffff;

  border: 1px solid #d5dde7;
  border-radius: 18px;

  box-shadow:
    0 3px 4px rgba(16, 43, 82, 0.03),
    0 8px 18px rgba(16, 43, 82, 0.06);

  box-sizing: border-box;

  overflow: hidden;

  font-family: Arial, sans-serif;
}


/* =====================================================
   TOP
===================================================== */

.tt-card-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 13px;
}


.tt-badge {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 6px 13px;

  background: #102b52;
  color: #ffffff;

  border-radius: 100px;

  font-size: 11px;
  line-height: 1;
  font-weight: 700;

  letter-spacing: .7px;
}


.tt-stars {
  color: #f3752d;

  font-size: 18px;

  line-height: 1;

  letter-spacing: 1px;
}


/* =====================================================
   USER
===================================================== */

.tt-reviewer-row,
.tt-modal-user {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 10px;
}


.tt-reviewer-row h3,
.tt-modal-user h3 {
  margin: 0 0 4px;

  color: #142c4e;

  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}


.tt-hired {
  display: flex;

  align-items: center;

  gap: 6px;

  color: #586d85;

  font-size: 12px;
  line-height: 1.3;
}


.tt-check {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;

  color: #16a7d8;

  border: 2px solid #16a7d8;
  border-radius: 100px;

  font-size: 9px;
  font-weight: 700;

  box-sizing: border-box;
}


.tt-date {
  flex-shrink: 0;

  color: #65768a;

  font-size: 12px;
  line-height: 1.3;

  white-space: nowrap;
}


/* =====================================================
   REVIEW
===================================================== */

.tt-review-content {
  position: relative;

  margin-bottom: 9px;
}


.tt-review-text {
  display: -webkit-box;

  margin: 0;

  overflow: hidden;

  color: #243b5c;

  font-size: 14px;
  line-height: 1.45;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  line-clamp: 3;
}


/* =====================================================
   VIEW MORE
===================================================== */

.tt-view-more {
  display: none;

  margin-top: 4px;
  padding: 0;

  background: transparent;

  border: 0;

  color: #0877b9;

  font-family: inherit;
  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
}


.tt-view-more:hover {
  text-decoration: underline;
}


/* =====================================================
   DETAILS
===================================================== */

.tt-details {
  display: -webkit-box;

  margin: 0 0 6px;

  overflow: hidden;

  color: #65768a;

  font-size: 11px;
  line-height: 1.4;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  line-clamp: 2;
}


.tt-service {
  margin: 0;

  color: #78879a;

  font-size: 11px;
  line-height: 1.35;
}


/* =====================================================
   ANIMATION
===================================================== */

@keyframes ttMoveReviews {

  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }

}


/* =====================================================
   MODAL
===================================================== */

.tt-modal {
  position: fixed;

  inset: 0;

  z-index: 999999;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  visibility: hidden;

  opacity: 0;

  transition:
    opacity .25s ease,
    visibility .25s ease;

  box-sizing: border-box;
}


.tt-modal.tt-open {
  visibility: visible;

  opacity: 1;
}


.tt-modal-overlay {
  position: absolute;

  inset: 0;

  background: rgba(9, 24, 45, .64);

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}


.tt-modal-box {
  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 650px;

  max-height: 80vh;

  overflow-y: auto;

  padding: 32px;

  background: #ffffff;

  border: 1px solid #d5dde7;
  border-radius: 20px;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, .20);

  box-sizing: border-box;

  font-family: Arial, sans-serif;
}


.tt-modal-close {
  position: absolute;

  top: 13px;
  right: 16px;

  width: 34px;
  height: 34px;

  padding: 0;

  background: #f2f5f8;

  border: 0;
  border-radius: 50%;

  color: #102b52;

  font-size: 24px;
  line-height: 32px;

  cursor: pointer;
}


.tt-modal-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding-right: 40px;

  margin-bottom: 23px;
}


.tt-modal-user {
  padding-bottom: 17px;

  border-bottom: 1px solid #e1e6ed;

  margin-bottom: 18px;
}


.tt-modal-review {
  margin: 0 0 25px;

  color: #243b5c;

  font-size: 15px;
  line-height: 1.65;
}


.tt-thumbtack-link {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 12px 21px;

  background: #102b52;
  color: #ffffff !important;

  border-radius: 100px;

  text-decoration: none !important;

  font-size: 13px;
  font-weight: 700;
}


/* =====================================================
   TABLET
===================================================== */

@media only screen and (max-width: 767px) {

  .tt-slider-wrap {
    --tt-card-height: 255px;
    --tt-gap: 14px;
  }

  .tt-review-card {
    padding: 20px;
  }

  .tt-review-text {
    font-size: 13px;

    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media only screen and (max-width: 480px) {

  .tt-slider-wrap {
    --tt-card-height: 245px;
    --tt-gap: 12px;
  }

  .tt-review-card {
    padding: 17px;

    border-radius: 15px;
  }

  .tt-card-top {
    margin-bottom: 10px;
  }

  .tt-badge {
    padding: 5px 10px;

    font-size: 9px;
  }

  .tt-stars {
    font-size: 15px;

    letter-spacing: 0;
  }

  .tt-reviewer-row h3 {
    font-size: 14px;
  }

  .tt-hired,
  .tt-date {
    font-size: 10px;
  }

  .tt-review-text {
    font-size: 12px;
    line-height: 1.4;

    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .tt-details,
  .tt-service {
    font-size: 10px;
  }

  .tt-modal {
    padding: 12px;
  }

  .tt-modal-box {
    padding: 25px 20px;

    border-radius: 16px;
  }

}


/* prevent background scrolling when popup open */

body.tt-modal-active {
  overflow: hidden;
}

