.three-safe-capsules {
  --ts-brand: #241b70;
  --ts-brand-2: #33268b;
  --ts-red: #a71d32;
  --ts-text: #1d2433;
  --ts-muted: #667085;
  --ts-line: #e5e7ee;
  --ts-surface: #ffffff;
  --ts-soft: #f7f7fb;
  --ts-tint: #f0effa;
  --ts-shadow-sm: 0 1px 2px rgba(25, 30, 55, .06), 0 4px 14px rgba(25, 30, 55, .05);
  --ts-shadow-md: 0 10px 32px rgba(31, 25, 86, .13);
  --ts-radius-lg: 22px;
  --ts-radius-md: 15px;
  --ts-focus: 0 0 0 4px rgba(47, 42, 138, .18);
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  margin: 1.5rem 0;
  border: 1px solid #e1e2eb;
  border-radius: 24px;
  overflow: clip;
  background: var(--ts-soft);
  color: var(--ts-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 18px 50px rgba(31, 25, 86, .08);
  -webkit-font-smoothing: antialiased;
}

.three-safe-capsules,
.three-safe-capsules *,
.three-safe-capsules *::before,
.three-safe-capsules *::after {
  box-sizing: border-box;
}

.three-safe-capsules [hidden] {
  display: none !important;
}

.three-safe-capsules a {
  color: inherit;
}

.three-safe-capsules button,
.three-safe-capsules input,
.three-safe-capsules select {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.three-safe-capsules button,
.three-safe-capsules select {
  cursor: pointer;
}

.three-safe-capsules button:focus-visible,
.three-safe-capsules input:focus-visible,
.three-safe-capsules select:focus-visible,
.three-safe-capsules a:focus-visible {
  outline: none;
  box-shadow: var(--ts-focus);
}

.three-safe-capsules__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.three-safe-capsules__skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100000;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: .6rem;
  background: var(--ts-brand);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
}

.three-safe-capsules__skip-link:focus {
  transform: translateY(0);
}

.three-safe-capsules__hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(132deg, #1d165f 0%, #302381 58%, #4a2a79 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.three-safe-capsules__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, transparent 0 46%, rgba(255, 255, 255, .045) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .11), transparent 18rem);
  pointer-events: none;
}

.three-safe-capsules__hero-inner {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 1.35rem clamp(1rem, 3vw, 3rem) 1.6rem;
}

.three-safe-capsules__brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.three-safe-capsules__brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}

.three-safe-capsules__logo {
  display: block;
  width: clamp(78px, 8vw, 106px);
  height: clamp(78px, 8vw, 106px);
  flex: 0 0 auto;
  object-fit: contain;
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}

.three-safe-capsules__eyebrow {
  margin: 0 0 .2rem !important;
  color: rgba(255, 255, 255, .76);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.three-safe-capsules__title {
  max-width: 900px;
  margin: 0 !important;
  padding: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.three-safe-capsules__hero-copy {
  max-width: 940px;
  margin: .55rem 0 0 !important;
  color: rgba(255, 255, 255, .83);
  font-size: clamp(.94rem, 1.4vw, 1.05rem);
}

.three-safe-capsules__hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.three-safe-capsules__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  max-width: 900px;
  margin-top: 1.25rem;
}

.three-safe-capsules__stat {
  padding: .72rem .85rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .075);
}

.three-safe-capsules__stat strong,
.three-safe-capsules__stat span {
  display: block;
}

.three-safe-capsules__stat strong {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.1;
}

.three-safe-capsules__stat span {
  margin-top: .18rem;
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
}

.three-safe-capsules__main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 1.1rem clamp(1rem, 3vw, 3rem) 4rem;
  background:
    radial-gradient(circle at 8% -10%, rgba(51, 38, 139, .07), transparent 34rem),
    radial-gradient(circle at 92% 0%, rgba(167, 29, 50, .05), transparent 27rem),
    var(--ts-soft);
}

.three-safe-capsules--without-header .three-safe-capsules__main {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.three-safe-capsules__controls-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.three-safe-capsules__controls {
  width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 1rem;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-radius-lg);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--ts-shadow-md);
}

