/* ==============================
   Sticky CTA Base
============================== */

.sticky-cta {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 18px;
  z-index: 95;

  width: min(920px, calc(100% - 28px));
  padding: 8px;

  border-radius: 22px;
  border: 1px solid rgba(246, 189, 59, 0.28);

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(246, 189, 59, 0.08),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(17, 19, 21, 0.94),
      rgba(7, 8, 9, 0.96)
    );

  backdrop-filter: blur(16px);

  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateX(-50%) translateY(calc(100% + 30px));

  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease;
}

/* ==============================
   Sticky CTA Hidden State
============================== */

.sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateX(-50%) translateY(0);
}

/* ==============================
   Sticky CTA Layout
============================== */

.sticky-cta__inner {
  width: 100%;
  margin: 0;

  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr) 170px;
  gap: 8px;
  align-items: center;
}


/* ==============================
   Sticky Logo
============================== */

.sticky-cta__logo {
  padding-left: 10px;

  color: #f8f8f8;
  font-size: 15px;
  font-weight: 950;
}

.sticky-cta__logo img {
  display: block;

  max-width: 108px;
  max-height: 32px;
  margin: 0;

  border-radius: 0;
}


/* ==============================
   Bonus And Promo Blocks
============================== */

.sticky-cta__bonus,
.sticky-cta__code {
  min-width: 0;
  min-height: 48px;
  padding: 8px 13px;

  display: grid;
  align-content: center;
  gap: 3px;

  border-radius: 15px;
  border: 1px solid rgba(246, 189, 59, 0.16);

  background: rgba(255, 255, 255, 0.035);
}

.sticky-cta__bonus span,
.sticky-cta__code span {
  color: rgba(255, 255, 255, 0.48);

  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sticky-cta__bonus strong,
.sticky-cta__code strong {
  min-width: 0;
  overflow: hidden;

  color: #f8f8f8;
  font-size: 14px;
  font-weight: 900;

  white-space: nowrap;
  text-overflow: ellipsis;
}


/* ==============================
   Promo Code
============================== */

.sticky-cta__code {
  position: relative;

  padding-right: 42px;

  cursor: pointer;

  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.sticky-cta__code strong {
  color: #ffe18a;
}

.sticky-cta__copy-icon {
  position: absolute;
  top: 50%;
  right: 14px;

  color: rgba(246, 189, 59, 0.62);
  font-size: 17px;

  transform: translateY(-50%);

  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.sticky-cta__code:hover {
  border-color: rgba(246, 189, 59, 0.38);
  background: rgba(246, 189, 59, 0.06);
}

.sticky-cta__code:hover .sticky-cta__copy-icon {
  color: #ffe18a;
  transform: translateY(-50%) scale(1.08);
}


/* ==============================
   Promo Code Copied State
============================== */

.sticky-cta__code.is-copied {
  border-color: rgba(246, 189, 59, 0.55);

  background: rgba(246, 189, 59, 0.09);

  box-shadow: 0 0 18px rgba(246, 189, 59, 0.12);
}

.sticky-cta__code.is-copied .sticky-cta__copy-icon {
  color: #ffe18a;
  transform: translateY(-50%) scale(1.18);
}


/* ==============================
   CTA Button
============================== */

.sticky-cta__button {
  min-height: 48px;
  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;
  border: 1px solid rgba(255, 230, 145, 0.7);

  background: linear-gradient(135deg, #ffe18a, #f6bd3b);

  color: #120d05 !important;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;

  box-shadow:
    0 12px 28px rgba(246, 189, 59, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.sticky-cta__button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 16px 38px rgba(246, 189, 59, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}


/* ==============================
   Tablet Responsive
============================== */

@media (max-width: 768px) {
  .sticky-cta {
    bottom: 12px;

    width: calc(100% - 20px);

    border-radius: 20px;
  }

  .sticky-cta__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sticky-cta__logo {
    display: none;
  }

  .sticky-cta__button {
    grid-column: 1 / -1;
  }

  .scroll-top {
    right: 14px;
    bottom: 132px;

    width: 46px;
    height: 46px;
  }
}


/* ==============================
   Small Mobile Responsive
============================== */

@media (max-width: 480px) {
  .sticky-cta {
    width: calc(100% - 16px);
    padding: 7px;

    border-radius: 18px;
  }

  .sticky-cta__inner {
    gap: 7px;
  }

  .sticky-cta__bonus,
  .sticky-cta__code {
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 13px;
  }

  .sticky-cta__bonus span,
  .sticky-cta__code span {
    font-size: 9px;
  }

  .sticky-cta__bonus strong,
  .sticky-cta__code strong {
    font-size: 12px;
  }

  .sticky-cta__code {
    padding-right: 34px;
  }

  .sticky-cta__copy-icon {
    right: 10px;
    font-size: 15px;
  }

  .sticky-cta__button {
    min-height: 44px;
    border-radius: 13px;
    font-size: 13px;
  }
}