/* =====================================================
   purchase_cta.css — shared CTA component
   Used by: single, addon, essential, extra, deluxe, eaplay
   ===================================================== */

/* ============ CONTAINER ============ */
.cta {
  position: fixed;
  bottom: calc(104px + var(--app-safe-area-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 380px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Subscription pages: no fav button, full-width button */
.cta.purchase-cta--full {
  width: calc(100% - 32px);
}

/* ============ FAVOURITE BUTTON ============ */
.fav-square {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: all .25s;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.fav-square:hover { color: rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.08); }
.fav-square svg { width: 22px; height: 22px; stroke-width: 1.8; }
.fav-square.active {
  color: var(--red-bright);
  background: rgba(255, 71, 87, 0.12);
  border-color: rgba(255, 71, 87, 0.35);
}
.fav-square.active svg { fill: currentColor; }

/* ============ CTA BUTTON — game/addon variant ============ */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--blue);
  border-radius: 14px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #cfe0ff;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all .25s;
}
.cta-btn:hover { background: rgba(74, 124, 255, 0.1); color: #fff; }
.cta-btn:active { transform: scale(0.98); }
.cta-btn svg { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }

/* ============ CTA BUTTON — subscription variant ============ */
.cta-btn--sub {
  background: linear-gradient(160deg, rgba(74, 124, 255, 0.2) 0%, rgba(74, 124, 255, 0.08) 100%);
  border: 1px solid rgba(74, 124, 255, 0.35);
  color: #fff;
}
.cta-btn--sub:hover {
  background: linear-gradient(160deg, rgba(74, 124, 255, 0.28), rgba(74, 124, 255, 0.12));
  color: #fff;
}

/* ============ IN-CART STATE (both variants) ============ */
.cta-btn.in-cart {
  background: linear-gradient(160deg, rgba(52, 199, 89, 0.22) 0%, rgba(52, 199, 89, 0.08) 100%);
  border-color: rgba(52, 199, 89, 0.45);
  color: #5ed4a3;
}
