/*
 * From Uiverse.io by mrhyddenn - https://uiverse.io/mrhyddenn/stale-cheetah-42
 * MIT License, Copyright (c) mrhyddenn
 * From Uiverse.io by FColombati - https://uiverse.io/FColombati/spotty-snake-82
 * MIT License, Copyright (c) FColombati (Francesco Colombati)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

.affiliate-button-glow {
  display: inline-block;
  position: relative;
  padding: 10px 20px;
  border-radius: 7px;
  border: 1px solid rgb(61, 106, 255);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none;
  background: transparent;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 0 transparent;
  transition: all 0.2s ease-in;
}

.affiliate-button-glow:hover {
  background: rgb(61, 105, 255);
  box-shadow: 0 0 30px 5px rgba(0, 142, 236, 0.815);
  transition: all 0.2s ease-out;
}

.affiliate-button-glow::before {
  content: '';
  display: block;
  width: 0;
  height: 86%;
  position: absolute;
  top: 7%;
  left: 0%;
  opacity: 0;
  background: #fff;
  box-shadow: 0 0 50px 30px #fff;
  transform: skewX(-20deg);
  pointer-events: none;
}

.affiliate-button-glow:hover::before {
  animation: affiliate-glow-sweep 0.5s linear;
}

@keyframes affiliate-glow-sweep {
  from { opacity: 0; left: 0%; }
  50% { opacity: 1; }
  to { opacity: 0; left: 100%; }
}

.affiliate-button-glow:active {
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 0.2s ease-in;
}

.affiliate-button-glow:focus-visible { outline-color: #fff; }

.affiliate-button-relief {
  all: unset;
  display: inline-block;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  position: relative;
  border-radius: 100em;
  background-color: rgba(0, 0, 0, 0.75);
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.25),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1);
}

.affiliate-button-relief::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  top: -0.15em;
  left: -0.15em;
  border-radius: inherit;
  background: linear-gradient(-135deg, rgba(5, 5, 5, 0.5), transparent 20%, transparent 100%);
  filter: blur(0.0125em);
  opacity: 0.25;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.affiliate-button-relief-outer {
  display: block;
  position: relative;
  z-index: 1;
  border-radius: inherit;
  transition: box-shadow 300ms ease;
  box-shadow:
    0 0.05em 0.05em -0.01em rgba(5, 5, 5, 1),
    0 0.01em 0.01em -0.01em rgba(5, 5, 5, 0.5),
    0.15em 0.3em 0.1em -0.01em rgba(5, 5, 5, 0.25);
}

.affiliate-button-relief:hover .affiliate-button-relief-outer {
  box-shadow:
    0 0 0 0 rgba(5, 5, 5, 1),
    0 0 0 0 rgba(5, 5, 5, 0.5),
    0 0 0 0 rgba(5, 5, 5, 0.25);
}

.affiliate-button-relief-inner {
  display: block;
  position: relative;
  z-index: 1;
  border-radius: inherit;
  padding: 1em 1.5em;
  background-image: linear-gradient(135deg, rgb(230, 230, 230), rgb(180, 180, 180));
  transition: box-shadow 300ms ease, clip-path 250ms ease, background-image 250ms ease, transform 250ms ease;
  overflow: clip;
  clip-path: inset(0 round 100em);
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.1),
    -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.25),
    0 0 0 0 inset rgba(5, 5, 5, 0.1),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.25),
    0.025em 0.05em 0.1em 0 inset rgb(255, 255, 255),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
    -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.25);
}

.affiliate-button-relief:hover .affiliate-button-relief-inner {
  clip-path: inset(clamp(1px, 0.0625em, 2px) round 100em);
  box-shadow:
    0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.75),
    -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.5),
    0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.5),
    0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.15),
    0 0 0 0 inset rgb(255, 255, 255),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
    -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.25);
}

.affiliate-button-relief-label {
  position: relative;
  z-index: 4;
  font-family: Inter, var(--body);
  letter-spacing: -0.05em;
  font-weight: 500;
  color: transparent;
  background-image: linear-gradient(135deg, rgb(25, 25, 25), rgb(75, 75, 75));
  -webkit-background-clip: text;
  background-clip: text;
  transition: transform 250ms ease;
  display: block;
  text-shadow: rgba(0, 0, 0, 0.1) 0 0 0.1em;
  user-select: none;
}

.affiliate-button-relief:hover .affiliate-button-relief-label,
.affiliate-button-relief:active .affiliate-button-relief-inner { transform: scale(0.975); }

.affiliate-button-relief:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; }

.offer-group { display: grid; gap: .8rem; }
.offer-group .offer-disclosure { font-size: .9rem; color: var(--muted); }
.offer { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--white); }
.offer > p { margin-top: .35rem; }
.offer-button-surface {
  display: inline-flex;
  max-width: 100%;
  margin-top: .7rem;
  padding: .65rem;
  border-radius: .3rem;
  background: #212121;
}
.offer-button-surface--relief { background: #e8e8e8; }

@media (prefers-reduced-motion: reduce) {
  .affiliate-button-glow:hover::before { animation: none; }
}

@media (forced-colors: active) {
  .affiliate-button-relief { border: 1px solid LinkText; }
  .affiliate-button-relief-label { color: LinkText; }
}
