/* Task B-103: the privacy banner and its panel (drawn by /assets/pomiar.js only while ad measurement is on).
   A sheet fixed to the bottom of the window: on a phone it is as wide as the screen and scrolls inside itself when
   the text is large; the page gets room below its end while the sheet is shown (pomiar.js), so nothing on the page is
   out of reach. "Akceptuję" and "Odrzucam" are one class: the same size, colour, weight and contrast. */
.consent{position:fixed;left:0;right:0;bottom:0;z-index:1000;max-height:min(85vh,40rem);max-height:min(85dvh,40rem);overflow-y:auto;overscroll-behavior:contain;background:var(--paper,#fff);color:var(--ink,#132029);border-top:2px solid var(--ink,#132029);box-shadow:0 -.25rem 1.5rem rgb(0 0 0 / .18)}
.consent-in{max-width:var(--container,72rem);margin:0 auto;padding:1rem max(1rem,env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left));display:grid;gap:.75rem}
.consent h2{font-family:var(--sans,inherit);font-size:1.125rem;line-height:1.3;margin:0}
.consent h3{font-family:var(--sans,inherit);font-size:1rem;line-height:1.3;margin:0}
.consent p{margin:0;font-size:var(--small,.875rem);line-height:1.5;max-width:none}
.consent h2:focus{outline:3px solid var(--focus,#174e9c);outline-offset:3px}
.consent-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.consent .button{flex:1 1 9rem;min-height:var(--hit,2.75rem)}
.consent .consent-choice{background:white;color:var(--ink,#132029);border:2px solid var(--ink,#132029);font-weight:600}
.consent .consent-choice:hover{background:var(--mist,#f5f7f6)}
.consent .consent-more{background:transparent;color:var(--green-deep,#164e39);border:2px solid transparent;text-decoration:underline;text-underline-offset:.2em;font-weight:600}
.consent .button:focus-visible,.consent a:focus-visible,.consent-switch:focus-visible{outline:3px solid var(--focus,#174e9c);outline-offset:2px}
.consent-list{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}
.consent-item{border:1px solid var(--line,#d4ded7);border-radius:var(--soft-radius,.5rem);padding:.75rem;display:grid;gap:.4rem}
.consent-item-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.consent-always{font-size:var(--small,.875rem);font-weight:600;color:var(--green-deep,#164e39)}
/* A switch: a checkbox drawn as a track with a knob, 44 px wide at least, its state also in its colour and position. */
.consent-switch{appearance:none;-webkit-appearance:none;margin:0;flex:none;width:3.25rem;height:2rem;min-height:2rem;border-radius:1rem;border:2px solid var(--control,#74847e);background:var(--mist,#f5f7f6);position:relative;cursor:pointer}
.consent-switch::after{content:"";position:absolute;top:.1875rem;left:.1875rem;width:1.375rem;height:1.375rem;border-radius:50%;background:var(--control,#74847e);transition:transform .15s}
.consent-switch:checked{background:var(--green,#1f6f50);border-color:var(--green,#1f6f50)}
.consent-switch:checked::after{background:white;transform:translateX(1.25rem)}
.consent-privacy a{color:var(--green-deep,#164e39);text-decoration:underline;display:inline-flex;align-items:center;min-height:var(--hit,2.75rem)}
.consent-footer{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
@media (min-width:48rem){
  .consent:not(.consent-panel) .consent-in{grid-template-columns:1fr auto;align-items:end}
  .consent:not(.consent-panel) .consent-in h2,.consent:not(.consent-panel) .consent-in p{grid-column:1}
  .consent:not(.consent-panel) .consent-actions{grid-column:2;grid-row:1 / span 2;flex-wrap:nowrap}
  .consent .button{flex:0 0 auto;min-width:9rem}
}
@media (prefers-reduced-motion:reduce){.consent-switch::after{transition:none}}
@media print{.consent{display:none}}
