/* =========================================================================
   consent.css — cookie consent card. Enqueued only when a real GTM ID is set.
   Fixed, out of document flow (CLS 0). Bottom-left card, above sticky mobile bar.
   ========================================================================= */

.du-consent {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 85; /* below .mobile-bar (90) */
  width: min(21rem, calc(100vw - 3rem));
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 45px rgba(4, 29, 115, 0.18);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
}

.du-consent[hidden] {
  display: none !important;
}

.du-consent__icon {
  display: block;
  margin: 0 auto 1rem;
  color: var(--brand-deep);
}

.du-consent__copy {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}

.du-consent__link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-muted, var(--ink));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.du-consent__link:hover {
  color: var(--brand-deep);
}

.du-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.du-consent__actions .btn {
  width: 100%;
  border-radius: 999px;
}

/* Below desktop, the fixed-width left-anchored card would leave an empty gap
   on the right (no matching "right" offset) — stretch it with equal side
   margins instead, positioned above the sticky mobile call/WhatsApp bar. */
@media (max-width: 768px) {
  .du-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(var(--mobile-bar-h) + 0.75rem + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .du-consent {
    box-shadow: 0 20px 45px rgba(4, 29, 115, 0.18);
  }
}
