/* The consent bar (templates/includes/consent.html, static/consent.js; owner 2026-11-20): a paper note pinned at the
   bottom of the screen, the cork world's own material (the white rim of a sticker, the red pin, the warm cast). Fixed,
   so its coming moves nothing on the page; under the phone menu's shade and the header (29, 30), so an open menu dims
   it with the page; over everything else. The two answers are the same button, side by side and of one width: neither
   is the "real" one (EDPB cookie banner report 17.01.2023, refusing as easy as agreeing). One sheet for both looks:
   the buttons are the look's own .btn, so v2 rounds them its way. Colours only by tokens of variables.css. */
.consent {
  position: fixed; z-index: 28; left: 0; right: 0; bottom: 16px;
  width: min(1040px, calc(100% - 32px)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 28px;
  padding: 16px 20px 16px 22px; border: 4px solid var(--white); border-radius: 10px;
  background: var(--paper); color: var(--note-ink);
  box-shadow: 0 18px 34px -16px rgba(var(--cork-shadow-rgb), .62), 0 2px 6px rgba(var(--cork-shadow-rgb), .14);
  font: 400 15px/1.5 var(--text);
}
.consent__pin { position: absolute; left: 50%; top: -12px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--pin); box-shadow: inset -3px -3px 0 rgba(var(--black-rgb), .18), 0 3px 4px rgba(var(--black-rgb), .25); }
.consent__pin::after { content: ""; position: absolute; left: 5px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--white-rgb), .85); }
.consent__text { max-width: 76ch; color: var(--note-ink-2); }
.consent__text b { color: var(--note-ink); }
.consent__text a { color: var(--teal-ink); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.consent__actions { display: grid; grid-template-columns: repeat(2, minmax(132px, 1fr)); gap: 10px; align-items: center; }
.consent__btn { width: 100%; min-height: 44px; }
.consent__more { grid-column: 1 / -1; justify-self: center; min-height: 32px; padding: 4px 8px; border: 0; background: transparent; color: var(--teal-ink); font: 600 14px/1.2 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent__actions [data-consent-save] { grid-column: 1 / -1; }
/* "Customise" (only with Clarity on): the ticks open under the words, the answers stay on the right. */
.consent__text { grid-column: 1; grid-row: 1; }
.consent__actions { grid-column: 2; grid-row: 1 / span 2; }
.consent__pick { grid-column: 1; grid-row: 2; display: grid; gap: 10px; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); }
.consent__check { color: var(--note-ink); }

/* Coming and going: up from under the edge and in, out the same way (site canon: nothing appears in one frame). */
@media (prefers-reduced-motion: no-preference) {
  .consent { transition: opacity .28s cubic-bezier(.2, .7, .2, 1), transform .28s cubic-bezier(.2, .7, .2, 1); }
  .consent.is-away { opacity: 0; transform: translateY(18px); }
}

/* The end of the page scrolls out from under the bar while it is there (only the bottom grows, nothing above moves). */
html.consent-open body { padding-bottom: var(--consent-room, 0px); }

/* The footer's "Cookie settings": a button that reads as the footer's links (it opens the bar, it goes nowhere). */
.foot__consent { padding: 0; border: 0; background: transparent; color: var(--white); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
[data-look="v2"] .foot__consent { text-decoration: none; }
@media (hover: hover) { [data-look="v2"] .foot__consent:hover { text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 4px; } }

/* A phone: edge to edge at the bottom, the words beside the two answers stood one over the other. Side by side the
   bar is as low as the two finger-sized buttons (124 px on a 375 px phone, 30 px lower than the words over the
   buttons), so the first screen keeps its main button in sight (the intent pages' «Umów prezentację» ends at 539 px
   of 667 in look v1). */
@media (max-width: 699px) {
  .consent { bottom: 0; width: 100%; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border-width: 4px 0 0; border-radius: 14px 14px 0 0; font-size: 13px; line-height: 1.38; }
  .consent__pin, .consent__text b { display: none; }
  .consent__text a { white-space: normal; }
  .consent__actions { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .consent__btn { min-width: 108px; padding-inline: 10px; font-size: 14.5px; }
  .consent__pick { grid-column: 1 / -1; grid-row: 2; }
  .consent__actions:has(> [data-consent-save]:not([hidden])) { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Under the header where the bottom would lie over the first screen's main button (static/consent.js, place). */
  .consent.consent--top { top: var(--top-h); bottom: auto; padding-bottom: 12px; border-width: 0 0 4px; border-radius: 0 0 14px 14px; }
  .consent--top.is-away { transform: translateY(-18px); }
  [data-look="v2"] .foot__consent { display: inline-flex; align-items: center; min-height: 44px; }
}
