/* Review cards v4: author-first layout with an integrated rating and soft quote panel. */
.bd-review-carousel.is-ready .bd-review-grid {
  transition: none;
}

.bd-review-carousel.is-ready .bd-review-grid.is-css-animating {
  transition: transform 760ms cubic-bezier(0.2, 0.78, 0.22, 1) !important;
}

.bd-review-carousel.is-ready .bd-review-card {
  background: linear-gradient(155deg, #fff 0%, #fff 72%, #f8fbff 100%);
  border: 1px solid #d9e5f1;
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(11, 31, 58, 0.07), 0 2px 7px rgba(11, 31, 58, 0.035);
  min-height: 360px;
  padding: 27px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.bd-review-carousel .bd-review-card:hover {
  border-color: #b9cfe6;
  box-shadow: 0 23px 58px rgba(11, 31, 58, 0.105), 0 3px 9px rgba(11, 31, 58, 0.04);
  transform: translateY(-3px);
}

.bd-review-carousel .bd-review-card-top {
  align-items: flex-start;
  border: 0;
  gap: 14px;
  padding: 0;
}

.bd-review-person {
  align-items: flex-start;
  display: flex;
  gap: 13px;
  min-width: 0;
}

.bd-review-avatar {
  align-items: center;
  background: linear-gradient(145deg, #eaf3ff 0%, #dce9ff 100%);
  border: 1px solid #cbdcf4;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 5px 13px rgba(31, 94, 234, 0.08);
  color: var(--bd4-blue-dark);
  display: inline-flex;
  flex: 0 0 46px;
  font-size: 13px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  letter-spacing: 0.025em;
  line-height: 1;
}

.bd-review-carousel .bd-review-author {
  min-width: 0;
}

.bd-review-carousel .bd-review-author strong {
  font-size: 16px;
  line-height: 1.3;
}

#top .bd-review-carousel .bd-review-author strong a {
  color: var(--bd4-navy) !important;
  text-decoration-color: #b6cbe2;
  text-underline-offset: 3px;
}

.bd-review-carousel .bd-review-author time {
  font-size: 12.5px;
  line-height: 1.35;
  margin-top: 3px;
}

.bd-review-carousel .bd-review-source-badge {
  align-items: center;
  background: #f6f9fd;
  border: 1px solid #dce6f0;
  color: #4b6078;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  letter-spacing: 0;
  margin-top: 1px;
  padding: 6px 9px 6px 7px;
  text-transform: none;
}

.bd-review-google-mark {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 50%;
  color: #4285f4;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.bd-review-card-rating {
  align-items: center;
  border: 0;
  display: flex;
  margin-top: 8px;
  min-height: 0;
  padding: 0;
}

.bd-review-card-rating .bd-review-stars {
  font-size: 16px;
  letter-spacing: 1px;
}

.bd-review-carousel .bd-review-text {
  align-content: start;
  background: linear-gradient(145deg, #f5f9ff 0%, #f8fbff 100%);
  border: 1px solid #e2ebf5;
  border-radius: 18px;
  column-gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  margin-bottom: 16px !important;
  margin-top: 23px !important;
  padding: 20px 20px 21px;
}

.bd-review-carousel .bd-review-quote-mark {
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--bd4-blue);
  height: 27px;
  justify-content: flex-start;
  opacity: 0.92;
  padding-top: 1px;
  width: 27px;
}

.bd-review-carousel .bd-review-quote-mark svg {
  height: 22px;
  width: 22px;
}

#top .bd-review-carousel .bd-review-text p {
  font-size: 16px !important;
  line-height: 1.66 !important;
}

.bd-review-carousel .bd-review-original {
  border-top: 0;
  margin-bottom: 10px;
  padding-top: 0;
}

.bd-review-carousel .bd-review-card footer {
  border: 0;
  gap: 0;
  justify-content: flex-end;
  padding-top: 0;
}

#top .bd-review-carousel .bd-review-source-link {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 9px;
  min-height: 38px;
  padding: 5px 0 5px 8px;
  transition: color 160ms ease;
}

.bd-review-source-arrow {
  align-items: center;
  background: #eaf2ff;
  border: 1px solid #d2e1f8;
  border-radius: 50%;
  display: inline-flex;
  font-size: 13px;
  height: 28px;
  justify-content: center;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 28px;
}

#top .bd-review-carousel .bd-review-source-link:hover .bd-review-source-arrow {
  background: #dfeaff;
  border-color: #b8cff1;
  transform: translate(1px, -1px);
}

#top .bd-review-dot::before {
  background: #c8d4e2;
}

#top .bd-review-arrow:disabled,
#top .bd-review-arrow:disabled:hover {
  background: #f7f9fc;
  border-color: #d9e2ec;
  box-shadow: none;
  color: #9aabbf;
  cursor: default;
  opacity: 0.72;
  transform: none;
}

#top .bd-review-dot.is-visible::before {
  background: #c8d4e2;
}

#top .bd-review-dot.is-current::before {
  background: var(--bd4-blue);
  box-shadow: 0 0 0 4px rgba(31, 94, 234, 0.1);
  width: 18px;
}

@media only screen and (max-width: 479px) {
  .bd-review-carousel.is-ready .bd-review-card {
    min-height: 370px;
    padding: 22px 20px;
  }

  .bd-review-carousel .bd-review-card-top {
    gap: 9px;
  }

  .bd-review-person {
    gap: 10px;
  }

  .bd-review-avatar {
    border-radius: 13px;
    flex-basis: 42px;
    height: 42px;
  }

  .bd-review-carousel .bd-review-source-badge {
    padding: 5px 7px 5px 5px;
  }

  .bd-review-carousel .bd-review-source-badge > span:last-child {
    display: none;
  }

  .bd-review-carousel .bd-review-text {
    border-radius: 16px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 18px 16px 19px;
  }

  .bd-review-carousel .bd-review-quote-mark,
  .bd-review-carousel .bd-review-quote-mark svg {
    height: 20px;
    width: 20px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .bd-review-carousel .bd-review-card-top {
    min-height: 78px;
  }
}
