/* tikishsaytlar.com - mobile sticky affiliate CTA bar (operator review pages) */

.sticky-cta-bar {
  display: none;
}

@media (max-width: 900px) {
  .sticky-cta-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--surface, #ffffff);
    border-top: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
    padding: calc(env(safe-area-inset-bottom, 0px) + 10px) 12px 10px;
  }

  [data-theme="dark"] .sticky-cta-bar {
    background: #0f172a;
    border-top-color: #1e293b;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.4);
  }

  .sticky-cta-inner {
    display: flex;
    gap: 8px;
    align-items: stretch;
    max-width: 640px;
    margin: 0 auto;
  }

  .sticky-cta-code {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    min-height: 48px;
    min-width: 108px;
    border: 2px dashed var(--accent, #1e40af);
    border-radius: 12px;
    background: rgba(30, 64, 175, 0.06);
    color: var(--text-primary, #111);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: transform .1s;
  }

  .sticky-cta-code:active {
    transform: scale(0.98);
  }

  [data-theme="dark"] .sticky-cta-code {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    color: #e2e8f0;
  }

  .sticky-cta-code-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    line-height: 1;
  }

  .sticky-cta-code-value {
    font-family: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 800;
    color: var(--accent, #1e40af);
    line-height: 1.1;
    letter-spacing: 0.02em;
  }

  [data-theme="dark"] .sticky-cta-code-value {
    color: #93c5fd;
  }

  .sticky-cta-go {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    min-height: 48px;
    background: var(--accent, #1e40af);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.28);
    transition: transform .1s, box-shadow .1s;
    -webkit-tap-highlight-color: transparent;
  }

  .sticky-cta-go:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.28);
  }

  [data-theme="dark"] .sticky-cta-go {
    background: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  }

  .sticky-cta-toast {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translate(-50%, 8px);
    opacity: 0;
    pointer-events: none;
    background: #111827;
    color: #ffffff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: opacity .18s, transform .18s;
  }

  .sticky-cta-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
