.scc-banner[hidden], .scc-modal[hidden], .scc-revisit[hidden] { display: none !important; }

.scc-banner, .scc-modal, .scc-revisit, .scc-placeholder {
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}
.scc-banner *, .scc-modal * { box-sizing: border-box; }

/* Баннер */
.scc-banner {
  position: fixed; z-index: 99998; background: var(--scc-bg); color: var(--scc-text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}
.scc-title { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.scc-desc { margin: 0; }
.scc-desc a, .scc-modal a { color: var(--scc-accent); }

.scc-banner[data-pos="bottom_bar"] {
  left: 0; right: 0; bottom: 0; padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
}
.scc-banner[data-pos="bottom_bar"] .scc-body { flex: 1 1 420px; }
.scc-banner[data-pos="bottom_left"], .scc-banner[data-pos="bottom_right"] {
  bottom: 1rem; width: min(430px, calc(100vw - 2rem)); padding: 1.25rem; border-radius: var(--scc-radius);
}
.scc-banner[data-pos="bottom_left"]  { left: 1rem; }
.scc-banner[data-pos="bottom_right"] { right: 1rem; }
.scc-banner[data-pos="center"] {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - 2rem)); padding: 1.5rem; border-radius: var(--scc-radius);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45);
}
.scc-banner[data-pos="bottom_left"] .scc-actions, .scc-banner[data-pos="bottom_right"] .scc-actions,
.scc-banner[data-pos="center"] .scc-actions { margin-top: 1rem; }

/* Кнопки */
.scc-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.scc-btn {
  cursor: pointer; font: inherit; font-weight: 600; padding: .6rem 1.1rem; line-height: 1.2;
  border: 2px solid var(--scc-accent); border-radius: max(0px, calc(var(--scc-radius) - 2px));
}
.scc-btn-main { background: var(--scc-accent); color: var(--scc-accent-text); }
.scc-btn-outline { background: transparent; color: var(--scc-accent); }
.scc-btn:hover { opacity: .88; }
.scc-btn:focus-visible, .scc-revisit:focus-visible, .scc-close:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }

/* Окно настроек */
.scc-modal {
  position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.scc-modal-box {
  position: relative; background: var(--scc-bg); color: var(--scc-text); width: min(600px, 100%);
  max-height: 92vh; overflow: auto; padding: 1.5rem; border-radius: var(--scc-radius);
}
.scc-modal-box h2 { margin: 0 2rem .5rem 0; font-size: 1.3rem; color: inherit; }
.scc-close { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--scc-text); }
.scc-cat { border-top: 1px solid rgba(128, 128, 128, .3); padding: .8rem 0; }
.scc-cat label { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.scc-cat input { width: 1.2rem; height: 1.2rem; accent-color: var(--scc-accent); }
.scc-cat p { margin: .3rem 0 0 1.8rem; font-size: .92rem; opacity: .85; }
.scc-modal .scc-actions { margin-top: 1rem; border-top: 1px solid rgba(128, 128, 128, .3); padding-top: 1rem; }
html.scc-lock { overflow: hidden; }

/* Маленькая кнопка «Настройки cookie» */
.scc-revisit {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 99997; cursor: pointer;
  background: var(--scc-accent); color: var(--scc-accent-text); border: 0; border-radius: 999px;
  padding: .5rem .9rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

/* Заглушка вместо видео/карты */
.scc-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  max-width: 100%; padding: 1.5rem; text-align: center; background: #f1f3f5; color: #212529;
  border: 1px dashed #adb5bd; border-radius: var(--scc-radius, 8px);
}
.scc-placeholder p { margin: 0; }

@media (max-width: 560px) {
  .scc-actions .scc-btn { flex: 1 1 100%; }
}
