/* ── Base Testimonial ───────────────────────────────────────────────────────
 *
 * Auto-rotating single-card testimonial carousel with prev/next arrows, fill
 * dot indicators, pause-on-hover, keyboard + swipe support. Purely presentational
 * carousel mechanics - the markup and data come from whatever includes it, today
 * html/web/components/testimonials.jinja2 (Google / Play / App Store reviews).
 *
 * Usage: {{ require_component("testimonial") }}, or include the shared partial.
 *
 * CSS custom properties (set on .base-testimonial to re-skin per project):
 *   --testimonial-bg          card background (default: var(--card-bg))
 *   --testimonial-border      card border (default: var(--border-color))
 *   --testimonial-ink         quote colour (default: var(--text-color))
 *   --testimonial-muted       caption meta colour (default: var(--muted-text))
 *   --testimonial-accent      focus + active dot colour (default: var(--primary-blue))
 *   --testimonial-star        star colour (default: #F59E0B)
 *   --testimonial-nav-bg      arrow button background (default: transparent)
 *   --testimonial-nav-ink     arrow glyph colour (default: var(--text-color))
 *   --testimonial-avatar-bg   avatar tile background (default: var(--primary-blue))
 *   --testimonial-avatar-ink  avatar glyph colour (default: #fff)
 *   --testimonial-radius      card corner radius (default: 18px)
 *   --testimonial-fade        crossfade duration — JS sets from data-fade
 * ── */

