/* Starcont – baner cookies */
.sc-cc {
  --cc-navy: #354a69;
  --cc-blue: #5470b1;
  --cc-bg: rgba(255, 255, 255, .92);
  --cc-surface: #ffffff;
  --cc-text: #1f2a3a;
  --cc-muted: #5b6678;
  --cc-line: rgba(53, 74, 105, .14);
  --cc-shadow: 0 20px 50px -12px rgba(25, 38, 60, .35), 0 4px 14px rgba(25, 38, 60, .08);
  --cc-radius: 20px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cc-text);
}
@media (prefers-color-scheme: dark) {
  .sc-cc {
    --cc-bg: rgba(22, 30, 44, .92);
    --cc-surface: #1a2333;
    --cc-text: #e8edf5;
    --cc-muted: #a7b2c4;
    --cc-line: rgba(255, 255, 255, .1);
    --cc-blue: #7d97d6;
  }
}
.sc-cc *, .sc-cc *::before, .sc-cc *::after { box-sizing: border-box; }
.sc-cc a { color: var(--cc-blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---- baner wysuwany z dołu ---- */
.sc-cc__banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 2147483000;
  width: min(1080px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 22px;
  padding: 22px 24px;
  background: var(--cc-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .4s ease, visibility 0s linear .55s;
}
.sc-cc__banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .4s ease, visibility 0s;
}
.sc-cc__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--cc-blue), var(--cc-navy));
  box-shadow: 0 8px 18px -6px rgba(84, 112, 177, .6);
}
.sc-cc__title { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--cc-text); }
.sc-cc__text { margin: 0; font-size: 13.5px; color: var(--cc-muted); }

.sc-cc__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.sc-cc__btn {
  appearance: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.sc-cc__btn:active { transform: scale(.97); }
.sc-cc__btn:focus-visible, .sc-cc__x:focus-visible, .sc-cc__fab:focus-visible,
.sc-cc__switch input:focus-visible + span { outline: 3px solid var(--cc-blue); outline-offset: 2px; }
/* "Akceptuj" i "Odrzuć" mają identyczny wygląd – wymóg równej widoczności (UODO / EROD) */
.sc-cc__btn--primary { color: #fff; background: var(--cc-navy); border: 1px solid var(--cc-navy); }
.sc-cc__btn--primary:hover { background: var(--cc-blue); border-color: var(--cc-blue); box-shadow: 0 6px 16px -6px rgba(84, 112, 177, .7); }
.sc-cc__btn--ghost { color: var(--cc-text); background: transparent; border: 1px solid var(--cc-line); }
.sc-cc__btn--ghost:hover { border-color: var(--cc-blue); color: var(--cc-blue); }
@media (prefers-color-scheme: dark) {
  .sc-cc__btn--primary { background: var(--cc-blue); border-color: var(--cc-blue); }
  .sc-cc__btn--primary:hover { background: #95abe0; border-color: #95abe0; color: #111a28; }
}

/* ---- okno ustawień ---- */
.sc-cc__overlay {
  position: fixed; inset: 0;
  z-index: 2147483001;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
  background: rgba(15, 22, 34, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
}
.sc-cc__overlay[hidden] { display: none; }
.sc-cc__overlay.is-visible { opacity: 1; }
@media (min-width: 640px) { .sc-cc__overlay { align-items: center; } }
.sc-cc__modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  background: var(--cc-surface);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  transform: translateY(30px);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.sc-cc__overlay.is-visible .sc-cc__modal { transform: none; }
.sc-cc__modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sc-cc__x {
  width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%;
  font-size: 26px; line-height: 1;
  color: var(--cc-muted); background: var(--cc-line);
  cursor: pointer;
}
.sc-cc__x:hover { color: var(--cc-text); }
.sc-cc__cats { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.sc-cc__cat { padding: 14px 16px; border: 1px solid var(--cc-line); border-radius: 14px; }
.sc-cc__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc-cc__cat-name { font-weight: 700; cursor: pointer; }
.sc-cc__cat-desc { margin: 6px 0 0; font-size: 13px; color: var(--cc-muted); }
.sc-cc__always { font-size: 12px; font-weight: 600; color: var(--cc-blue); white-space: nowrap; }

/* przełącznik */
.sc-cc__switch { position: relative; display: inline-flex; flex: none; }
.sc-cc__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sc-cc__switch span {
  width: 46px; height: 26px;
  border-radius: 999px;
  background: #c3cad6;
  transition: background-color .2s ease;
  position: relative;
}
.sc-cc__switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.sc-cc__switch input:checked + span { background: var(--cc-blue); }
.sc-cc__switch input:checked + span::after { transform: translateX(20px); }
.sc-cc__actions--modal { justify-content: stretch; }
.sc-cc__actions--modal .sc-cc__btn { flex: 1 1 160px; }

/* przycisk ponownego otwarcia ustawień (wycofanie zgody) */
.sc-cc__fab {
  position: fixed; left: 16px; bottom: 16px;
  z-index: 2147482999;
  width: 46px; height: 46px;
  display: none; place-items: center;
  border: 0; border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cc-blue), var(--cc-navy));
  box-shadow: 0 8px 20px -6px rgba(25, 38, 60, .5);
  cursor: pointer;
  transition: transform .2s ease;
}
.sc-cc__fab:hover { transform: scale(1.08) rotate(-10deg); }
/* 2026-10-15: pływający przycisk ukryty na życzenie klienta – zgodę zmienia się linkiem „Ustawienia cookies” w stopce */
.sc-cc--decided .sc-cc__fab { display: none; }

html.sc-cc-lock { overflow: hidden; }

/* zastępczy blok w miejscu zablokowanej mapy / filmu */
.sc-cc-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; padding: 24px; text-align: center;
  background: linear-gradient(135deg, rgba(84, 112, 177, .08), rgba(53, 74, 105, .12));
  border: 1px dashed var(--cc-line);
  border-radius: 14px;
}
.sc-cc-ph p { margin: 0; max-width: 420px; font-size: 14px; color: var(--cc-muted); }

/* ---- telefon ---- */
@media (max-width: 860px) {
  .sc-cc__banner { grid-template-columns: auto 1fr; padding: 18px; bottom: 12px; width: calc(100% - 24px); }
  .sc-cc__actions { grid-column: 1 / -1; }
  .sc-cc__actions .sc-cc__btn { flex: 1 1 0; }
}
@media (max-width: 520px) {
  .sc-cc__icon { width: 42px; height: 42px; border-radius: 12px; }
  .sc-cc__actions { flex-direction: column-reverse; }
  .sc-cc__actions .sc-cc__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-cc__banner, .sc-cc__overlay, .sc-cc__modal, .sc-cc__switch span::after { transition: none !important; }
}
