/* ============================================================
   ChromaShed boost — download button ad-flow styles
   The button itself is enlarged via class swap in markup:
   h-12 -> h-14, text-base -> text-lg, icons h-5 w-5 -> h-6 w-6
   The ad-flow visuals live on a purely additive overlay span
   (.cs-ovl) inside the button, so React is never disturbed.
   ============================================================ */

/* ---------- overlay shell ---------- */
.cs-has-ovl {
  position: relative !important;
}

.cs-ovl {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: inherit;
  overflow: hidden;
  background: var(--primary, #16a34a);
  color: var(--primary-foreground, #ffffff);
  pointer-events: auto;
}

/* ---------- countdown state (first click) ---------- */
.cs-c-spin {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: 3px solid rgba(255, 255, 255, .28);
  border-top-color: #ffffff;
  animation: cs-rot .8s linear infinite;
}

.cs-c-txt {
  font-weight: 700;
  letter-spacing: .01em;
}

.cs-c-num {
  font-size: 1.25em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cs-c-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(0, 0, 0, .28);
  pointer-events: none;
}

.cs-c-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, .75));
  animation: cs-fill 2s linear forwards;
}

@keyframes cs-rot {
  to { transform: rotate(360deg); }
}

@keyframes cs-fill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ---------- ready state (after the visitor returns from the ad) ---------- */
.cs-ovl-ready {
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(135deg, #16a34a 0%, #059669 55%, #0d9488 100%) !important;
  color: #ffffff;
  animation: cs-pulse 1.6s ease-in-out infinite;
}

.cs-r1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
}

.cs-r1 svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.cs-r2 {
  font-size: .8rem;
  font-weight: 500;
  opacity: .9;
  line-height: 1.25;
}

@keyframes cs-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .55), 0 10px 30px -10px rgba(16, 185, 129, .65);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0), 0 14px 38px -10px rgba(16, 185, 129, .8);
    transform: scale(1.025);
  }
}

/* ---------- done state (download opened) ---------- */
.cs-ovl-done {
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(135deg, #059669 0%, #0d9488 60%, #0891b2 100%) !important;
  color: #ffffff;
  animation: cs-done-in .35s ease-out;
}

.cs-ovl-done .cs-r1 svg {
  width: 21px;
  height: 21px;
}

@keyframes cs-done-in {
  from { transform: scale(.96); opacity: .6; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ---- footer privacy link (v3) ---- */
footer a.cs-ftr-privacy {
  color: inherit;
  margin-left: 2px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
footer a.cs-ftr-privacy:hover {
  color: var(--primary, #2fc96b);
  text-decoration-color: currentColor;
}