.base-testimonial {
  --testimonial-bg: var(--card-bg, #fff);
  --testimonial-border: var(--border-color, #e5e7eb);
  --testimonial-ink: var(--text-color, #1a1a1a);
  --testimonial-muted: var(--muted-text, #6b7280);
  --testimonial-accent: var(--primary-blue, #fb596e);
  --testimonial-star: #f59e0b;
  --testimonial-nav-bg: transparent;
  --testimonial-nav-ink: var(--text-color, #1a1a1a);
  --testimonial-avatar-bg: var(--primary-blue, #fb596e);
  --testimonial-avatar-ink: #fff;
  --testimonial-radius: 18px;
  --testimonial-fade: 400ms;

  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  touch-action: pan-y;
}

.base-testimonial.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.base-testimonial.is-single .base-testimonial__viewport {
  grid-column: 1;
}

.base-testimonial.is-single .base-testimonial__who {
  display: none !important;
}

/* ── Viewport & items ── */

.base-testimonial__viewport {
  position: relative;
  min-width: 0;
}

.base-testimonial__who {
  display: none;
}

.base-testimonial__item {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 32px 36px;
  border-radius: var(--testimonial-radius);
  background: var(--testimonial-bg);
  border: 1px solid var(--testimonial-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(28px);
  transition:
    opacity var(--testimonial-fade) cubic-bezier(0.4, 0, 0.2, 1),
    transform var(--testimonial-fade) cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear var(--testimonial-fade);
}

.base-testimonial[data-dir='back'] .base-testimonial__item:not(.is-active) {
  transform: translateX(-28px);
}

.base-testimonial .base-testimonial__item.is-leaving {
  transform: translateX(-28px);
}

.base-testimonial[data-dir='back'] .base-testimonial__item.is-leaving {
  transform: translateX(28px);
}

@media (prefers-reduced-motion: reduce) {
  .base-testimonial .base-testimonial__item,
  .base-testimonial[data-dir='back'] .base-testimonial__item:not(.is-active),
  .base-testimonial .base-testimonial__item.is-leaving {
    transform: none;
  }
}

/* All items stacked in the same cell so the viewport sizes to tallest without layout shift */
.base-testimonial__viewport {
  display: grid;
}

.base-testimonial__item.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity var(--testimonial-fade) cubic-bezier(0.4, 0, 0.2, 1),
    transform var(--testimonial-fade) cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

@media (min-width: 900px) {
  .base-testimonial.has-peek:not(.is-track) {
    gap: 56px;
  }

  .base-testimonial.has-peek .base-testimonial__viewport::before,
  .base-testimonial.has-peek .base-testimonial__viewport::after {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    width: 70%;
    border: 1px solid var(--testimonial-border);
    border-radius: var(--testimonial-radius);
    background: var(--testimonial-bg);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
  }

  .base-testimonial.has-peek .base-testimonial__viewport::before {
    left: -22px;
  }

  .base-testimonial.has-peek .base-testimonial__viewport::after {
    right: -22px;
  }

  .base-testimonial.has-peek .base-testimonial__item {
    position: relative;
    z-index: 1;
  }
}

/* ── Content ── */

.base-testimonial__stars {
  display: inline-flex;
  gap: 2px;
  font-size: 15px;
  line-height: 1;
  color: var(--testimonial-star);
  letter-spacing: 0.75px;
}

.base-testimonial__quote {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--testimonial-ink);
  letter-spacing: -0.1px;
  text-wrap: pretty;
}

.base-testimonial__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
}

.base-testimonial__head .base-testimonial__stars {
  font-size: 15px;
}

.base-testimonial__caption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--testimonial-border);
}

.base-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--testimonial-avatar-bg);
  color: var(--testimonial-avatar-ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.base-testimonial__avatar--photo {
  object-fit: cover;
  background: var(--testimonial-border);
}

.base-testimonial__caption-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.base-testimonial__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--testimonial-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-testimonial__role {
  font-size: 12.5px;
  color: var(--testimonial-muted);
}

/* ── Nav arrows ── */

.base-testimonial__nav {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: var(--testimonial-nav-bg) !important;
  color: var(--testimonial-nav-ink) !important;
  border: 1px solid var(--testimonial-border) !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 16px;
  line-height: 1;
  box-shadow: none;
  transform: none !important;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    transform 0.18s !important;
}

/* Override aggressive base_elements.css button:hover rules */
.base-testimonial__nav:hover,
.base-testimonial__nav:focus {
  background: var(--testimonial-nav-bg) !important;
  color: var(--testimonial-nav-ink) !important;
  border-color: var(--testimonial-ink) !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
}

.base-testimonial .base-testimonial__nav {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease !important;
}

@media (hover: hover) {
  .base-testimonial .base-testimonial__nav:hover {
    transform: translateY(-2px) !important;
    border-color: var(--testimonial-accent) !important;
    box-shadow: 0 12px 22px -12px rgb(0 0 0 / 0.35) !important;
  }
}

.base-testimonial .base-testimonial__nav:active {
  transform: translateY(1px) scale(0.92) !important;
  box-shadow: 0 4px 10px -6px rgb(0 0 0 / 0.3) !important;
  transition-duration: 0.08s !important;
}

@media (prefers-reduced-motion: reduce) {
  .base-testimonial .base-testimonial__nav:hover,
  .base-testimonial .base-testimonial__nav:active {
    transform: none !important;
  }
}

.base-testimonial__nav:focus-visible {
  outline: 2px solid var(--testimonial-accent) !important;
  outline-offset: 3px;
}

.base-testimonial__nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

.base-testimonial__nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* ── Dot indicators ── */

.base-testimonial__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.base-testimonial__dot {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--testimonial-border) !important;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  transform: none !important;
  transition:
    background 0.2s ease,
    width 0.2s ease;
}

.base-testimonial__dot:hover,
.base-testimonial__dot:focus {
  background: var(--text-color, var(--testimonial-ink)) !important;
  color: inherit !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
  opacity: 0.55;
}

.base-testimonial__dot:focus-visible {
  outline: 2px solid var(--testimonial-accent) !important;
  outline-offset: 3px;
  opacity: 1;
}

.base-testimonial__dot.is-active {
  width: 18px;
  background: var(--text-color, var(--testimonial-ink)) !important;
  opacity: 1;
}

.base-testimonial__dot span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--testimonial-accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  .base-testimonial__item,
  .base-testimonial__item.is-active {
    transition: none;
  }
  .base-testimonial__nav,
  .base-testimonial__dot {
    transition: none;
  }
}

/* ── Responsive ── */

/* ---------------------------------------------------------------
   Review testimonial wrapper (html/web/components/testimonials.jinja2).
   The carousel itself is the generic .base-testimonial above; these rules only
   cover the heading, the combined score line and the review title.
   --------------------------------------------------------------- */
.reviews-testimonials__head {
  text-align: center;
  margin-bottom: 28px;
}

.reviews-testimonials__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted-text);
}

