/* ==========================================================================
   COOKIE LISTA
   --------------------------------------------------------------------------
   Vlastny subor, lebo ju nacitava aj kosik.html, ktory brand.css nepouziva.

   PRAVNE KRITICKE: tlacidla "Prijat" a "Odmietnut" musia byt rovnako velke
   a rovnako vyrazne. Preto maju identicku triedu .cc-btn a ziadna z nich nema
   vlastnu farbu ani vlastnu velkost. Ked to niekto zmeni, suhlas je neplatny.
   ========================================================================== */

.cc {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  color: #23262f;
  border: 1px solid #e1e3f3;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(22, 24, 29, .18);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  padding: 18px 18px 16px;
  /* lista nesmie prekryt obsah natrvalo: neprekryva cely displej a da sa zavriet */
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  animation: cc-in .22s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .cc { animation: none; }
}

.cc[hidden] { display: none; }

.cc-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.02em;
  color: #16181d;
  margin: 0 0 6px;
}

.cc-text { margin: 0 0 14px; color: #5f6480; }
.cc-text a { color: #3a43b4; font-weight: 600; text-decoration: underline; }

/* obe tlacidla su tu, delia si sirku rovnakym dielom */
.cc-actions { display: flex; gap: 10px; }

.cc-btn {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 12px 14px;
  min-height: 46px;
  border: 1px solid #3a43b4;
  border-radius: 11px;
  background: #4f5bd5;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.cc-btn:hover { background: #3a43b4; }
.cc-btn:focus-visible { outline: 3px solid rgba(79, 91, 213, .35); outline-offset: 2px; }

/* tretia moznost je obycajny textovy odkaz, nie tlacidlo */
.cc-more { margin-top: 12px; text-align: center; }
.cc-link {
  background: none;
  border: 0;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 13.5px;
  color: #5f6480;
  text-decoration: underline;
  cursor: pointer;
}
.cc-link:hover { color: #23262f; }

/* panel s kategoriami */
.cc-panel { margin-top: 14px; border-top: 1px solid #e1e3f3; padding-top: 12px; }
.cc-panel[hidden] { display: none; }

.cc-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f0f1f8; }
.cc-row:last-of-type { border-bottom: 0; }
.cc-row-b { flex: 1 1 auto; min-width: 0; }
.cc-row-t { font-weight: 700; color: #16181d; font-size: 13.5px; }
.cc-row-d { color: #5f6480; font-size: 12.5px; line-height: 1.5; margin-top: 2px; }

.cc-sw { flex: none; position: relative; width: 44px; height: 26px; margin-top: 2px; }
.cc-sw input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.cc-sw span {
  position: absolute; inset: 0; border-radius: 999px; background: #d6d9ea;
  transition: background .15s ease; pointer-events: none;
}
.cc-sw span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.cc-sw input:checked + span { background: #4f5bd5; }
.cc-sw input:checked + span::after { transform: translateX(18px); }
.cc-sw input:disabled { cursor: not-allowed; }
.cc-sw input:disabled + span { background: #a2a8e6; }
.cc-sw input:focus-visible + span { outline: 3px solid rgba(79, 91, 213, .35); outline-offset: 2px; }

.cc-save { margin-top: 12px; }
.cc-save .cc-btn { flex: 1 1 100%; }

@media (max-width: 420px) {
  .cc { left: 10px; right: 10px; bottom: 10px; padding: 16px 15px 14px; }
  .cc-actions { gap: 8px; }
  .cc-btn { font-size: 14px; padding: 12px 8px; }
}
