/* Google Analytics consent banner and the footer's "Preferencias de cookies".
   Loaded only when a measurement id is set. Both answers look the same on purpose. */
.consent {
  position: fixed; z-index: 35; left: 20px; bottom: 20px; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px;
  width: min(540px, calc(100% - 40px)); padding: 18px 18px 16px; border-top: 4px solid var(--lantern); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
.consent[hidden] { display: none; }
.consent-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--red); background: rgba(201, 35, 31, .08); border: 1.5px solid rgba(201, 35, 31, .35);
}
.consent-icon svg { width: 24px; height: 24px; }
.consent-text p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }
.consent-text p:first-child { margin-bottom: 4px; color: var(--ink); font-size: 1rem; }
.consent-text a { color: var(--red-dark); font-weight: 700; }
.consent-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-btn {
  min-height: 46px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.consent-btn:hover { background: var(--ink); color: var(--paper); }
.consent-btn:focus-visible, .footer-consent:focus-visible { outline: 3px solid var(--lantern); outline-offset: 2px; }

.footer-consent {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: 14px; padding: 0;
  border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}
.footer-consent[hidden], .privacy-consent[hidden] { display: none; }
#cookies { scroll-margin-top: calc(var(--header-h) + 16px); }
.footer-consent .icon { width: 14px; height: 14px; }

@media (max-width: 1020px) {
  .consent { left: 16px; bottom: 16px; }
}
@media (max-width: 760px) {
  .consent { left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + 10px); width: auto; padding: 14px; }
  body:has(.recipe) .consent { bottom: calc(var(--tabbar-h) + 76px); }
  .consent-text p { font-size: .88rem; }
}