.reviews-testimonials__score {
  font-weight: 700;
  color: var(--text);
}

.base-testimonial__title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.reviews-testimonials,
.reviews-fallback,
.reviews-scores,
.footer-rating,
.base-review-button,
.base-trustpilot-badge {
  --rv-icon-app-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2318bffb'/%3E%3Cstop offset='1' stop-color='%231a6df5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='24' height='24' rx='5.5' fill='url(%23g)'/%3E%3Cpath d='M8.5 17.5l5-9M15.5 17.5l-1.2-2.2M11 6.5l1 1.8M6 14h12' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --rv-icon-google-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.8L14 12 5 21.2z' fill='%232196f3'/%3E%3Cpath d='M5 2.8l12 6.6L14 12z' fill='%2300c853'/%3E%3Cpath d='M5 21.2l9-9.2 3 2.6z' fill='%23f44336'/%3E%3Cpath d='M17 9.4l3.4 1.9c.6.4.6 1 0 1.4L17 14.6 14 12z' fill='%23ffc107'/%3E%3C/svg%3E");
  --rv-icon-chrome: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 24L4.95 13A22 22 0 0 1 43.05 13z' fill='%23ea4335'/%3E%3Cpath d='M24 24L43.05 13A22 22 0 0 1 24 46z' fill='%23fbbc04'/%3E%3Cpath d='M24 24L24 46A22 22 0 0 1 4.95 13z' fill='%2334a853'/%3E%3Ccircle cx='24' cy='24' r='10' fill='%23fff'/%3E%3Ccircle cx='24' cy='24' r='8' fill='%234285f4'/%3E%3C/svg%3E");
  --rv-icon-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='e' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2335c1f1'/%3E%3Cstop offset='.5' stop-color='%231172c9'/%3E%3Cstop offset='1' stop-color='%230c59a4'/%3E%3C/linearGradient%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%2354ae3d'/%3E%3Cstop offset='1' stop-color='%2379d24a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='24' cy='24' r='22' fill='url(%23e)'/%3E%3Cpath d='M8 30c3 9 15 14 25 10 4-2 7-5 8-9-4 4-12 5-17 1-3-2-4-5-3-8-5 0-10 2-13 6z' fill='url(%23g)'/%3E%3Cellipse cx='26' cy='24' rx='7' ry='5' fill='%23fff' opacity='.9'/%3E%3C/svg%3E");
  --rv-icon-firefox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffbd4f'/%3E%3Cstop offset='.55' stop-color='%23ff7139'/%3E%3Cstop offset='1' stop-color='%23e31587'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='24' cy='24' r='22' fill='url(%23f)'/%3E%3Ccircle cx='26' cy='25' r='11' fill='%23592acb'/%3E%3Cpath d='M15 21c2-6 9-9 15-6-5 0-8 3-8 7s3 7 8 7c-6 4-14 1-15-8z' fill='%23ff9640'/%3E%3C/svg%3E");
  --rv-icon-site: url('/assets/img/favicon.svg');
  --rv-icon-trustpilot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='4' fill='%2300b67a'/%3E%3Cpath d='M12 4.6l1.75 5.38h5.66l-4.58 3.33 1.75 5.39L12 15.37l-4.58 3.33 1.75-5.39L4.6 9.98h5.65z' fill='%23fff'/%3E%3C/svg%3E");
}

.base-testimonial__item--app_store .base-testimonial__source-icon,
.reviews-chip--app_store .reviews-chip__icon,
.footer-rating__chip--app_store .footer-rating__icon,
.base-review-button--app_store .base-review-button__icon {
  background-image: var(--rv-icon-app-store);
}

