.trust-badges {
  background-color: rgb(var(--color-background));
}

.trust-badges__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 56px;
  align-items: start;
}

/* ---- one badge ---- */
.trust-badge {
  min-width: 0;
}

.trust-badge__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-block-end: 12px;
}

.trust-badge__logo img,
.trust-badge__logo svg {
  display: block;
  width: auto;
  height: var(--trust-logo-height, 26px);
  object-fit: contain;
}

.trust-badge__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.trust-badge__icon img,
.trust-badge__icon svg {
  display: block;
  width: var(--trust-logo-height, 22px);
  height: var(--trust-logo-height, 22px);
  object-fit: contain;
}

.trust-badge__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgb(var(--color-text));
}

.trust-badge__score {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: rgb(var(--color-text));
}

.trust-badge__label {
  font-size: 18px;
  font-weight: 600;
  color: rgb(var(--color-text));
}

/* ---- stars ---- */
.trust-badge__stars {
  display: inline-flex;
  gap: 3px;
  line-height: 0;
}

.trust-badge__star {
  width: 18px;
  height: 18px;
  background-color: rgba(var(--color-text), 0.35);
  -webkit-mask: center / contain no-repeat;
          mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M9.37 1.27a.7.7 0 0 1 1.26 0l2.15 4.35a.7.7 0 0 0 .53.38l4.8.7a.7.7 0 0 1 .39 1.2l-3.48 3.39a.7.7 0 0 0-.2.62l.82 4.78a.7.7 0 0 1-1.02.74l-4.3-2.26a.7.7 0 0 0-.65 0l-4.3 2.26a.7.7 0 0 1-1.01-.74l.82-4.78a.7.7 0 0 0-.2-.62L1.5 7.9a.7.7 0 0 1 .4-1.2l4.8-.7a.7.7 0 0 0 .53-.38l2.14-4.35Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M9.37 1.27a.7.7 0 0 1 1.26 0l2.15 4.35a.7.7 0 0 0 .53.38l4.8.7a.7.7 0 0 1 .39 1.2l-3.48 3.39a.7.7 0 0 0-.2.62l.82 4.78a.7.7 0 0 1-1.02.74l-4.3-2.26a.7.7 0 0 0-.65 0l-4.3 2.26a.7.7 0 0 1-1.01-.74l.82-4.78a.7.7 0 0 0-.2-.62L1.5 7.9a.7.7 0 0 1 .4-1.2l4.8-.7a.7.7 0 0 0 .53-.38l2.14-4.35Z'/%3E%3C/svg%3E");
}

.trust-badge__star.is-full {
  background-color: #e7c24b;
}

/* ---- description ---- */
.trust-badge__text {
  max-width: 420px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(var(--color-text), 0.75);
}

.trust-badge__text p {
  margin: 0;
}

.trust-badge__text strong {
  font-weight: 600;
  color: rgb(var(--color-text));
}

/* ---- responsive ---- */
@media (max-width: 959px) {
  .trust-badges__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
