/* Infinite Google review carousel, visually aligned with the Borgman Digital UI. */
.bd-review-grid {
  grid-template-columns: 1fr;
}

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

.bd-review-carousel.is-ready .bd-review-viewport {
  margin: -14px;
  overflow: hidden;
  padding: 14px;
  width: calc(100% + 28px);
}

.bd-review-carousel.is-ready .bd-review-grid {
  align-items: stretch;
  display: flex;
  gap: 24px;
  grid-template-columns: none;
  transform: translate3d(0, 0, 0);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.bd-review-carousel.is-ready .bd-review-grid.is-jumping {
  transition: none;
}

.bd-review-carousel.is-ready .bd-review-card {
  background: #fff;
  border: 1px solid #d8e4f0;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(11, 31, 58, 0.08);
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 0;
  padding: 26px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.bd-review-carousel .bd-review-card::before,
.bd-review-carousel .bd-review-card::after {
  content: none;
}

.bd-review-carousel .bd-review-card:hover {
  border-color: #bfd2e7;
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.11);
}

.bd-review-carousel .bd-review-card-top {
  border-bottom: 1px solid #e4ebf3;
  padding-bottom: 18px;
}

.bd-review-carousel .bd-review-source-badge {
  background: #f0f5fc;
  border-color: #d5e1ef;
  color: #31527d;
}

.bd-review-carousel .bd-review-text {
  align-content: start;
  column-gap: 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  margin-bottom: 26px !important;
  margin-top: 24px !important;
}

.bd-review-carousel .bd-review-text::before {
  content: none;
}

.bd-review-carousel .bd-review-quote-mark {
  align-items: center;
  background: var(--bd4-blue-soft);
  border: 1px solid #d2e2fa;
  border-radius: 12px;
  color: var(--bd4-blue);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.bd-review-carousel .bd-review-quote-mark svg {
  display: block;
  fill: currentColor;
  height: 20px;
  width: 20px;
}

#top .bd-review-carousel .bd-review-text p {
  grid-column: 2;
}

.bd-review-carousel .bd-review-card footer {
  border-top-color: #e4ebf3;
}

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

#top .bd-review-carousel .bd-review-source-link {
  background: var(--bd4-blue-soft);
  border: 1px solid #d2e2fa;
  border-radius: 999px;
  min-height: 40px;
  padding: 6px 11px;
  text-decoration: none;
}

.bd-review-controls {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.bd-review-controls[hidden],
.bd-review-arrow[hidden] {
  display: none !important;
}

.bd-review-navigation {
  align-items: center;
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 132px;
}

#top .bd-review-arrow {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid #c9d8ea;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.08);
  color: var(--bd4-blue-dark);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 21px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  width: 46px;
}

#top .bd-review-arrow:hover {
  background: var(--bd4-blue-soft);
  border-color: #9ebbe8;
  box-shadow: 0 10px 24px rgba(31, 94, 234, 0.14);
  color: var(--bd4-navy);
  transform: translateY(-1px);
}

#top .bd-review-arrow:focus-visible,
#top .bd-review-dot:focus-visible {
  outline: 3px solid rgba(31, 94, 234, 0.28);
  outline-offset: 2px;
}

#top .bd-review-position {
  color: var(--bd4-muted) !important;
  font-size: 13px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.25 !important;
  margin: 0 !important;
  text-align: center;
}

.bd-review-dots {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 26px;
}

#top .bd-review-dot {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 25px;
}

#top .bd-review-dot::before {
  background: #c7d4e3;
  border-radius: 999px;
  content: '';
  height: 7px;
  transition: background-color 180ms ease, box-shadow 180ms ease, width 180ms ease;
  width: 7px;
}

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

#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 {
    padding: 23px 21px;
  }

  .bd-review-carousel .bd-review-text {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .bd-review-carousel .bd-review-quote-mark {
    border-radius: 10px;
    height: 34px;
    width: 34px;
  }

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

  .bd-review-controls {
    gap: 8px;
  }

  .bd-review-navigation {
    min-width: 120px;
  }

  #top .bd-review-arrow {
    height: 44px;
    width: 44px;
  }
}

@media only screen and (min-width: 768px) {
  .bd-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-review-carousel.is-ready .bd-review-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media only screen and (min-width: 1024px) {
  .bd-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bd-review-carousel.is-ready .bd-review-card {
    flex-basis: calc((100% - 48px) / 3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-review-carousel.is-ready .bd-review-grid,
  .bd-review-carousel .bd-review-card {
    transition-duration: 0.01ms;
  }
}
