/* Cookie lišta a správa souhlasů – barva se nastavuje proměnnou --cc-accent */
:root {
  --cc-accent: #2f8f1a;
  --cc-accent-dark: #246f13;
  --cc-text: #303030;
  --cc-muted: #6b6b6b;
  --cc-line: #e3d8d0;
  --cc-bg: #ffffff;
  --cc-soft: #f6f3f0;
}

.cc-banner, .cc-modal, .cc-ph {
  font-family: 'Source Sans Pro', 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cc-text);
  -webkit-font-smoothing: antialiased;
}
.cc-banner *, .cc-modal *, .cc-ph * { box-sizing: border-box; }
.cc-banner a, .cc-modal a, .cc-ph a { color: var(--cc-accent); text-decoration: underline; }
.cc-banner a:hover, .cc-modal a:hover, .cc-ph a:hover { text-decoration: none; }

/* ---------- tlačítka ---------- */
.cc-btn {
  display: inline-block;
  margin: 0;
  padding: 10px 20px;
  border: 2px solid var(--cc-accent);
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.cc-btn--solid { background: var(--cc-accent); color: #fff !important; }
.cc-btn--solid:hover { background: var(--cc-accent-dark); border-color: var(--cc-accent-dark); }
.cc-btn--ghost { background: transparent; color: var(--cc-accent) !important; }
.cc-btn--ghost:hover { background: var(--cc-accent); color: #fff !important; }
.cc-btn:focus-visible, .cc-x:focus-visible, .cc-switch input:focus-visible + .cc-switch__ui {
  outline: 3px solid var(--cc-accent);
  outline-offset: 2px;
}

/* ---------- lišta ---------- */
.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: var(--cc-bg);
  border-top: 4px solid var(--cc-accent);
  box-shadow: 0 -6px 30px rgba(0, 0, 0, .18);
  transform: translateY(100%);
  transition: transform .35s ease-out;
}
.cc-banner.is-visible { transform: none; }
.cc-banner__in {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 15px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.cc-banner__text { flex: 1 1 auto; }
.cc-banner__text p { margin: 0; }
.cc-banner__title { font-size: 18px; font-weight: 700; margin-bottom: 4px !important; }
.cc-banner__btns { flex: 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 860px) {
  .cc-banner__in { flex-direction: column; align-items: stretch; gap: 14px; }
  .cc-banner__btns { justify-content: stretch; }
  .cc-banner__btns .cc-btn { flex: 1 1 0; }
}
@media (max-width: 480px) {
  .cc-banner__btns { flex-direction: column-reverse; }
}

/* ---------- dialog ---------- */
html.cc-lock, html.cc-lock body { overflow: hidden; }
.cc-modal {
  position: fixed;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .2s;
}
.cc-modal.is-visible { opacity: 1; }
.cc-modal__backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(20, 20, 20, .55); }
.cc-modal__box {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--cc-bg);
  border-radius: 6px;
  border-top: 4px solid var(--cc-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  outline: none;
  transform: translateY(12px);
  transition: transform .2s;
}
.cc-modal.is-visible .cc-modal__box { transform: none; }
.cc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--cc-line);
}
.cc-modal__head h2 {
  margin: 0;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  color: var(--cc-text);
}
.cc-x {
  width: 36px; height: 36px;
  margin: -6px -8px -6px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cc-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.cc-x:hover { background: var(--cc-soft); color: var(--cc-text); }
.cc-modal__body { padding: 16px 22px; overflow-y: auto; }
.cc-modal__intro { margin: 0 0 14px; color: var(--cc-muted); }
.cc-modal__foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--cc-line);
}
@media (max-width: 520px) {
  .cc-modal__foot { flex-direction: column-reverse; }
  .cc-modal__foot .cc-btn { width: 100%; }
}

.cc-cat {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--cc-soft);
  border-radius: 4px;
}
.cc-cat:last-child { margin-bottom: 0; }
.cc-cat__row { display: flex; align-items: center; gap: 12px; }
.cc-cat__title { flex: 1 1 auto; margin: 0; font-size: 16px; font-weight: 700; cursor: pointer; }
.cc-cat__always { font-size: 13px; font-weight: 600; color: var(--cc-accent); }
.cc-cat__desc { margin: 6px 0 0; font-size: 14px; color: var(--cc-muted); }

/* přepínač */
.cc-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.cc-switch input {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch__ui {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: #c4c4c4;
  border-radius: 26px;
  transition: background-color .2s;
}
.cc-switch__ui::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s;
}
.cc-switch input:checked + .cc-switch__ui { background: var(--cc-accent); }
.cc-switch input:checked + .cc-switch__ui::after { transform: translateX(20px); }
.cc-switch input:disabled + .cc-switch__ui { opacity: .55; }

/* ---------- placeholder místo mapy / reCAPTCHA ---------- */
.cc-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 24px;
  text-align: center;
  background: var(--cc-soft);
  border: 1px dashed var(--cc-line);
  border-radius: 4px;
}
.cc-ph__in { max-width: 380px; }
.cc-ph__in p { margin: 0 0 10px; }
.cc-ph__ico { width: 40px; height: 40px; fill: var(--cc-accent); margin-bottom: 6px; }
.cc-ph__title { font-size: 18px; font-weight: 700; }
.cc-ph__btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px !important; }
.cc-ph__small { font-size: 13px; margin-bottom: 0 !important; }

.cc-ph--inline { min-height: 0; padding: 14px 16px; text-align: left; justify-content: flex-start; }
.cc-ph--inline .cc-ph__in { max-width: none; }
.cc-ph--inline .cc-ph__btns { justify-content: flex-start; margin-top: 8px !important; }

/* ---------- odkazy v patičce ---------- */
footer .bottom .legal-links {
  clear: both;
  float: none;
  margin: 0;
  padding: 14px 0 24px;
  font-size: 14px;
}
footer .legal-links a { color: #fff; text-decoration: underline; }
footer .legal-links a:hover { text-decoration: none; }
footer .legal-links .sep { margin: 0 8px; opacity: .6; }

/* ---------- právní stránky ---------- */
.legal-page h3 { margin-top: 28px; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin-bottom: 14px; }
.legal-page li { margin-bottom: 4px; font-weight: 300; }
.legal-page .valid-from { margin-top: 30px; color: #6b6b6b; font-size: 14px; }
.form-gdpr { font-size: 14px; color: #6b6b6b; }

@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-modal, .cc-modal__box, .cc-switch__ui, .cc-switch__ui::after { transition: none; }
}
