/* =========================================================================
   cookies.css — lišta se souhlasem.

   Vzhled odpovídá novější variantě z ostatních webů: malá karta 360 px
   vlevo dole (ne široký pruh přes celou šířku) a po odsouhlasení zůstane
   vlevo dole malý čtvereček, kterým se nastavení znovu otevře.

   Barvy jsou přeložené do palety Modřanské zahrady — tam, kde má Akropole
   černou #1c1c1c, je tu navy #2D4156.

   Vyžaduje brand.css.
   ========================================================================= */

/* ---------- karta -------------------------------------------------------- */
.ck {
  position: fixed; bottom: 24px; left: 24px; z-index: 2000;
  width: 360px; max-width: calc(100vw - 48px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .24s var(--ease, ease), transform .24s var(--ease, ease), visibility .24s;
  pointer-events: none;
}
.ck.ck-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.ck-card {
  background: #fff;
  border: 1px solid #ECECEC;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  padding: 20px;
  max-height: 80vh; overflow-y: auto; overscroll-behavior: contain;
}
.ck-card::-webkit-scrollbar { width: 5px; background: #EFEFEF; }
.ck-card::-webkit-scrollbar-thumb { background: #C4C4C4; border-radius: 3px; }

.ck-card h2 {
  margin: 0 0 6px;
  font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--mz-navy);
}
.ck-card > p {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 400; line-height: 1.5; color: #8A8A8A;
}
.ck-card > p a { color: var(--mz-navy); text-decoration: underline; text-underline-offset: 2px; }
.ck-card > p a:hover { color: var(--mz-green); }

/* ---------- rozbalovací „Nastavení“ -------------------------------------- */
.ck-more {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 0; margin: 0 0 14px;
  font-size: 12px; font-weight: 500; color: var(--mz-navy);
  cursor: pointer; transition: color .2s ease;
}
.ck-more:hover { color: var(--mz-green); }
.ck-more svg { width: 10px; height: 10px; transition: transform .22s var(--ease, ease); }
.ck-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- kategorie ---------------------------------------------------- */
.ck-detail { margin: 0 0 14px; border-top: 1px solid #EFEFEF; }
.ck-detail[hidden] { display: none; }

.ck-cat {
  position: relative; display: block;
  padding: 12px 56px 12px 0; border-bottom: 1px solid #EFEFEF;
  cursor: pointer;
}
.ck-cat:last-child { border-bottom: 0; }
.ck-cat input { position: absolute; opacity: 0; width: 0; height: 0; }

.ck-cat b { display: block; font-size: 12.5px; font-weight: 600; color: var(--mz-navy); }
.ck-cat b em {
  font-style: normal; font-size: 9.5px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: #A9A9A9; margin-left: 6px;
}
.ck-cat span.ck-cat-d {
  display: block; margin-top: 3px;
  font-size: 11.5px; line-height: 1.5; color: #8A8A8A;
}

/* přepínač — vpravo, svisle na střed řádku */
.ck-sw {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 44px; height: 24px; border-radius: 15px; background: #E2E2E2;
  transition: background-color .2s ease;
}
.ck-sw::before {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .2s ease;
}
.ck-cat input:checked + .ck-sw { background: var(--mz-green); }
.ck-cat input:checked + .ck-sw::before { transform: translateX(20px); }
.ck-cat input:focus-visible + .ck-sw { outline: 2px solid var(--mz-navy); outline-offset: 2px; }
.ck-cat-fixed { cursor: default; }
.ck-cat-fixed .ck-sw { background: var(--mz-green); opacity: .45; }

/* ---------- tlačítka ----------------------------------------------------- */
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-b {
  border: 1px solid var(--mz-navy); border-radius: 999px;
  padding: 9px 18px; font-size: 12px; font-weight: 600; line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .1s ease;
}
.ck-b:active { transform: translateY(1px); }

.ck-b-ok { background: var(--mz-navy); color: #fff; }
.ck-b-ok:hover { background: var(--mz-navy-deep); border-color: var(--mz-navy-deep); box-shadow: 0 4px 12px rgba(6, 49, 57, .18); }

.ck-b-line { background: #fff; color: var(--mz-navy); }
.ck-b-line:hover { background: var(--mz-navy); color: #fff; }
.ck-b[hidden] { display: none; }

/* ---------- plovoucí čtvereček po odsouhlasení --------------------------- */
.ck-icon {
  position: fixed; bottom: 16px; left: 16px; z-index: 2001;
  width: 32px; height: 32px; padding: 7px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 0; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
  color: var(--mz-navy); cursor: pointer;
  transition: box-shadow .2s ease, color .2s ease, transform .1s ease;
}
.ck-icon:hover { color: var(--mz-green); box-shadow: 0 4px 14px rgba(0, 0, 0, .22); }
.ck-icon:active { transform: translateY(1px); }
.ck-icon[hidden] { display: none; }
.ck-icon svg { width: 100%; height: 100%; }

/* ---------- mobil -------------------------------------------------------- */
@media (max-width: 620px) {
  .ck { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .ck-card { padding: 16px; max-height: 78vh; }
  .ck-btns > .ck-b { flex: 1 1 auto; text-align: center; }
  .ck-icon { bottom: 12px; left: 12px; }
}

@media print { .ck, .ck-icon { display: none !important; } }
