.trl-affiliate-link--inline {
  overflow-wrap: anywhere;
}

.trl-affiliate-link--cta {
  --trl-cta-top: #ffe8ad;
  --trl-cta-middle: #f4c76f;
  --trl-cta-bottom: #d79a2b;
  --trl-cta-edge: #8a570d;
  --trl-cta-ink: #171006;
  --trl-cta-glow: rgba(255, 199, 94, 0.55);
  --trl-cta-shadow: rgba(0, 0, 0, 0.34);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 52px;
  margin-top: 1rem;
  padding: 0.88rem 1.35rem;
  border: 1px solid rgba(255, 235, 184, 0.9);
  border-radius: 999px;
  color: var(--trl-cta-ink);
  background: linear-gradient(180deg, var(--trl-cta-top) 0%, var(--trl-cta-middle) 48%, var(--trl-cta-bottom) 100%);
  box-shadow:
    0 0 0 2px rgba(255, 207, 111, 0.28),
    0 0 1.25rem 0.2rem var(--trl-cta-glow),
    0 4px 0 var(--trl-cta-edge),
    0 0.8rem 1.5rem var(--trl-cta-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -0.75rem 1.1rem rgba(104, 62, 0, 0.18);
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.trl-affiliate-link--cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px 7px auto;
  height: 46%;
  border-radius: 999px 999px 55% 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.trl-affiliate-link--cta::after {
  content: "\2192";
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  font-size: 1.08em;
  line-height: 1;
  transition: transform 180ms ease;
}

.trl-affiliate-link--cta .trl-affiliate-link__label {
  position: relative;
  z-index: 1;
}

.trl-affiliate-link--cta:visited {
  color: var(--trl-cta-ink);
}

.trl-affiliate-link--cta:active {
  transform: translateY(4px) scale(0.985);
  filter: saturate(1.04) brightness(0.98);
  box-shadow:
    0 0 0 1px rgba(255, 220, 150, 0.42),
    0 0 0.75rem 0.12rem rgba(255, 199, 94, 0.48),
    0 1px 0 var(--trl-cta-edge),
    0 0.3rem 0.65rem rgba(0, 0, 0, 0.28),
    inset 0 0.5rem 1rem rgba(88, 48, 0, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24);
}

@media (hover: hover) and (pointer: fine) {
  .trl-affiliate-link--cta:hover {
    color: var(--trl-cta-ink);
    filter: saturate(1.08) brightness(1.03);
    transform: translateY(-1px);
    box-shadow:
      0 0 0 2px rgba(255, 211, 127, 0.38),
      0 0 1.55rem 0.3rem rgba(255, 199, 94, 0.68),
      0 5px 0 var(--trl-cta-edge),
      0 0.95rem 1.7rem var(--trl-cta-shadow),
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      inset 0 -0.75rem 1.1rem rgba(104, 62, 0, 0.18);
  }

  .trl-affiliate-link--cta:hover::after {
    transform: translateX(0.18rem);
  }
}

.trl-affiliate-link:focus-visible {
  outline: 3px solid #fff7d6;
  outline-offset: 4px;
  box-shadow:
    0 0 0 2px #5c3700,
    0 0 0 7px rgba(255, 207, 111, 0.48),
    0 4px 0 var(--trl-cta-edge),
    0 0.8rem 1.5rem var(--trl-cta-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .trl-affiliate-link--cta {
  --trl-cta-top: #f2d59c;
  --trl-cta-middle: #d9ad62;
  --trl-cta-bottom: #b97e2c;
  --trl-cta-edge: #714307;
  --trl-cta-glow: rgba(255, 193, 82, 0.62);
  --trl-cta-shadow: rgba(0, 0, 0, 0.48);
}

[data-theme="light"] .trl-affiliate-link--cta {
  --trl-cta-top: #ffe8ad;
  --trl-cta-middle: #f4c76f;
  --trl-cta-bottom: #dca035;
  --trl-cta-edge: #94600f;
  --trl-cta-glow: rgba(235, 170, 47, 0.35);
  --trl-cta-shadow: rgba(105, 66, 8, 0.24);
}

@media (max-width: 600px) {
  .trl-affiliate-link--cta {
    width: 100%;
    min-height: 56px;
    padding: 1rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trl-affiliate-link--cta,
  .trl-affiliate-link--cta::before,
  .trl-affiliate-link--cta::after {
    transition: none;
  }
}
