/* Réassurance — bandeau haut + badges flottants droite */

:root {
  --nb-trust-navy: #1a2744;
  --nb-trust-copper: #a67c52;
  --nb-trust-sand: #f5ede4;
  --nb-trust-top-h: 36px;
}

/* ——— Bandeau haut ——— */
.nb-trust-top {
  position: relative;
  z-index: 100020;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nb-trust-top-h);
  padding: 6px 36px 6px 12px;
  background: linear-gradient(90deg, #1a2744 0%, #243456 45%, #a67c52 100%);
  color: #fff;
  font-family: inherit;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nb-trust-top.is-hidden,
html.nb-trust-top-dismissed .nb-trust-top,
body.nb-mnav-open .nb-trust-top,
body.nb-mnav-open .nb-trust-side {
  display: none !important;
}

.nb-trust-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  max-width: 1100px;
  width: 100%;
}

.nb-trust-top__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 500;
}

.nb-trust-top__icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.95;
}

.nb-trust-top__label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.nb-trust-top__sep {
  opacity: 0.55;
}

.nb-trust-top__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.nb-trust-top__close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.nb-trust-top__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ——— Badges flottants droite ——— */
.nb-trust-side {
  position: fixed;
  top: 28%;
  right: 0;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.nb-trust-side__badge {
  position: relative;
  pointer-events: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  max-width: min(320px, calc(100vw - 24px));
}

.nb-trust-side__tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  min-height: 88px;
  padding: 12px 6px;
  border: 0 !important;
  border-radius: 10px 0 0 10px;
  color: #fff !important;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: -2px 4px 16px rgba(26, 39, 68, 0.22);
  transition: filter 0.2s ease, background-color 0.2s ease;
}

.nb-trust-side__badge--safety .nb-trust-side__tab,
.nb-trust-side__badge--safety .nb-trust-side__tab:hover,
.nb-trust-side__badge--safety .nb-trust-side__tab:focus,
.nb-trust-side__badge--safety .nb-trust-side__tab:active,
.nb-trust-side__badge--safety.is-open .nb-trust-side__tab {
  background: var(--nb-trust-navy) !important;
  background-color: var(--nb-trust-navy) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.nb-trust-side__badge--deposit .nb-trust-side__tab,
.nb-trust-side__badge--deposit .nb-trust-side__tab:hover,
.nb-trust-side__badge--deposit .nb-trust-side__tab:focus,
.nb-trust-side__badge--deposit .nb-trust-side__tab:active,
.nb-trust-side__badge--deposit.is-open .nb-trust-side__tab {
  background: #6b4423 !important;
  background-color: #6b4423 !important;
  border-color: transparent !important;
  color: #fff !important;
}

.nb-trust-side__tab:hover,
.nb-trust-side__badge.is-open .nb-trust-side__tab {
  filter: brightness(1.08);
}

.nb-trust-side__tab-icon,
.nb-trust-side__tab-icon svg {
  color: #fff !important;
  stroke: currentColor;
}

.nb-trust-side__tab-icon {
  display: inline-flex;
  writing-mode: horizontal-tb;
}

.nb-trust-side__tab-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff !important;
}

.nb-trust-side__panel {
  width: 260px;
  padding: 14px 14px 14px 16px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #e8dfd4;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: -8px 8px 28px rgba(26, 39, 68, 0.16);
}

.nb-trust-side__panel[hidden] {
  display: none !important;
}

.nb-trust-side__title {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-trust-navy);
  line-height: 1.3;
}

.nb-trust-side__badge--deposit .nb-trust-side__title {
  color: var(--nb-trust-copper);
}

.nb-trust-side__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: #3a3a3a;
}

/* Laisser l’onglet devise un peu plus bas pour éviter le chevauchement */
@media (min-width: 769px) {
  body.nb-trust-badges-on .woocommerce-multi-currency.wmc-sidebar {
    top: 62% !important;
  }
}

/* Mobile : bandeau centré, badges côtés en pastilles */
@media (max-width: 768px) {
  :root {
    --nb-trust-top-h: auto;
  }

  .nb-trust-top {
    padding: 8px 40px 8px 12px;
    justify-content: center;
  }

  .nb-trust-top__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
  }

  .nb-trust-top__item {
    justify-content: center;
    font-size: 12px;
    text-align: center;
  }

  .nb-trust-top__divider {
    display: none;
  }

  .nb-trust-side {
    top: auto;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    right: 0;
    gap: 8px;
  }

  .nb-trust-side__tab {
    width: 38px;
    min-height: 72px;
    padding: 10px 5px;
  }

  .nb-trust-side__panel {
    width: min(240px, calc(100vw - 56px));
    padding: 12px;
  }

  /* Éviter collision avec badge Google + bottom nav */
  .nb-google-badge {
    bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 480px) {
  .nb-trust-top__text {
    display: inline;
  }
}
