/* =============================================================
   DCA — Cookie Consent Banner
   Tokens consumed from dca-tokens.css (already loaded on page)
   ============================================================= */

/* Legal modals must render above the consent banner */
.legal-backdrop {
  z-index: 9001 !important;
}

/* ── Banner shell ──────────────────────────────────────────── */
#dca-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--bg-dark);
  border-top: 1px solid rgba(231, 228, 220, 0.07);
  display: flex;
  align-items: stretch;
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}

#dca-cookie-banner.is-visible {
  transform: translateY(0);
}

/* ── Signal line accent — left edge ────────────────────────── */
.dca-cookie__signal {
  width: 3px;
  flex-shrink: 0;
  background: var(--brand-orange);
  opacity: 0.65;
}

/* ── Inner layout ──────────────────────────────────────────── */
.dca-cookie__inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-5) clamp(var(--space-6), 5vw, var(--space-20));
  min-width: 0;
}

.dca-cookie__text {
  flex: 1;
  min-width: 0;
}

/* ── Eyebrow ────────────────────────────────────────────────── */
.dca-cookie__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tactical-mid);
  margin: 0 0 var(--space-1);
  line-height: 1;
}

/* ── Body copy ──────────────────────────────────────────────── */
.dca-cookie__body {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: var(--lh-base);
  color: var(--text-on-dark-2);
  margin: 0;
}

.dca-cookie__privacy-link {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(231, 228, 220, 0.35);
  transition: color var(--dur-base) ease, text-decoration-color var(--dur-base) ease;
}

.dca-cookie__privacy-link:hover {
  color: var(--brand-orange);
  text-decoration-color: rgba(232, 93, 4, 0.5);
}

/* ── Buttons ────────────────────────────────────────────────── */
.dca-cookie__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
  align-items: center;
}

.dca-cookie__btn {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 var(--space-5);
  height: 36px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  transition:
    background var(--dur-base) ease,
    border-color var(--dur-base) ease,
    color var(--dur-base) ease,
    box-shadow var(--dur-base) ease;
}

/* Decline — ghost */
.dca-cookie__btn--decline {
  background: transparent;
  color: var(--text-on-dark-2);
  border-color: rgba(231, 228, 220, 0.18);
}

.dca-cookie__btn--decline:hover {
  background: rgba(231, 228, 220, 0.06);
  border-color: rgba(231, 228, 220, 0.28);
  color: var(--text-on-dark);
}

/* Accept — primary orange (the primary conversion action) */
.dca-cookie__btn--accept {
  background: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
  box-shadow: var(--glow-primary);
}

.dca-cookie__btn--accept:hover {
  background: #f26b0f;
  border-color: #f26b0f;
  box-shadow: var(--glow-primary-hover);
}

/* ── Mobile stack ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .dca-cookie__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-5);
  }

  .dca-cookie__text {
    flex: none;
  }

  .dca-cookie__actions {
    width: 100%;
    justify-content: flex-end;
  }
}
