/* Баннер куки и галочка согласия. Цвета — через переменные: переопределите их под сайт. */
:root {
  --cc-bg: #ffffff;
  --cc-fg: #1c1c1c;
  --cc-muted: #5f6368;
  --cc-line: #dadce0;
  --cc-accent: #1c1c1c;
  --cc-accent-fg: #ffffff;
  --cc-radius: 12px;
  --cc-error: #b3261e;
}

.cc-root { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2147483000; display: flex; justify-content: center; pointer-events: none; }
.cc-root[hidden] { display: none; }
.cc-box { pointer-events: auto; max-width: 720px; width: 100%; padding: 16px 20px; background: var(--cc-bg); color: var(--cc-fg);
  border: 1px solid var(--cc-line); border-radius: var(--cc-radius); box-shadow: 0 8px 32px rgba(0, 0, 0, .18); font: 14px/1.45 inherit; }
.cc-text { margin: 0 0 12px; }
.cc-text a { color: inherit; text-decoration: underline; }
.cc-settings { margin: 0 0 12px; display: grid; gap: 8px; }
.cc-settings[hidden] { display: none; }
.cc-opt { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.cc-opt input { margin-top: 3px; flex: none; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* «Принять все» и «Только необходимые» одного размера: отказ не должен быть труднее согласия */
.cc-btn { flex: 1 1 auto; min-height: 40px; padding: 8px 16px; border: 1px solid var(--cc-accent); border-radius: calc(var(--cc-radius) - 4px);
  background: transparent; color: var(--cc-fg); font: inherit; cursor: pointer; }
.cc-btn[hidden] { display: none; }
.cc-btn--main { background: var(--cc-accent); color: var(--cc-accent-fg); }
.cc-btn--quiet { flex: 0 0 auto; border-color: transparent; text-decoration: underline; }
.cc-btn:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 2px; }

.form-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
/* width/display — на случай общих правил сайта вида input { display: block; width: 100% } */
.form-consent input { margin: 3px 0 0; flex: none; width: auto; display: inline-block; }
.form-consent a, .form-consent__note a { color: inherit; text-decoration: underline; }
.form-consent__note { margin: 6px 0 0; font-size: 13px; color: var(--cc-muted); }
.form-consent__error { margin: 6px 0 0; font-size: 13px; color: var(--cc-error); }

@media (max-width: 480px) {
  .cc-root { left: 8px; right: 8px; bottom: 8px; }
  .cc-btn { flex: 1 1 100%; }
}