.three-safe-capsules__search-row {
  display: block;
  width: 100%;
  min-width: 0;
}

.three-safe-capsules__filters-row {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
  gap: .75rem;
  width: 100%;
  min-width: 0;
  margin-top: .75rem;
}

.three-safe-capsules__field {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.three-safe-capsules__field--search {
  flex: 1 1 100%;
}

.three-safe-capsules__field--filter {
  flex: 1 1 210px;
}

.three-safe-capsules__field label {
  display: block;
  margin: 0 0 .35rem;
  color: #444b5d;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.three-safe-capsules__control-box {
  position: relative;
  width: 100%;
  min-width: 0;
}

.three-safe-capsules__control-icon {
  position: absolute;
  top: 50%;
  left: .83rem;
  z-index: 1;
  transform: translateY(-50%);
  color: #777e91;
  pointer-events: none;
}

.three-safe-capsules input[type="search"],
.three-safe-capsules select {
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 46px;
  border: 1px solid #d7dae4;
  border-radius: 11px;
  background-color: #fff;
  color: var(--ts-text);
  box-shadow: none;
  line-height: 1.3;
}

.three-safe-capsules input[type="search"] {
  appearance: none;
  padding: .75rem 2.6rem .75rem 2.7rem;
}

.three-safe-capsules input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.three-safe-capsules select {
  appearance: none;
  padding: .72rem 2.25rem .72rem .8rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position: calc(100% - 15px) 20px, calc(100% - 10px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.three-safe-capsules input[type="search"]:hover,
.three-safe-capsules select:hover {
  border-color: #b5b9c7;
}

.three-safe-capsules__clear-search {
  display: none;
  position: absolute;
  top: 50%;
  right: .55rem;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #697083;
}

.three-safe-capsules__clear-search.is-visible {
  display: grid;
}

.three-safe-capsules__clear-search:hover {
  background: #f0f1f5;
  color: #22283a;
}

.three-safe-capsules__reset {
  box-sizing: border-box !important;
  display: inline-flex;
  position: relative;
  flex: 0 1 180px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .7rem .92rem;
  border: 1px solid #d7dae4;
  border-radius: 11px;
  background: #f9f9fc;
  color: #343a4c;
  font-weight: 800;
  line-height: 1.2;
}

.three-safe-capsules__reset:hover {
  border-color: #aaaebe;
  background: #f2f2f7;
}

.three-safe-capsules__control-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .85rem .15rem 0;
  color: var(--ts-muted);
  font-size: .82rem;
}

.three-safe-capsules__control-note p {
  margin: 0 !important;
}

.three-safe-capsules[data-ts-ready="waiting"] .three-safe-capsules__controls {
  outline: 2px solid transparent;
}

.three-safe-capsules kbd {
  padding: .05rem .35rem;
  border: 1px solid #d7dae4;
  border-bottom-width: 2px;
  border-radius: .32rem;
  background: #fff;
  color: #4c5364;
  font: inherit;
  font-weight: 800;
}

.three-safe-capsules__results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem .15rem .85rem;
}

.three-safe-capsules__result-count {
  margin: 0 !important;
  color: var(--ts-muted);
  font-size: .92rem;
}

.three-safe-capsules__result-count strong {
  color: var(--ts-text);
  font-size: 1.03rem;
}

.three-safe-capsules__legend {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  color: var(--ts-muted);
  font-size: .75rem;
}

.three-safe-capsules__legend-item {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
}

.three-safe-capsules__legend-item > span {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: currentColor;
}

.three-safe-capsules__legend-item--discovery { color: #3d8458; }
.three-safe-capsules__legend-item--intermediate { color: #2c7797; }
.three-safe-capsules__legend-item--advanced { color: #b17000; }
.three-safe-capsules__legend-item--expert { color: #ae4055; }

.three-safe-capsules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr));
  gap: 1rem;
  align-items: stretch;
}

.three-safe-capsules__card {
  --ts-accent: var(--ts-brand);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-radius-md);
  background: var(--ts-surface);
  box-shadow: var(--ts-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.three-safe-capsules__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--ts-accent);
}

.three-safe-capsules__card:hover {
  transform: translateY(-3px);
  border-color: var(--ts-accent);
  box-shadow: var(--ts-shadow-md);
}

.three-safe-capsules__card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.05rem .9rem;
}

