/* SurfBurger — baner zgody na cookies. Samodzielne style (prefiks .cc-). */
.cc-root { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; font-family: "Manrope", system-ui, Arial, sans-serif; }
.cc-root * { box-sizing: border-box; }

.cc-banner {
  pointer-events: auto;
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  margin: 0 auto; max-width: 980px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #14201e; color: #f4f1ea;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.cc-banner[hidden] { display: none; }
.cc-banner__text { flex: 1 1 360px; min-width: 260px; }
.cc-banner__text strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.cc-banner__text p { margin: 0; font-size: .86rem; line-height: 1.5; color: #cfc9bf; }
.cc-banner__text a { color: #f9a08f; text-decoration: underline; }
.cc-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.cc-btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .86rem;
  padding: 11px 18px; border-radius: 999px; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn:focus-visible { outline: 3px solid #f9a08f; outline-offset: 2px; }
/* Równa waga akcji (RODO: odrzucenie tak samo łatwe jak akceptacja) */
.cc-btn--primary { background: #f16d5d; color: #1a120f; }
.cc-btn--solid   { background: #2c3a37; color: #f4f1ea; }
.cc-btn--ghost   { background: transparent; color: #cfc9bf; border: 1px solid rgba(255,255,255,.18); padding: 11px 16px; }

/* Modal ustawień */
.cc-modal { pointer-events: auto; position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-modal[hidden] { display: none; }
.cc-modal__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cc-modal__dialog {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: #14201e; color: #f4f1ea; border-radius: 18px; padding: 22px 22px 18px;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.cc-modal__dialog h2 { margin: 0 0 12px; font-size: 1.2rem; }
.cc-modal__close { position: absolute; top: 12px; right: 14px; background: transparent; border: 0; color: #cfc9bf; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cc-cat { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.cc-cat:first-of-type { border-top: 0; }
.cc-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.cc-cat p { margin: 4px 0 0; font-size: .82rem; color: #cfc9bf; line-height: 1.45; }
.cc-cat__locked { font-size: .76rem; font-weight: 700; color: #8fd6a6; }
.cc-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }

/* Przełącznik */
.cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-switch span { position: absolute; inset: 0; background: #44524e; border-radius: 999px; transition: background .15s ease; }
.cc-switch span::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #f4f1ea; border-radius: 50%; transition: transform .15s ease; }
.cc-switch input:checked + span { background: #f16d5d; }
.cc-switch input:checked + span::before { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid #f9a08f; outline-offset: 2px; }

@media (max-width: 640px) {
  .cc-banner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cc-banner__actions { justify-content: stretch; }
  .cc-banner__actions .cc-btn { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cc-btn, .cc-switch span, .cc-switch span::before { transition: none; } }
