/**
 * sticky_cta.css — Mobile sticky bottom bar.
 * v3.1 warm-editorial: compact, warm-ink bg, cream text, chartreuse-only accent.
 * Respects safe-area-inset-bottom for notched devices.
 */

/* ── Bar ─────────────────────────────────────────────────────────────────── */
#jb-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9980;
  background: #2F2A28;
  border-top: 1px solid rgba(214, 255, 62, 0.35);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 16px rgba(15, 20, 28, 0.28);
  font-family: Inter, system-ui, sans-serif;
  display: none;
}

#jb-sticky-bar:not(.jb-sticky-hidden) {
  display: block;
}

.jb-sticky-hidden {
  display: none !important;
}

/* ── Inner layout — more compact ─────────────────────────────────────────── */
.jb-sticky-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Copy block ───────────────────────────────────────────────────────────── */
.jb-sticky-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.jb-sticky-copy strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FAF6EE;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.jb-sticky-copy span {
  display: block;
  font-size: 0.6875rem;
  color: rgba(250, 246, 238, 0.56);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── CTA button — slim editorial pill, ink on cream ──────────────────────── */
.jb-sticky-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  min-height: 44px;
  padding: 0.5625rem 0.875rem;
  background: #FAF6EE;
  color: #2F2A28;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(214, 255, 62, 0.55) inset;
  transition: background 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  letter-spacing: -0.005em;
}

.jb-sticky-btn:hover  { background: #FFFFFF; box-shadow: 0 0 0 1px #D6FF3E inset; }
.jb-sticky-btn:active { background: #F2ECDE; }
.jb-sticky-btn svg    { flex-shrink: 0; }

/* ── Dismiss button ───────────────────────────────────────────────────────── */
.jb-sticky-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: none;
  border: none;
  color: rgba(250, 246, 238, 0.4);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s;
  padding: 0;
}
.jb-sticky-dismiss:hover { color: rgba(250, 246, 238, 0.85); }

/* ── Desktop: hide entirely ───────────────────────────────────────────────── */
@media (min-width: 769px) {
  #jb-sticky-bar {
    display: none !important;
  }
}
