/* Per-placement border treatment (Figma: homepage has none, product page
   has top+bottom, category listing has top only) — see
   Hook\TrustBar::renderForHook()'s $context param. */
.yc-trust-bar {
  background: var(--yc-bg-cream, #f5f5ef);
}

.yc-trust-bar--product {
  /* product.tpl's top section (gallery/info/buybox) has no trailing margin
     of its own, so without this the border above sat flush against it. */
  margin-top: 2rem;
  border-top: 1px solid var(--yc-border-default, #e6e9e5);
  border-bottom: 1px solid var(--yc-border-default, #e6e9e5);
}

.yc-trust-bar--category {
  border-top: 1px solid var(--yc-border-default, #e6e9e5);
}

.yc-trust-bar__list {
  display: flex;
  align-items: center;
  /* Figma spaces items with justify-content: space-between across the full
     width regardless of item count — plain flex (no justify-content) packed
     them to the left instead, which only looked right when enough items
     happened to fill the row (5 on desktop); a trust bar with fewer items
     (e.g. the 4-item "Listing kategorii" one) looked bunched up on the left. */
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin: 0;
  padding: 28px 0;
  list-style: none;
}

.yc-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yc-trust-bar__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--yc-text-primary, #17332d);
  background: var(--yc-border-default, #e6e9e5);
  border-radius: 50%;
  font-size: 18px;
}

.yc-trust-bar__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yc-trust-bar__title {
  margin: 0;
  color: var(--yc-text-primary, #17332d);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.yc-trust-bar__subtitle {
  margin: 0;
  color: var(--yc-text-muted, #737873);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .yc-trust-bar__list {
    gap: 20px 40px;
    padding: 20px 16px;
  }

  .yc-trust-bar__title,
  .yc-trust-bar__subtitle {
    white-space: normal;
  }
}

/* Homepage "Benefits Bar" (Figma node 11:2) — plain (non-badge) icons on a
   light-gray strip, 3 equal-width columns, not the generic bordered-pill
   treatment used on product/category pages. */
.yc-trust-bar--home {
  background: #f4f6f8;
}

.yc-trust-bar--home .yc-trust-bar__list {
  gap: 40px;
  padding-block: 28px;
}

.yc-trust-bar--home .yc-trust-bar__item {
  flex: 1 1 0;
  min-width: 0;
  gap: 16px;
}

.yc-trust-bar--home .yc-trust-bar__icon {
  width: 40px;
  height: 40px;
  color: #172b40;
  background: none;
  border-radius: 0;
  font-size: 32px;
}

.yc-trust-bar--home .yc-trust-bar__text {
  gap: 4px;
}

.yc-trust-bar--home .yc-trust-bar__title {
  color: #172b40;
  font-size: 14px;
  font-weight: 600;
}

.yc-trust-bar--home .yc-trust-bar__subtitle {
  color: #647184;
  font-size: 13px;
}

@media (max-width: 992px) {
  .yc-trust-bar--home .yc-trust-bar__list {
    gap: 18px;
    padding: 22px 16px;
  }

  .yc-trust-bar--home .yc-trust-bar__item {
    flex: 1 1 auto;
    width: 100%;
  }

  .yc-trust-bar--home .yc-trust-bar__icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }
}
