/* RC6.2: shared, compact trust badges for home and PDP footers. */
/* Preserve the provider-rendered logos and their trust links. */
.selora-footer .selora-footer__trust,
.site-footer .trust-support .trust-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

/* In the shop/PDP footer, allow the trust column to take its natural width.
   When a viewport is unusually narrow, logos remain one horizontal row
   inside their own scroll area instead of stacking. */
.site-footer .trust-support .trust-col {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  align-items: center;
}
.site-footer .trust-support .support-col {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.selora-footer .selora-trust-card,
.site-footer .selora-trust-card {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 92px;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  min-width: 92px;
  min-height: 92px;
  max-width: 92px;
  max-height: 92px;
  margin: 0;
  padding: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
  overflow: hidden;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.selora-footer .selora-trust-card:hover,
.site-footer .selora-trust-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .10);
}

/* Never stretch, crop or replace the provider artwork. */
.selora-footer .selora-trust-card > a,
.site-footer .selora-trust-card > a,
.selora-footer .selora-trust-card > div,
.site-footer .selora-trust-card > div,
.selora-footer .selora-trust-card #zibal,
.site-footer .selora-trust-card #zibal {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}
.selora-footer .selora-trust-card img,
.site-footer .selora-trust-card img,
.selora-footer .selora-trust-card #zibal img,
.site-footer .selora-trust-card #zibal img {
  display: block;
  max-width: 100% !important;
  max-height: 68px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

@media (max-width: 540px) {
  .selora-footer .selora-footer__trust,
  .site-footer .trust-support .trust-logos { gap: 7px; }
  .selora-footer .selora-trust-card,
  .site-footer .selora-trust-card {
    flex-basis: 84px;
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
    max-width: 84px;
    max-height: 84px;
    padding: 6px;
    border-radius: 12px;
  }
  .selora-footer .selora-trust-card img,
  .site-footer .selora-trust-card img,
  .selora-footer .selora-trust-card #zibal img,
  .site-footer .selora-trust-card #zibal img { max-height: 62px !important; }
}
