/* Live Trustpilot aggregate rating on the homepage. */
html body #clovaBody .clv-home-trustpilot {
  box-sizing: border-box;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  width: max-content;
  max-width: 100%;
  min-height: 54px;
  margin: 10px auto 0;
  padding: 9px 13px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(0, 182, 122, .25);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f7fffb 100%);
  color: #191919;
  box-shadow: 0 9px 24px rgba(0, 182, 122, .10);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Let the two-button row define the stack width, then stretch the card to it. */
html body #clovaBody .clv-hero-cta-stack {
  display: inline-grid;
  width: max-content;
  max-width: 100%;
  justify-items: stretch;
}

html body #clovaBody .clv-hero-cta-stack > .clv-home-trustpilot {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
}

html body #clovaBody .clv-home-trustpilot:hover,
html body #clovaBody .clv-home-trustpilot:focus-visible {
  border-color: rgba(0, 182, 122, .52);
  box-shadow: 0 12px 28px rgba(0, 182, 122, .16);
  transform: translateY(-1px);
}

html body #clovaBody .clv-home-trustpilot-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

html body #clovaBody .clv-home-trustpilot-brand svg {
  width: 19px;
  height: 18px;
  flex: 0 0 19px;
  fill: #00b67a;
}

html body #clovaBody .clv-home-trustpilot-stars {
  display: inline-grid;
  grid-template-columns: repeat(5, 23px);
  gap: 3px;
}

html body #clovaBody .clv-home-trustpilot-stars > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 2px;
  background: #00b67a;
}

html body #clovaBody .clv-home-trustpilot-stars svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

html body #clovaBody .clv-home-trustpilot-score {
  display: grid;
  min-width: 76px;
  gap: 2px;
  color: #191919;
  line-height: 1;
  text-align: left;
}

html body #clovaBody .clv-home-trustpilot-score > span:first-child {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

html body #clovaBody .clv-home-trustpilot-score strong {
  font-size: 17px;
  font-weight: 850;
}

html body #clovaBody .clv-home-trustpilot-score small {
  color: #52605a;
  font-size: 11px;
  font-weight: 700;
}

html body #clovaBody .clv-home-trustpilot-reviews {
  color: #006f4b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 760px) {
  /* The hero must grow with the moved rating card and enlarged user text. */
  html body #clovaBody > section.clv-hero,
  html body #clovaBody > section.clv-hero > .clv-hero-inner {
    height: auto !important;
    min-height: max-content !important;
    max-height: none !important;
  }

  html body #clovaBody .clv-home-trustpilot {
    grid-template-columns: auto auto;
    width: min(100%, 330px);
    min-height: 68px;
    margin-top: 8px;
    padding: 9px 11px;
    gap: 7px 9px;
    border-radius: 10px;
  }

  /* The final mobile action row is capped at the same 324px width. */
  html body #clovaBody .clv-hero-cta-stack {
    width: min(324px, 100%);
  }

  html body #clovaBody .clv-home-trustpilot-score {
    grid-column: 1 / -1;
    grid-template-columns: auto auto;
    min-width: 0;
    justify-content: center;
    align-items: baseline;
    gap: 7px;
    text-align: center;
  }

  html body #clovaBody .clv-home-trustpilot-brand {
    font-size: 13px;
  }

  html body #clovaBody .clv-home-trustpilot-brand svg {
    width: 17px;
    height: 16px;
    flex-basis: 17px;
  }

  html body #clovaBody .clv-home-trustpilot-stars {
    grid-template-columns: repeat(5, 21px);
    gap: 2px;
  }

  html body #clovaBody .clv-home-trustpilot-stars > span {
    width: 21px;
    height: 21px;
  }

  html body #clovaBody .clv-home-trustpilot-stars svg {
    width: 15px;
    height: 15px;
  }

  html body #clovaBody .clv-home-trustpilot-score strong {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  html body #clovaBody .clv-home-trustpilot {
    padding-inline: 8px;
  }

  html body #clovaBody .clv-home-trustpilot-stars {
    grid-template-columns: repeat(5, 19px);
  }

  html body #clovaBody .clv-home-trustpilot-stars > span {
    width: 19px;
    height: 19px;
  }
}