.base-testimonial__item--google_play .base-testimonial__source-icon,
.reviews-chip--google_play .reviews-chip__icon,
.footer-rating__chip--google_play .footer-rating__icon,
.base-review-button--google_play .base-review-button__icon {
  background-image: var(--rv-icon-google-play);
}

.base-testimonial__item--chrome_web_store .base-testimonial__source-icon,
.reviews-chip--chrome_web_store .reviews-chip__icon,
.footer-rating__chip--chrome_web_store .footer-rating__icon,
.base-review-button--chrome_web_store .base-review-button__icon {
  background-image: var(--rv-icon-chrome);
}

.base-testimonial__item--edge_addons .base-testimonial__source-icon,
.reviews-chip--edge_addons .reviews-chip__icon,
.footer-rating__chip--edge_addons .footer-rating__icon,
.base-review-button--edge_addons .base-review-button__icon {
  background-image: var(--rv-icon-edge);
}

.base-testimonial__item--firefox_addons .base-testimonial__source-icon,
.reviews-chip--firefox_addons .reviews-chip__icon,
.footer-rating__chip--firefox_addons .footer-rating__icon,
.base-review-button--firefox_addons .base-review-button__icon {
  background-image: var(--rv-icon-firefox);
}

.base-testimonial__item--site .base-testimonial__source-icon,
.reviews-chip--site .reviews-chip__icon,
.footer-rating__chip--site .footer-rating__icon,
.base-review-button--site .base-review-button__icon {
  background-image: var(--rv-icon-site);
}

.base-testimonial__item--trustpilot .base-testimonial__source-icon,
.reviews-chip--trustpilot .reviews-chip__icon,
.footer-rating__chip--trustpilot .footer-rating__icon,
.base-review-button--trustpilot .base-review-button__icon,
.base-trustpilot-badge__icon {
  background-image: var(--rv-icon-trustpilot);
}

.base-testimonial__item--app_store {
  --testimonial-bg: #f2f2f7;
  --testimonial-border: transparent;
  --testimonial-ink: #1c1c1e;
  --testimonial-muted: #8e8e93;
  --testimonial-star: #ff9500;
  --testimonial-radius: 22px;
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.base-testimonial__item--google_play {
  --testimonial-bg: #fff;
  --testimonial-border: #dadce0;
  --testimonial-ink: #3c4043;
  --testimonial-muted: #5f6368;
  --testimonial-star: #01875f;
  --testimonial-radius: 20px;
  font-family: Roboto, Arial, system-ui, sans-serif;
}

body.theme-dark .base-testimonial__item--app_store {
  --testimonial-bg: #1c1c1e;
  --testimonial-ink: #f2f2f7;
  --testimonial-muted: #98989f;
}

body.theme-dark .base-testimonial__item--google_play {
  --testimonial-bg: #202124;
  --testimonial-border: #3c4043;
  --testimonial-ink: #e8eaed;
  --testimonial-muted: #9aa0a6;
  --testimonial-star: #34c38f;
}

.base-testimonial__item {
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.22);
}

.base-testimonial__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.base-testimonial__meta--start {
  justify-content: flex-start;
}

.base-testimonial__date,
.base-testimonial__name--inline {
  color: var(--testimonial-muted);
  font-size: 14px;
  font-weight: 400;
}

.base-testimonial__item--app_store .base-testimonial__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0;
  color: var(--testimonial-ink);
}

.base-testimonial__item--google_play .base-testimonial__avatar {
  border-radius: 50%;
  font-family: inherit;
  letter-spacing: 0;
}

.base-testimonial__item--google_play .base-testimonial__caption {
  border-top: 0;
  padding-top: 0;
}

.base-testimonial__source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--testimonial-border);
  font-size: 13px;
  color: var(--testimonial-muted);
}

.base-testimonial__item--app_store .base-testimonial__source {
  border-top-color: rgba(60, 60, 67, 0.18);
}

body.theme-dark .base-testimonial__item--app_store .base-testimonial__source {
  border-top-color: rgba(235, 235, 245, 0.18);
}

