/* Zgody na cookies: baner, okno ustawień, zablokowane osadzenia, linki w stopce, tabele polityk */
.cc-lock { overflow: hidden; }

.cc-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 10000;
  width: min(1100px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.18));
  border-radius: var(--radius-lg, 22px);
  background: var(--surface, #17171a);
  color: var(--text, #f2f0ec);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  font-size: 0.92rem;
  line-height: 1.55;
}
.cc-banner__title { display: block; margin-bottom: 4px; font-family: var(--f-display, sans-serif); font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.cc-banner p { margin: 0; color: var(--muted, #a4a3a8); }
.cc-banner a, .cc-modal a { color: var(--text, #f2f0ec); text-decoration: underline; text-underline-offset: 3px; }
.cc-banner__actions, .cc-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-banner .btn, .cc-modal .btn { flex: 1 1 150px; }
@media (min-width: 900px) {
  .cc-banner { grid-template-columns: 1fr auto; align-items: center; }
  .cc-banner__actions { flex-wrap: nowrap; }
  .cc-banner .btn { flex: 0 0 auto; }
}

.cc-modal { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 16px; }
.cc-modal[hidden] { display: none; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.cc-modal__box {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.18));
  border-radius: var(--radius-lg, 22px);
  background: var(--surface, #17171a);
  color: var(--text, #f2f0ec);
  outline: none;
}
.cc-modal__box h2 { margin: 0 0 8px; font-family: var(--f-display, sans-serif); font-size: 1.6rem; text-transform: uppercase; }
.cc-modal__lead { margin: 0 0 18px; color: var(--muted, #a4a3a8); font-size: 0.92rem; }
.cc-row { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line, rgba(255, 255, 255, 0.09)); }
.cc-row__text p { margin: 4px 0 0; color: var(--muted, #a4a3a8); font-size: 0.86rem; line-height: 1.5; }
.cc-row__text label { cursor: pointer; }
.cc-modal__actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line, rgba(255, 255, 255, 0.09)); }

.cc-switch { position: relative; flex-shrink: 0; width: 48px; height: 28px; cursor: pointer; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cc-switch__ui { position: absolute; inset: 0; border-radius: 999px; background: #3a3a40; transition: background 0.25s; }
.cc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.25s; }
.cc-switch input:checked + .cc-switch__ui { background: var(--red, #e1262c); }
.cc-switch input:checked + .cc-switch__ui::after { transform: translateX(20px); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + .cc-switch__ui { opacity: 0.55; }
.cc-switch input:focus-visible + .cc-switch__ui { outline: 2px solid #fff; outline-offset: 3px; }
.cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Zablokowane osadzenie (Facebook) */
.consent-embed { position: relative; }
.consent-embed iframe { display: none; }
.consent-embed.is-active iframe { display: block; }
.consent-embed.is-active .consent-embed__msg { display: none; }
.consent-embed__msg { display: grid; gap: 14px; align-content: center; justify-items: start; min-height: 320px; padding: 28px 22px; background: var(--surface, #17171a); color: var(--muted, #a4a3a8); font-size: 0.92rem; line-height: 1.6; }
.consent-embed__msg p { margin: 0; }
.consent-embed__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Linki prawne w stopce */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a, .footer-legal button { padding: 0; border: 0; background: none; color: var(--muted, #a4a3a8); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--text, #f2f0ec); }

/* Tabele w politykach */
.table-wrap { overflow-x: auto; margin-top: 1.2em; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 10px 12px; border: 1px solid var(--line, rgba(255, 255, 255, 0.09)); text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface-2, #1f1f23); font-weight: 600; }
.legal-meta { color: var(--muted, #a4a3a8); font-size: 0.9rem; }
