/**
 * Trust-Siegel — Schutz vor Seiten-Resets (listing.css, pdp-standard.css, …).
 * Lädt immer zuletzt. Kein globales max-width:none auf Bilder.
 */

.tbb-trust-seal-sticky{
  width: max-content;
  max-width: min(100vw - var(--space-8), 20rem);
}

/* Inaktive Modi komplett aus dem Layout */
.tbb-trust-seal-mode{
  display: none !important;
  visibility: hidden !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

@media (max-width: 900px){
  .tbb-trust-seal-mode--chip{
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
  }
}

@media (min-width: 901px) and (max-width: 1599px){
  .tbb-trust-seal-mode--compact{
    display: flex !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    width: max-content !important;
    height: auto !important;
    max-width: min(calc(100vw - var(--space-8)), 22rem);
  }
}

@media (min-width: 1600px){
  .tbb-trust-seal-mode--stack{
    display: flex !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: none !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
  }

  .tbb-trust-seal-mode--stack .tbb-trust-seal-sticky-link{
    pointer-events: auto;
  }
}

/* Bilder: feste Maße (überschreibt img { max-width:100% } der Unterseiten) */
.tbb-trust-seal-sticky img,
.tbb-trust-seal-sticky svg{
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.tbb-trust-seal-sticky-badge{
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
}

.tbb-trust-seal-chip-preview-badge{
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
}

.tbb-trust-seal-chip-link:not(.tbb-trust-seal-chip-link--internet) img{
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
}

.tbb-trust-seal-sticky-internet,
.tbb-trust-seal-compact-internet{
  width: auto !important;
  height: 32px !important;
  max-width: 96px !important;
}

@media (min-width: 1600px){
  .tbb-trust-seal-sticky-internet{
    width: auto !important;
    height: auto !important;
    max-width: 152px !important;
  }
}

.tbb-trust-seal-chip-preview-internet{
  width: auto !important;
  height: 15px !important;
  max-width: 32px !important;
}

.tbb-trust-seal-chip-link--internet img,
.tbb-trust-seal-chip-link-internet{
  width: auto !important;
  height: 53px !important;
  max-width: 168px !important;
}

.tbb-trust-seal-compact-badge{
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
}

.tbb-trust-seal-compact-link{
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
}

.tbb-trust-seal-compact-meta{
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.tbb-trust-seal-chip-chevron{
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
}

/* Chip-Button nur ≤900px */
@media (max-width: 900px){
  .tbb-trust-seal-sticky button.tbb-trust-seal-chip-toggle{
    appearance: none;
    -webkit-appearance: none;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    width: auto !important;
    max-width: min(13.5rem, calc(100vw - var(--space-8))) !important;
    margin: 0;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--color-border) !important;
    border-radius: 999px;
    background: rgb(255 255 255 / .9) !important;
    color: var(--color-text-muted);
    box-shadow: 0 2px 10px rgb(11 13 18 / .08);
    cursor: pointer;
    text-align: left;
    line-height: 1.2;
    opacity: .94;
  }

  .tbb-trust-seal-chip-preview{
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    max-width: 62px;
  }
}

.tbb-trust-seal-chip-panel p{
  margin: 0;
}

.tbb-trust-seal-chip-link{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: auto !important;
}

.tbb-trust-seal-chip-link-meta strong{
  font-weight: 700;
}
