﻿.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  pointer-events: none;
}

.sticky-cta__inner {
  width: min(calc(100% - 32px), 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(24, 33, 44, .98), rgba(15, 21, 29, .98));
  box-shadow: 0 12px 36px rgba(0, 0, 0, .32);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

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

.sticky-cta__logo {
  display: flex;
  align-items: center;
  width: 96px;
  min-width: 0;
}

.sticky-cta__logo img {
  display: block;
  width: 100%;
  height: 40px;
  object-fit: contain;
}

.sticky-cta__logo .logo-mark {
  display: none;
}

.sticky-cta__logo .site-logo__text {
  display: block;
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.7px;
  line-height: 1.1;
  white-space: nowrap;
}

.sticky-cta__bonus {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sticky-cta__bonus>span,
.sticky-cta__promo-label {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.sticky-cta__bonus strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.sticky-cta__code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  max-width: 160px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.sticky-cta__promo-label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 9px;
}

.sticky-cta__code-value {
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sticky-cta__copy-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1;
  color: var(--text-soft);
}

.sticky-cta__copy-icon svg {
  width: 13px;
  height: 13px;
}

.sticky-cta__copy-icon::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: scale(.65);
  transition: opacity .18s ease, transform .18s ease;
}

.sticky-cta__copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sticky-cta__code-value {
  font-weight: 700;
}

.sticky-cta__code.is-copied {
  border-color: rgba(49, 201, 138, .32);
  background: rgba(49, 201, 138, .035);
}

.sticky-cta__code.is-copied .sticky-cta__copy-icon svg {
  visibility: hidden;
}

.sticky-cta__code.is-copied .sticky-cta__copy-icon::after {
  opacity: 1;
  transform: scale(1);
}

.sticky-cta__button {
  min-width: 144px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--accent-2), var(--accent) 65%);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 5px 18px rgba(255, 59, 48, .16);
  transition: transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .sticky-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 59, 48, .24);
  }

  .sticky-cta__code:hover {
    border-color: var(--text-muted);
  }
}

@media (max-width: 640px) {
  .sticky-cta {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta__inner,
  .sticky-cta__inner--no-code {
    width: calc(100% - 24px);
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .sticky-cta__logo {
    width: 76px;
  }

  .sticky-cta__logo img {
    height: 32px;
  }

  .sticky-cta__logo .site-logo__text {
    font-size: 17px;
  }

  .sticky-cta__bonus>span {
    font-size: 9px;
    margin-bottom: 2px;
  }

  .sticky-cta__bonus strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .sticky-cta__code {
    display: none;
  }

  .sticky-cta__button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 13px;
  }

  body:has(.js-sticky-cta) .footer-inner {
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta__button:hover {
    transform: none;
  }
}

.sticky-cta__code.is-copied:hover {
  border-color: rgba(49, 201, 138, .32);
  background: rgba(49, 201, 138, .035);
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta__copy-icon::after {
    transition: none;
    transform: none;
  }
}