/* Cookie lišta. Ve výchozím stavu ji skrývá atribut hidden — JS ji odkryje
   jen tehdy, když návštěvník ještě nerozhodl. */
.cookiebar { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; padding: 20px; pointer-events: none; }
.cookiebar[hidden] { display: none; }
.cookiebar-panel { pointer-events: auto; width: min(880px, 100%); border: 1px solid rgba(var(--cyan-rgb),.22); border-radius: 22px; padding: 28px 32px; background: var(--navy-deep); box-shadow: 0 28px 70px rgba(0,0,0,.42); color: var(--white); }
.cookiebar-title { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.cookiebar-text { margin: 0; max-width: 660px; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.6; }
.cookiebar-text a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.cookiebar-text a:hover, .cookiebar-text a:focus-visible { color: var(--white); }

.cookiebar-options { display: grid; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.cookiebar-options[hidden] { display: none; }
.cookiebar-option { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: start; cursor: pointer; }
.cookiebar-option input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--cyan); cursor: pointer; }
.cookiebar-option span { display: block; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.55; }
.cookiebar-option strong { display: block; margin-bottom: 2px; color: var(--white); font-size: 14px; font-weight: 800; }
.cookiebar-option--locked { cursor: default; }
.cookiebar-option--locked input { cursor: not-allowed; opacity: .55; }

.cookiebar-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cookiebar-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; padding: 0 20px; background: transparent; color: var(--white); cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 800; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.cookiebar-button:hover { border-color: rgba(var(--cyan-rgb),.7); background: rgba(255,255,255,.06); }
.cookiebar-button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cookiebar-button[hidden] { display: none; }
.cookiebar-button--primary { border-color: transparent; background: var(--cyan); color: var(--navy); }
.cookiebar-button--primary:hover { border-color: transparent; background: #6ecbee; transform: translateY(-1px); }
.cookiebar-button--ghost { margin-left: auto; border-color: transparent; color: rgba(255,255,255,.62); }
.cookiebar-button--ghost:hover { border-color: transparent; color: var(--white); }

/* Odkaz na znovuotevření lišty v patičce. */
.cookiebar-reopen { border: 0; padding: 0; background: none; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookiebar-reopen:hover { color: var(--cyan); }

@media (max-width: 640px) {
  .cookiebar { padding: 0; }
  .cookiebar-panel { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 22px 22px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .cookiebar-actions { flex-direction: column; }
  .cookiebar-button { width: 100%; }
  .cookiebar-button--ghost { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cookiebar-button { transition: none; }
  .cookiebar-button--primary:hover { transform: none; }
}
