.sy-cb{--sy-layer-banner:45;font-family:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;font-size:15px;line-height:1.45;color:#1a1a1a}
html:not([data-sy-consent=ok]){scroll-padding-bottom:200px}
html[data-sy-consent=ok] .sy-cb-banner,html[data-sy-consent=ok] .sy-cb-skip{display:none}
.sy-cb-banner{position:fixed;left:0;right:0;bottom:0;z-index:var(--sy-layer-banner);background:#ffffff;color:#1a1a1a;box-shadow:0 -2px 12px rgba(0,0,0,.18);border-top:1px solid #8a8a8a;max-height:70vh;overflow:auto}
.sy-cb-banner:focus{outline:none}
.sy-cb-inner{max-width:960px;margin:0 auto;padding:16px;display:grid;gap:12px}
.sy-cb-title{font-size:1.1em;font-weight:700;margin:0}
.sy-cb p{margin:0}
.sy-cb a{color:#0b57d0;text-decoration:underline}
.sy-cb-gpc{display:none;font-weight:600}
html[data-sy-consent=gpc] .sy-cb-gpc{display:block}
.sy-cb-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sy-cb-dialog .sy-cb-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:600px){.sy-cb-actions,.sy-cb-dialog .sy-cb-actions{grid-template-columns:1fr}}
.sy-cb-btn{box-sizing:border-box;min-height:44px;margin:0;padding:10px 16px;font:inherit;font-size:15px;font-weight:600;line-height:1.2;background:#ffffff;color:#1a1a1a;border:2px solid #1a1a1a;border-radius:6px;cursor:pointer;text-align:center}
.sy-cb-btn:hover{text-decoration:underline}
.sy-cb a:focus-visible,.sy-cb-btn:focus-visible,.sy-cb-x:focus-visible,.sy-cb-skip:focus-visible,.sy-cb-dialog input:focus-visible{outline:3px solid #0b57d0;outline-offset:2px}
.sy-cb-skip{position:absolute;left:8px;top:8px;z-index:var(--sy-layer-banner,45);padding:8px 12px;background:#ffffff;color:#0b57d0;transform:translateY(-200%)}
.sy-cb-skip:focus{transform:none}
.sy-cb-dialog{max-width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #8a8a8a;border-radius:6px;background:#ffffff;color:#1a1a1a}
.sy-cb-dialog::backdrop{background:rgba(0,0,0,.45)}
.sy-cb-dialog>.sy-cb-inner{--sy-cb-dp:16px;max-height:inherit;padding:0;display:flex;flex-direction:column;gap:0}
.sy-cb-dhead{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px 12px var(--sy-cb-dp);border-bottom:1px solid #8a8a8a}
.sy-cb-x{flex:none;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;margin:0;padding:0;font:inherit;background:none;color:inherit;border:0;border-radius:6px;cursor:pointer}
.sy-cb-x svg{width:22px;height:22px}
.sy-cb-x:hover{background:#e2e8f0}
.sy-cb-dbody{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;gap:12px;padding:var(--sy-cb-dp)}
.sy-cb-dialog .sy-cb-actions{flex:none;padding:12px var(--sy-cb-dp);border-top:1px solid #8a8a8a;background:#ffffff}
.sy-cb-cat{border:1px solid #8a8a8a;border-radius:6px;padding:12px;display:grid;gap:8px}
.sy-cb-sub{margin:0;font-size:1em;font-weight:700}
.sy-cb-cat label{display:flex;gap:8px;align-items:center;font-weight:600}
.sy-cb-cat input{width:20px;height:20px;margin:0}
.sy-cb-cat dl{margin:0;display:grid;grid-template-columns:max-content 1fr;gap:4px 12px;color:#4a4a4a}
.sy-cb-cat dt{font-weight:600}.sy-cb-cat dd{margin:0}
.sy-cb-cat ul{margin:0;padding-left:1.2em;color:#4a4a4a}
/*
 * motocesje.pl presentation of the consent banner (@sylentis/consent-banner shell). Loaded AFTER the
 * package's shell.css (scripts/build-consent.mjs concatenates them), so equal-specificity rules here win.
 * Colour comes ONLY from the site tokens (src/styles/tokens.css): no colour literal in this file.
 * Visual reference: docs/design/mocks/Cookies.html (banner and "Ustawienia cookies" dialog).
 *
 * Equal weight (non-negotiable): "Tylko niezbędne" and "Akceptuję wszystkie" share ONE rule below, so
 * they cannot differ in size, colour, border or position. (The mock outlines reject and fills accept;
 * that hierarchy is deliberately NOT reproduced.)
 */
.sy-cb {
  font-family: var(--font-body);
  font-size: var(--text-15);
  line-height: var(--leading-body);
  color: var(--color-text);
}
.sy-cb a { color: var(--color-primary); }

/* ---- Banner: bottom card, 16px inset ---- */
.sy-cb-banner {
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  max-height: calc(100dvh - 32px);
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised-strong);
}
.sy-cb-banner .sy-cb-inner {
  max-width: none;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) 32px;
}
.sy-cb-banner .sy-cb-title,
.sy-cb-dhead .sy-cb-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-19);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-title);
}
.sy-cb-banner .sy-cb-title,
.sy-cb-banner .sy-cb-body,
.sy-cb-banner .sy-cb-gpc { flex: 1 1 380px; min-width: 0; }
.sy-cb-banner .sy-cb-title { margin-bottom: calc(-1 * var(--space-2)); }
.sy-cb-body { color: var(--color-text-secondary); font-size: var(--text-15); }
.sy-cb-banner .sy-cb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---- Buttons ---- */
.sy-cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 0 24px;
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-16);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}
.sy-cb-btn:hover { text-decoration: none; }
/* Reject and accept: identical weight. */
.sy-cb-btn[data-sy-action='reject_all'],
.sy-cb-btn[data-sy-action='accept_all'] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
.sy-cb-btn[data-sy-action='reject_all']:hover,
.sy-cb-btn[data-sy-action='accept_all']:hover { background: var(--color-primary-ink); border-color: var(--color-primary-ink); }
.sy-cb-btn[data-sy-action='manage'] { padding: 0 12px; }
.sy-cb-btn[data-sy-action='manage']:hover { text-decoration: underline; }
.sy-cb a:focus-visible,
.sy-cb-btn:focus-visible,
.sy-cb-x:focus-visible,
.sy-cb-dialog input:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.sy-cb-skip { background: var(--color-surface); color: var(--color-primary); }

/* ---- Dialog ---- */
.sy-cb-dialog {
  width: 560px;
  max-width: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-featured);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-modal);
}
.sy-cb-dialog::backdrop { background: var(--color-overlay); }
.sy-cb-dialog > .sy-cb-inner { --sy-cb-dp: 28px; }
.sy-cb-dhead { border-bottom: 0; padding: 24px 20px 0 var(--sy-cb-dp); }
.sy-cb-dhead .sy-cb-title { font-size: var(--text-22); letter-spacing: var(--tracking-heading); }
.sy-cb-x { border-radius: var(--radius-circle); color: var(--color-text-secondary); }
.sy-cb-x:hover { background: var(--color-surface-blue); }
.sy-cb-dbody { gap: 0; padding-top: var(--space-2); }

.sy-cb-cat {
  border: 0;
  border-top: var(--border-card);
  border-radius: 0;
  padding: var(--space-4) 0;
  gap: var(--space-2);
}
.sy-cb-cat label {
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: var(--space-4);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.sy-cb-cat label span { font-size: var(--text-13); font-weight: var(--weight-semibold); color: var(--color-text-secondary); }
.sy-cb-cat dl, .sy-cb-cat ul { color: var(--color-text-muted); font-size: var(--text-14); }
.sy-cb-sub { font-size: var(--text-14); }
.sy-cb-transfer { color: var(--color-text-muted); font-size: var(--text-13); }
/* Controller line and withdrawal text are unclassed <p> in the package markup: align them with the 13px notices. */
.sy-cb-dbody > div > p:not([class]) { color: var(--color-text-muted); font-size: var(--text-13); }

/* Switch: the package renders real checkboxes; restyled, same semantics and keyboard behaviour. */
.sy-cb-cat input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
  margin: 0;
  border-radius: var(--radius-pill);
  background: var(--color-toggle-off);
  cursor: pointer;
  transition: background-color 0.15s;
}
.sy-cb-cat input[type='checkbox']::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-circle);
  background: var(--color-surface);
  box-shadow: var(--shadow-knob);
  transition: transform 0.15s;
}
.sy-cb-cat input[type='checkbox']:checked { background: var(--color-primary); }
.sy-cb-cat input[type='checkbox']:checked::before { transform: translateX(22px); }
.sy-cb-cat input[type='checkbox']:disabled { cursor: default; opacity: 0.6; }

.sy-cb-dialog .sy-cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: var(--space-4) var(--sy-cb-dp) 24px;
  border-top: var(--border-card);
  background: var(--color-surface);
}
.sy-cb-dialog .sy-cb-btn[data-sy-action='save_preferences'] { background: var(--color-surface-blue); color: var(--color-primary-ink); }
.sy-cb-dialog .sy-cb-btn[data-sy-action='withdraw_link'] { padding: 0 12px; }
/* The header close (X) already closes the dialog; the second "Zamknij" in the action row is a duplicate. */
.sy-cb-dialog .sy-cb-actions .sy-cb-btn[data-sy-action='close'] { display: none; }

@media (max-width: 639px) {
  .sy-cb-banner .sy-cb-inner { padding: var(--space-5); }
  .sy-cb-banner .sy-cb-actions,
  .sy-cb-dialog .sy-cb-actions { flex-direction: column; align-items: stretch; flex: 1 1 100%; }
  .sy-cb-btn { width: 100%; }
  .sy-cb-dialog > .sy-cb-inner { --sy-cb-dp: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sy-cb-cat input[type='checkbox'], .sy-cb-cat input[type='checkbox']::before { transition: none; }
}
