/* Vlastní cookie lišta OO – navazuje na styl webu (Sora, šedé pilulky, bílé karty) */
.oo-cc, .oo-cc-overlay { font-family: Sora, sans-serif; -webkit-font-smoothing: antialiased; }
.oo-cc *, .oo-cc-overlay * { box-sizing: border-box; }
.oo-cc[hidden], .oo-cc-overlay[hidden] { display: none !important; }

/* ---------- první vrstva (lišta) ---------- */
.oo-cc {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10000;
  width: min(440px, calc(100vw - 40px));
  padding: 24px;
  color: #333;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .2);
  font-size: 13px;
  line-height: 1.6;
  animation: oo-cc-in .4s cubic-bezier(.2, .7, .2, 1) both;
}
.oo-cc-title { margin: 0 0 8px; color: #000; font-size: 17px; font-weight: 700; line-height: 1.3; }
.oo-cc-text { margin: 0; font-weight: 400; }
.oo-cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.oo-cc-actions .oo-btn { flex: 1 1 0; }
.oo-cc-link { margin: 12px 0 -4px; }

/* ---------- tlačítka ---------- */
.oo-btn {
  padding: 9px 16px;
  color: #000;
  background: #f3f3f3;
  border: 1px solid #9a9a99;
  border-radius: 20px;
  font: 700 13px/20px Sora, sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.oo-btn:hover { background: #e6e6e6; border-color: #000; }
.oo-btn:focus-visible, .oo-cc-close:focus-visible, .oo-sw input:focus-visible + .oo-sw-ui {
  outline: 2px solid #3b2ae5;
  outline-offset: 2px;
}
.oo-btn-link {
  padding: 0;
  color: #000;
  background: none;
  border: 0;
  font: 600 13px/20px Sora, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.oo-btn-link:hover { text-decoration-thickness: 2px; }

/* ---------- druhá vrstva (předvolby) ---------- */
.oo-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .5);
  animation: oo-cc-fade .2s ease both;
}
.oo-cc-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  color: #333;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .3);
  font-size: 13px;
  line-height: 1.6;
}
.oo-cc-head { position: relative; padding: 28px 72px 12px 32px; }
.oo-cc-head h2 { margin: 0; color: #000; font-size: 22px; font-weight: 700; line-height: 1.25; }
.oo-cc-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.oo-cc-close img { display: block; width: 100%; height: 100%; }
.oo-cc-body { padding: 0 32px 8px; overflow-y: auto; overscroll-behavior: contain; }
.oo-cc-body > p { margin: 0 0 16px; }
.oo-cc-cat { padding: 16px 0; border-top: 1px solid #e6e6e6; }
.oo-cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.oo-cc-cat h3 { margin: 0; color: #000; font-size: 14px; font-weight: 700; }
.oo-cc-cat p { margin: 6px 0 0; }
.oo-cc-always { color: #292929; font-size: 12px; font-weight: 600; white-space: nowrap; }
.oo-cc-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 32px 28px; border-top: 1px solid #e6e6e6; }
.oo-cc-foot .oo-btn { flex: 1 1 0; white-space: nowrap; }

/* přepínač */
.oo-sw { position: relative; flex: none; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.oo-sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.oo-sw-ui { position: absolute; inset: 0; background: #c9c9c8; border-radius: 24px; transition: background-color .2s; pointer-events: none; }
.oo-sw-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.oo-sw input:checked + .oo-sw-ui { background: #111; }
.oo-sw input:checked + .oo-sw-ui::after { transform: translateX(20px); }

/* ---------- odkaz „Nastavení cookies“ v patičce ---------- */
/* odsazený řádek, který nemění výšku bloku – telefon a e-mail zůstávají na místě jako v originálu */
.cookie-settings-wrap { margin-top: 20px; margin-bottom: -40px; }
.cookie-settings-link {
  color: inherit;
  text-decoration: none;
  opacity: .7;
  transition: opacity .15s;
}
.cookie-settings-link:hover, .cookie-settings-link:focus-visible { opacity: 1; }

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

@keyframes oo-cc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes oo-cc-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 479px) {
  .oo-cc { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
  .oo-cc-actions .oo-btn { flex-basis: 100%; }
  .oo-cc-overlay { padding: 12px; }
  .oo-cc-modal { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .oo-cc-head { padding: 24px 64px 10px 20px; }
  .oo-cc-head h2 { font-size: 19px; }
  .oo-cc-close { top: 16px; right: 16px; }
  .oo-cc-body { padding: 0 20px 8px; }
  .oo-cc-foot { padding: 14px 20px 20px; }
  .oo-cc-foot .oo-btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .oo-cc, .oo-cc-overlay { animation: none; }
  .oo-sw-ui, .oo-sw-ui::after, .oo-btn, .cookie-settings-link { transition: none; }
}
