/* Testimonials from crownbridge.com: slider (homepage, About Us), grid
   (Testimonials page) and the full-review popup.
   Icons: Font Awesome Free 6.5.2 (CC BY 4.0). */

.cbt-tm { position: relative; width: 100%; box-sizing: border-box; }
.cbt-tm *, .cbt-tm *::before, .cbt-tm *::after { box-sizing: inherit; }

.cbt-tm .cbt-tm-icon { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--cbt-tm-icon) center / contain no-repeat; mask: var(--cbt-tm-icon) center / contain no-repeat; }
.cbt-tm .cbt-tm-icon--star { --cbt-tm-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 576 512%22%3E%3Cpath d=%22M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z%22/%3E%3C/svg%3E"); }
.cbt-tm .cbt-tm-icon--prev { --cbt-tm-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 512 512%22%3E%3Cpath d=%22M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 73.4-73.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-128 128z%22/%3E%3C/svg%3E"); }
.cbt-tm .cbt-tm-icon--next { --cbt-tm-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 512 512%22%3E%3Cpath d=%22M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z%22/%3E%3C/svg%3E"); }

/* ---- Card ---- */

.cbt-tm .cbt-tm__card { display: block; height: 100%; padding: 40px 15px; background: #121212; color: #fff; text-decoration: none; box-shadow: none; cursor: pointer; transition: color 0.4s; }
.cbt-tm .cbt-tm__card:hover, .cbt-tm .cbt-tm__card:focus { color: #fff; }
/* Slider cards turn grey on hover, as on crownbridge.com (the grid does not). */
.cbt-tm--slider .cbt-tm__card:hover, .cbt-tm--slider .cbt-tm__card:focus-visible { color: #5e5e5e; }
/* Homepage look: light grey text. */
.cbt-tm--home .cbt-tm__card { color: #bababa; }
.cbt-tm--home .cbt-tm__card:hover, .cbt-tm--home .cbt-tm__card:focus-visible { color: #5e5e5e; }
.cbt-tm .cbt-tm__stars { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: 2px; font-size: 20px; line-height: 1; color: #fdce0b; }
.cbt-tm .cbt-tm__text,
.cbt-tm .cbt-tm__author { font-size: 14px; line-height: 1.857; letter-spacing: 0.02em; text-align: center; color: inherit; }
.cbt-tm .cbt-tm__text { margin: 1.357em 0 0; }
.cbt-tm .cbt-tm__author { margin: 1.929em 0 0; }

/* ---- Slider ---- */

.cbt-tm--slider { max-width: 500px; margin: 0 auto; }
.cbt-tm--slider .cbt-tm__list:not(.slick-initialized) .cbt-tm__item:not(:first-child) { display: none; }
.cbt-tm--slider .slick-track { display: flex; }
.cbt-tm--slider .slick-slide { height: auto; }
/* Slick makes either the card itself the slide or wraps it in two divs,
   depending on the version; these rules work for both. */
.cbt-tm--slider .slick-slide > div { height: 100%; }
.cbt-tm--slider .slick-initialized .cbt-tm__item { display: block !important; height: 100%; }
/* When the card is the slide itself, let the row stretch it (equal heights). */
.cbt-tm--slider .slick-initialized .cbt-tm__item.slick-slide { height: auto; }

.cbt-tm .cbt-tm__arrows { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.cbt-tm .cbt-tm__arrow { display: flex; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; background: #2a2a2a; font-size: 15px; line-height: 1; color: #6d6d6d; cursor: pointer; -webkit-appearance: none; appearance: none; transition: all 0.3s ease-in-out; }
.cbt-tm .cbt-tm__arrow i { display: block; width: 1px; height: 21px; background: #6d6d6d; transition: all 0.3s ease-in-out; }
.cbt-tm .cbt-tm__arrow:hover, .cbt-tm .cbt-tm__arrow:focus-visible { background: #5e5e5e; color: #fff; }
.cbt-tm .cbt-tm__arrow:hover i, .cbt-tm .cbt-tm__arrow:focus-visible i { background: #fff; }

@media (min-width: 992px) {
  .cbt-tm--slider { max-width: none; }
  .cbt-tm--slider .cbt-tm__list:not(.slick-initialized) { display: flex; justify-content: center; }
  .cbt-tm--slider .cbt-tm__list:not(.slick-initialized) .cbt-tm__item { display: block; width: calc(100% / 3); padding: 0 min(0.501vw, 8px); }
  .cbt-tm--slider .cbt-tm__list:not(.slick-initialized) .cbt-tm__item:nth-child(n + 4) { display: none; }
  .cbt-tm--slider .cbt-tm__list.slick-initialized { margin: 0 max(-0.501vw, -8px); }
  .cbt-tm--slider .slick-initialized .cbt-tm__item { padding: 0 min(0.501vw, 8px); }
  .cbt-tm--slider .cbt-tm__card { padding: min(3.321vw, 53px) min(3.759vw, 60px) min(2.694vw, 43px); }
  .cbt-tm--slider .cbt-tm__stars { justify-content: flex-start; font-size: min(1.5vw, 20px); }
  .cbt-tm--slider .cbt-tm__text,
  .cbt-tm--slider .cbt-tm__author { text-align: left; font-size: min(1.094vw, 14px); }
  .cbt-tm .cbt-tm__arrows { gap: min(2vw, 30px); margin-top: min(4vw, 61px); }
}

/* ---- Grid (Testimonials page) ---- */

.cbt-tm--grid { max-width: 650px; margin: 0 auto; }
.cbt-tm--grid .cbt-tm__item:not(:first-child) { margin-top: 20px; }

@media (min-width: 992px) {
  .cbt-tm--grid { max-width: none; }
  .cbt-tm--grid .cbt-tm__list { display: flex; flex-flow: row wrap; align-items: flex-start; gap: min(1.003vw, 16px); }
  .cbt-tm--grid .cbt-tm__item { width: calc((100% - 2 * min(1.003vw, 16px)) / 3); }
  .cbt-tm--grid .cbt-tm__item:not(:first-child) { margin-top: 0; }
  .cbt-tm--grid .cbt-tm__card { padding: min(3.321vw, 53px) min(2.506vw, 40px) min(2.694vw, 43px); }
  .cbt-tm--grid .cbt-tm__text,
  .cbt-tm--grid .cbt-tm__author { text-align: left; }
}

.cbt-tm .cbt-tm__pages { margin: 76px 0 0; }
.cbt-tm .cbt-tm__pages ul { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: 15px; margin: 0; padding: 0; list-style: none; }
.cbt-tm .cbt-tm__pages li { margin: 0; padding: 0; list-style: none; }
.cbt-tm .cbt-tm__pages li::before { display: none; }
.cbt-tm .cbt-tm__pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8em; min-height: 1.8em; padding: 0 0.4em; border-radius: 50em; font-size: 15px; line-height: 1; letter-spacing: 0.02em; color: #fff; text-decoration: none; }
.cbt-tm .cbt-tm__pages a.page-numbers:hover { background: #535353; color: #fff; }
.cbt-tm .cbt-tm__pages .page-numbers.current { background: #535353; color: #fff; }
.cbt-tm .cbt-tm__pages .page-numbers.prev,
.cbt-tm .cbt-tm__pages .page-numbers.next { padding: 0; }

.cbt-tm .cbt-tm__pages li.cbt-tm__line { display: block; flex: 0 0 26px; width: 26px; height: 1px; margin: 0; padding: 0; overflow: hidden; background: #4f4f4f; line-height: 0; font-size: 0; }

/* ---- Popup with the full review ---- */

.cbt-tm-dialog { width: 671px; max-width: calc(100% - 30px); max-height: calc(100% - 30px); margin: auto; padding: 72px 48px 40px; border: 0; border-radius: 0; background: #fff; color: #000; font-size: 16px; line-height: 1.7; text-align: center; overflow: auto; }
.cbt-tm-dialog::backdrop { background: rgba(11, 11, 11, 0.85); }
.cbt-tm-dialog .cbt-tm-dialog__close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; font-size: 28px; line-height: 44px; color: #333; cursor: pointer; }
.cbt-tm-dialog .cbt-tm-dialog__close:hover { color: #000; }
.cbt-tm-dialog .cbt-tm-dialog__stars { display: flex; justify-content: center; gap: 8px; font-size: 16px; line-height: 1; color: #231f20; }
.cbt-tm-dialog .cbt-tm-dialog__text { padding: 24px 0; }
.cbt-tm-dialog .cbt-tm-dialog__text p { margin: 0 0 1em; color: #000; }
.cbt-tm-dialog .cbt-tm-dialog__text p:last-child { margin-bottom: 0; }
.cbt-tm-dialog h3.cbt-tm-dialog__name { margin: 0; font-family: inherit; font-size: 20px; font-weight: 400; line-height: 1.7; letter-spacing: 3.4px; text-transform: uppercase; color: #000; }

@media (max-width: 600px) {
  .cbt-tm-dialog { padding: 56px 24px 32px; }
}

.cbt-tm-notice { padding: 12px 16px; border-left: 4px solid #d63638; background: #fff; color: #1d2327; font-size: 14px; }