.three-safe-capsules__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 36px;
}

.three-safe-capsules__theme-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e5e3f3;
  border-radius: 10px;
  background: #f3f2fa;
  color: var(--ts-accent);
}

.three-safe-capsules__badge-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  flex-wrap: wrap;
}

.three-safe-capsules__level,
.three-safe-capsules__format-badge {
  display: inline-flex;
  align-items: center;
  padding: .27rem .52rem;
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.three-safe-capsules__format-badge {
  border: 1px solid #e1e3e9;
  background: #f3f4f7;
  color: #555d71;
}

.three-safe-capsules__level {
  border: 1px solid transparent;
}

.three-safe-capsules__level[data-level="Découverte"] {
  border-color: #c4e7d0;
  background: #e8f6ed;
  color: #25613d;
}

.three-safe-capsules__level[data-level="Intermédiaire"] {
  border-color: #c5dfe9;
  background: #e7f2f7;
  color: #1f5670;
}

.three-safe-capsules__level[data-level="Avancé"] {
  border-color: #ecd69f;
  background: #fff3d8;
  color: #7a4c00;
}

.three-safe-capsules__level[data-level="Expert"] {
  border-color: #edc3cd;
  background: #fae9ed;
  color: #8b253a;
}

.three-safe-capsules__theme-label {
  margin: .86rem 0 .22rem !important;
  color: var(--ts-accent);
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.three-safe-capsules__card h3 {
  margin: 0 !important;
  padding: 0;
  color: #202638;
  font-size: 1.03rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.012em;
}

.three-safe-capsules__subtheme {
  margin: .5rem 0 .8rem !important;
  color: var(--ts-muted);
  font-size: .84rem;
}

.three-safe-capsules__tags {
  display: flex;
  gap: .36rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.three-safe-capsules__tag {
  max-width: 100%;
  overflow: hidden;
  padding: .27rem .48rem;
  border: 1px solid #e1e3ea;
  border-radius: 999px;
  background: #fafafd;
  color: #52596b;
  font-size: .69rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.three-safe-capsules__tag:hover {
  border-color: var(--ts-accent);
  background: #f4f3fa;
  color: var(--ts-accent);
}

.three-safe-capsules__tag--more {
  cursor: default;
}

.three-safe-capsules__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .78rem 1.05rem 1rem;
  border-top: 1px solid #eceef3;
  background: #fcfcfe;
}

.three-safe-capsules__source-id {
  color: #7b8190;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .055em;
  white-space: nowrap;
}

.three-safe-capsules__launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 38px;
  padding: .55rem .72rem;
  border: 1px solid var(--ts-accent);
  border-radius: 9px;
  background: var(--ts-accent);
  color: #fff !important;
  font-size: .75rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none !important;
  transition: filter .16s ease, transform .16s ease;
}

.three-safe-capsules__launch:hover {
  color: #fff !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.three-safe-capsules__launch .three-safe-capsules__icon {
  width: 1rem;
  height: 1rem;
}

.three-safe-capsules__empty {
  padding: 3rem 1rem;
  border: 1px dashed #cfd2dd;
  border-radius: var(--ts-radius-lg);
  background: rgba(255, 255, 255, .75);
  color: var(--ts-muted);
  text-align: center;
}

.three-safe-capsules__empty .three-safe-capsules__icon {
  width: 2.2rem;
  height: 2.2rem;
  margin: 0 auto .7rem;
  color: var(--ts-brand);
}

.three-safe-capsules__empty h3 {
  margin: 0 0 .3rem !important;
  color: var(--ts-text);
  font-size: 1.2rem;
}

.three-safe-capsules__empty p {
  margin: 0 !important;
}

.three-safe-capsules__footer-note {
  margin: 1.25rem .15rem 0 !important;
  color: var(--ts-muted);
  font-size: .78rem;
}

.three-safe-capsules__back-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 999;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  transform: translateY(12px);
  border: 0;
  border-radius: 50%;
  background: var(--ts-brand);
  color: #fff;
  box-shadow: 0 8px 26px rgba(36, 27, 112, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.three-safe-capsules__back-top.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.three-safe-capsules__back-top:hover {
  background: var(--ts-brand-2);
}

.three-safe-capsules-error {
  padding: 1rem;
  border-left: 4px solid #b11f3c;
  background: #fff1f3;
  color: #7f1d34;
}

.three-safe-capsules-block.alignwide,
.three-safe-capsules-block.alignfull {
  max-width: none;
}

@media (max-width: 1180px) {
  .three-safe-capsules__reset {
    flex: 1 1 180px;
  }
}

@media (max-width: 760px) {
  .three-safe-capsules {
    border-radius: 18px;
  }

  .three-safe-capsules__hero-inner {
    padding-top: 1rem;
  }

  .three-safe-capsules__brand-row {
    align-items: flex-start;
  }

  .three-safe-capsules__logo {
    width: 74px;
    height: 74px;
  }

  .three-safe-capsules__hero-badge {
    display: none;
  }

  .three-safe-capsules__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-safe-capsules__field--filter,
  .three-safe-capsules__reset {
    flex-basis: 100%;
    width: 100%;
  }

  .three-safe-capsules__control-note,
  .three-safe-capsules__results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .three-safe-capsules__legend {
    display: none;
  }

  .three-safe-capsules__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .three-safe-capsules__brand-lockup {
    gap: .8rem;
  }

  .three-safe-capsules__logo {
    width: 66px;
    height: 66px;
  }

  .three-safe-capsules__title {
    font-size: 1.55rem;
  }

  .three-safe-capsules__stats {
    gap: .5rem;
  }

  .three-safe-capsules__stat {
    padding: .62rem .68rem;
  }

  .three-safe-capsules__card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .three-safe-capsules__launch {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .three-safe-capsules *,
  .three-safe-capsules *::before,
  .three-safe-capsules *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .three-safe-capsules {
    border: 0;
    box-shadow: none;
  }

  .three-safe-capsules__hero {
    border: 0;
    background: #fff;
    color: #000;
  }

  .three-safe-capsules__hero::before,
  .three-safe-capsules__controls-wrap,
  .three-safe-capsules__back-top,
  .three-safe-capsules__launch,
  .three-safe-capsules__control-note,
  .three-safe-capsules__stats,
  .three-safe-capsules__hero-badge {
    display: none !important;
  }

  .three-safe-capsules__title,
  .three-safe-capsules__eyebrow,
  .three-safe-capsules__hero-copy {
    color: #000;
  }

  .three-safe-capsules__hero-inner,
  .three-safe-capsules__main {
    max-width: none;
    padding: .5cm;
  }

  .three-safe-capsules__logo {
    width: 55px;
    height: 55px;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .three-safe-capsules__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .35cm;
  }

  .three-safe-capsules__card {
    break-inside: avoid;
    box-shadow: none;
  }

  .three-safe-capsules__card:hover {
    transform: none;
  }
}

/* Consentement préalable et disclaimer – version 1.2.0. */
html.three-safe-capsules-consent-open,
body.three-safe-capsules-consent-open {
  overflow: hidden !important;
}

.three-safe-capsules__consent-modal,
.three-safe-capsules__consent-modal *,
.three-safe-capsules-gate,
.three-safe-capsules-gate * {
  box-sizing: border-box;
}

.three-safe-capsules__consent-modal[hidden],
.three-safe-capsules__consent-error[hidden],
.three-safe-capsules__consent-fallback[hidden] {
  display: none !important;
}

.three-safe-capsules__consent-modal {
  --ts-consent-brand: #241b70;
  --ts-consent-brand-2: #33268b;
  --ts-consent-red: #a71d32;
  --ts-consent-text: #1d2433;
  --ts-consent-muted: #667085;
  --ts-consent-line: #dfe2eb;
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  display: grid;
  place-items: center;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: clamp(.65rem, 2vw, 1.5rem) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.three-safe-capsules__consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 16, 31, .72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.three-safe-capsules__consent-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  max-height: min(95vh, 1200px);
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 20px;
  background: #fff;
  color: var(--ts-consent-text);
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
  overscroll-behavior: contain;
}

.three-safe-capsules__consent-close {
  position: absolute !important;
  top: .75rem !important;
  right: .75rem !important;
  z-index: 2;
  display: grid !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  place-items: center;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  border: 1px solid #dfe2eb !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #34394a !important;
  font: 700 1.55rem/1 system-ui, sans-serif !important;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.three-safe-capsules__consent-close:hover {
  border-color: var(--ts-consent-brand) !important;
  color: var(--ts-consent-brand) !important;
}

.three-safe-capsules__consent-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2.4rem;
}

.three-safe-capsules__consent-header img {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 2px solid #e1e2ec;
  border-radius: 50%;
  background: #fff;
}

.three-safe-capsules__consent-eyebrow {
  margin: 0 0 .15rem !important;
  color: var(--ts-consent-brand);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.three-safe-capsules__consent-header h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ts-consent-text) !important;
  font-size: clamp(1.35rem, 3vw, 1.9rem) !important;
  line-height: 1.15 !important;
}

.three-safe-capsules__consent-header p:last-child {
  margin: .35rem 0 0 !important;
  color: var(--ts-consent-muted);
  font-size: .91rem;
}

.three-safe-capsules__consent-capsule {
  margin: 1rem 0 !important;
  padding: .7rem .85rem;
  border-left: 4px solid var(--ts-consent-brand);
  border-radius: 0 8px 8px 0;
  background: #f3f2fa;
  color: #34394a;
}

.three-safe-capsules__consent-form {
  display: grid;
  gap: .9rem;
  margin: 0;
}

.three-safe-capsules__consent-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.three-safe-capsules__consent-field label {
  display: block;
  margin: 0 0 .35rem;
  color: #262c3d;
  font-weight: 800;
}

.three-safe-capsules__consent-field input[type="email"] {
  display: block !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: .68rem .8rem !important;
  transform: none !important;
  border: 1px solid #bac0cf !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #1d2433 !important;
  font: inherit !important;
  box-shadow: none !important;
}

.three-safe-capsules__consent-field input[type="email"]:focus {
  outline: 3px solid rgba(47,42,138,.18) !important;
  border-color: var(--ts-consent-brand) !important;
}

.three-safe-capsules__consent-field small {
  display: block;
  margin-top: .3rem;
  color: var(--ts-consent-muted);
  font-size: .78rem;
}

.three-safe-capsules__consent-panel {
  margin: 0;
  padding: .9rem 1rem;
  border: 1px solid var(--ts-consent-line);
  border-radius: 12px;
  background: #f8f9fc;
}

.three-safe-capsules__consent-panel--warning {
  border-color: #e6c5ca;
  background: #fff6f7;
}

.three-safe-capsules__consent-panel h2,
.three-safe-capsules__consent-panel h3 {
  margin: 0 0 .45rem !important;
  padding: 0 !important;
  color: #252b3c !important;
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

.three-safe-capsules__consent-panel--warning h2,
.three-safe-capsules__consent-panel--warning h3 {
  color: #8b253a !important;
}

.three-safe-capsules__consent-text,
.three-safe-capsules__consent-text p {
  color: #4d5568;
  font-size: .83rem;
  line-height: 1.55;
}

.three-safe-capsules__consent-text p {
  margin: .35rem 0 !important;
}

.three-safe-capsules__consent-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .8rem;
  margin: .65rem 0;
  font-size: .76rem;
}

.three-safe-capsules__consent-details > div {
  min-width: 0;
  padding: .42rem .5rem;
  border-radius: 7px;
  background: rgba(255,255,255,.8);
}

.three-safe-capsules__consent-details dt {
  margin: 0;
  color: #31384a;
  font-weight: 850;
}

.three-safe-capsules__consent-details dd {
  margin: .08rem 0 0;
  overflow-wrap: anywhere;
  color: #60687a;
}

.three-safe-capsules__consent-panel a {
  color: var(--ts-consent-brand) !important;
  font-weight: 700;
}

.three-safe-capsules__consent-check {
  display: grid !important;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  margin: .7rem 0 0 !important;
  padding: .7rem .75rem;
  border: 1px solid #d5d8e3;
  border-radius: 9px;
  background: #fff;
  color: #2f3546;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}

.three-safe-capsules__consent-check input[type="checkbox"] {
  position: relative !important;
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  min-width: 21px !important;
  min-height: 21px !important;
  margin: .08rem 0 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  appearance: auto !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.three-safe-capsules__consent-error {
  padding: .72rem .85rem;
  border: 1px solid #d97b89;
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff0f2;
  color: #7c1f32;
  font-size: .86rem;
  font-weight: 700;
}

.three-safe-capsules__consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
  padding-top: .1rem;
}

.three-safe-capsules__consent-cancel,
.three-safe-capsules__consent-submit {
  min-height: 44px !important;
  margin: 0 !important;
  padding: .65rem 1rem !important;
  transform: none !important;
  border-radius: 9px !important;
  font: 800 .88rem/1.2 system-ui, sans-serif !important;
  text-transform: none !important;
  cursor: pointer;
}

.three-safe-capsules__consent-cancel {
  border: 1px solid #c8ccd7 !important;
  background: #fff !important;
  color: #434a5d !important;
}

.three-safe-capsules__consent-submit {
  border: 1px solid var(--ts-consent-brand) !important;
  background: var(--ts-consent-brand) !important;
  color: #fff !important;
}

.three-safe-capsules__consent-submit:hover {
  background: var(--ts-consent-brand-2) !important;
}

.three-safe-capsules__consent-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.three-safe-capsules__consent-fallback {
  margin: 0 !important;
  padding: .75rem;
  border-radius: 8px;
  background: #eef6ff;
  color: #224b70;
  font-size: .86rem;
}

.three-safe-capsules__consent-fallback a {
  color: var(--ts-consent-brand) !important;
  font-weight: 850;
}

.three-safe-capsules-gate-page {
  min-height: 100vh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  background: #f3f3f8;
  color: #1d2433;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.three-safe-capsules-gate {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #dedfe8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(31,25,86,.12);
}

.three-safe-capsules-gate__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.three-safe-capsules-gate__brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border: 2px solid #e2e3eb;
  border-radius: 50%;
}

.three-safe-capsules-gate__brand p,
.three-safe-capsules-gate__brand h1 {
  margin: 0;
}

.three-safe-capsules-gate__brand p {
  color: #2f2a8a;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.three-safe-capsules-gate__brand h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.three-safe-capsules-gate__capsule {
  padding: .75rem;
  border-left: 4px solid #2f2a8a;
  background: #f3f2fa;
}

.three-safe-capsules__consent-form--standalone .three-safe-capsules__consent-submit {
  justify-self: end;
}

@media (max-width: 680px) {
  .three-safe-capsules__consent-modal {
    padding: .45rem !important;
  }

  .three-safe-capsules__consent-dialog {
    max-height: 96vh;
    padding: 1rem;
    border-radius: 14px;
  }

  .three-safe-capsules__consent-header {
    align-items: flex-start;
  }

  .three-safe-capsules__consent-header img {
    width: 52px;
    height: 52px;
  }

  .three-safe-capsules__consent-details {
    grid-template-columns: 1fr;
  }

  .three-safe-capsules__consent-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .three-safe-capsules__consent-cancel,
  .three-safe-capsules__consent-submit {
    width: 100% !important;
  }
}

@media print {
  .three-safe-capsules__consent-modal {
    display: none !important;
  }
}