.base-testimonial__source-icon {
  width: 18px;
  height: 18px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.reviews-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reviews-testimonials__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.reviews-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 18px 0 12px;
  border-radius: 14px;
  box-sizing: border-box;
  text-decoration: none !important;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #dadce0;
  color: #202124 !important;
}

.reviews-chip:hover,
.reviews-chip:focus {
  text-decoration: none !important;
}

a.reviews-chip {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

@media (hover: hover) {
  a.reviews-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -14px rgb(0 0 0 / 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  a.reviews-chip,
  a.reviews-chip:hover {
    transition: none;
    transform: none;
  }
}

.reviews-chip--app_store,
.reviews-chip--app_store:hover,
.reviews-chip--app_store:focus {
  background: #000;
  border-color: #000;
  color: #fff !important;
}

body.theme-dark .reviews-chip--google_play {
  background: #202124;
  border-color: #3c4043;
  color: #e8eaed !important;
}

.reviews-chip__icon {
  width: 36px;
  height: 36px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.reviews-chip__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.reviews-chip__meta {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
}

.reviews-chip__meta .reviews-chip__score {
  font-weight: 600;
}

.reviews-chip__star {
  margin-left: 3px;
  color: #f59e0b;
}

.reviews-chip__count {
  margin-left: 4px;
}

@media (max-width: 1024px) {
  .reviews-chip__count {
    display: none;
  }
}

.reviews-chip__name {
  font-size: 15px;
  font-weight: 600;
}

.reviews-testimonials__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.base-review-button,
.base-review-button:hover,
.base-review-button:focus,
.base-review-button:active,
.base-review-button:visited {
  text-decoration: none !important;
}

.base-review-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding: 0 24px 0 14px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}

.base-review-button:hover,
.base-review-button:focus {
  transform: translateY(-1px);
}

.base-review-button:focus-visible {
  outline: 2px solid var(--testimonial-accent, var(--primary-blue, #fb596e));
  outline-offset: 3px;
}

a.base-trustpilot-badge {
  margin: 0;
  text-decoration: none;
}

.base-trustpilot-badge__icon {
  width: 22px;
  height: 22px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.base-review-button__icon {
  width: 28px;
  height: 28px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.base-review-button--app_store:not(.btn-primary),
.base-review-button--app_store:not(.btn-primary):hover,
.base-review-button--app_store:not(.btn-primary):focus,
.base-review-button--app_store:not(.btn-primary):active,
.base-review-button--app_store:not(.btn-primary):visited {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000;
  border-radius: 14px;
}

.base-review-button--google_play:not(.btn-primary),
.base-review-button--google_play:not(.btn-primary):hover,
.base-review-button--google_play:not(.btn-primary):focus,
.base-review-button--google_play:not(.btn-primary):active,
.base-review-button--google_play:not(.btn-primary):visited {
  background: #01875f !important;
  color: #fff !important;
  border: 1px solid #01875f;
  border-radius: 999px;
}

.base-review-button--chrome_web_store:not(.btn-primary),
.base-review-button--chrome_web_store:not(.btn-primary):hover,
.base-review-button--chrome_web_store:not(.btn-primary):focus,
.base-review-button--chrome_web_store:not(.btn-primary):active,
.base-review-button--chrome_web_store:not(.btn-primary):visited,
.base-review-button--edge_addons:not(.btn-primary),
.base-review-button--edge_addons:not(.btn-primary):hover,
.base-review-button--edge_addons:not(.btn-primary):focus,
.base-review-button--edge_addons:not(.btn-primary):active,
.base-review-button--edge_addons:not(.btn-primary):visited,
.base-review-button--firefox_addons:not(.btn-primary),
.base-review-button--firefox_addons:not(.btn-primary):hover,
.base-review-button--firefox_addons:not(.btn-primary):focus,
.base-review-button--firefox_addons:not(.btn-primary):active,
.base-review-button--firefox_addons:not(.btn-primary):visited,
.base-review-button--trustpilot:not(.btn-primary),
.base-review-button--trustpilot:not(.btn-primary):hover,
.base-review-button--trustpilot:not(.btn-primary):focus,
.base-review-button--trustpilot:not(.btn-primary):active,
.base-review-button--trustpilot:not(.btn-primary):visited,
.base-review-button--site:not(.btn-primary),
.base-review-button--site:not(.btn-primary):hover,
.base-review-button--site:not(.btn-primary):focus,
.base-review-button--site:not(.btn-primary):active,
.base-review-button--site:not(.btn-primary):visited {
  background: #fff !important;
  color: #1a73e8 !important;
  border: 1px solid #dadce0;
  border-radius: 999px;
}

.reviews-fallback__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px;
  box-sizing: border-box;
  text-align: center;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 28px;
}

.reviews-fallback__stars {
  font-size: 26px;
  letter-spacing: 2px;
  color: #e5e1da;
}

body.theme-dark .reviews-fallback__stars {
  color: #3c3c40;
}

.reviews-fallback__heading {
  margin: 0;
  max-width: 620px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.8px;
}

.reviews-fallback__text {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-text);
}

.reviews-fallback__card .base-review-button {
  margin-top: 10px;
}

.base-testimonial .base-testimonial__quote,
body.theme-light .base-testimonial .base-testimonial__quote,
body.theme-dark .base-testimonial .base-testimonial__quote {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-style: normal;
}

.base-testimonial .base-testimonial__quote::before {
  content: none;
  display: none;
}

@media (max-width: 640px) {
  .base-testimonial {
    grid-template-columns: 40px 1fr 40px;
    gap: 12px;
  }
  .base-testimonial__viewport {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .base-testimonial__nav {
    width: 40px;
    height: 40px;
    margin: 2px !important;
  }
  .base-testimonial__nav--prev {
    grid-column: 1;
    grid-row: 2;
  }
  .base-testimonial__nav--next {
    grid-column: 3;
    grid-row: 2;
  }
  .base-testimonial__who {
    display: none !important;
  }
  .base-testimonial__who-name {
    max-width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .base-testimonial__who-meta {
    font-size: 12px;
    color: var(--muted-text);
  }
  .base-testimonial__dots {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin-top: 0;
  }
  .reviews-testimonials__chips,
  .reviews-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
    overflow: visible;
  }
  .reviews-chip {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 52px;
    box-sizing: border-box;
    white-space: normal;
  }
  .reviews-chip__body {
    min-width: 0;
  }
  .reviews-chip__meta {
    white-space: nowrap;
  }
  .reviews-fallback__card {
    padding: 24px;
  }
  .reviews-fallback__heading {
    font-size: 28px;
  }
  .base-testimonial__item {
    padding: 24px 24px;
  }
  .base-testimonial__quote {
    font-size: 15.5px;
  }
}

.base-testimonial.no-nav .base-testimonial__nav,
.base-testimonial.no-nav .base-testimonial__dots {
  display: none !important;
}

.base-testimonial.is-track {
  max-width: none !important;
  gap: 20px;
}

.base-testimonial.is-track .base-testimonial__viewport {
  display: flex;
  gap: 24px;
  overflow: hidden;
  padding: 10px 8px 72px;
  margin: -10px -8px -72px;
}

.base-testimonial.is-track .base-testimonial__viewport::before,
.base-testimonial.is-track .base-testimonial__viewport::after {
  display: none;
}

.base-testimonial.is-track .base-testimonial__viewport .base-testimonial__item {
  flex: 0 0
    calc(
      (100% - (var(--testimonial-per, 2) - 1) * 24px) /
        var(--testimonial-per, 2)
    );
  min-width: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(
    calc(
      var(--testimonial-offset, 0) * -1 * (100% + 24px) +
        var(--testimonial-drag, 0px)
    )
  );
  transition: transform var(--testimonial-fade) cubic-bezier(0.22, 1, 0.36, 1);
}

.base-testimonial.is-track.is-dragging
  .base-testimonial__viewport
  .base-testimonial__item {
  transition: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .base-testimonial.is-track
    .base-testimonial__viewport
    .base-testimonial__item {
    transition: none;
  }
}
