/* Cookie bar. The only stylesheet on the site that is ours – everything in
   assets/ apart from this folder is the original theme, and scripts/build.py
   wipes and re-copies it from the offline copy on every build.

   Deliberately neutral: the site is black, white and grey in Roboto, so the
   bar is too. Class names follow the theme (Cookies-…), and none of them
   collides with anything in app.css. */

.Cookies {
  position: fixed; inset: auto 0 0 0; z-index: 1100;
  padding: 0 12px 12px;
  font-family: Roboto, sans-serif;
}
.Cookies[hidden] { display: none; }

.Cookies-panel {
  position: relative;
  max-width: 780px; margin: 0 auto; padding: 20px 22px 18px;
  background: #fff; color: #000;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .22);
  max-height: calc(100vh - 24px); overflow-y: auto;
}

.Cookies-nadpis { margin: 0 34px 8px 0; font-size: 20px; font-weight: 700; }
.Cookies-text { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #333; }
.Cookies-odkaz { color: #000; text-decoration: underline; }
.Cookies-odkaz:hover, .Cookies-odkaz:focus { text-decoration: none; }

.Cookies-zavrit {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px; padding: 0;
  border: 0; background: none; color: #777;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.Cookies-zavrit:hover, .Cookies-zavrit:focus { color: #000; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.Cookies-tlacitka { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.Cookies-tlacitko {
  padding: 9px 16px;
  border: 1px solid #000; border-radius: 3px;
  background: #fff; color: #000;
  font: inherit; font-size: 14px; cursor: pointer;
  transition: all .2s ease;
}
.Cookies-tlacitko:hover, .Cookies-tlacitko:focus { background: #eee; }
.Cookies-tlacitko--hlavni { background: #000; color: #fff; }
.Cookies-tlacitko--hlavni:hover, .Cookies-tlacitko--hlavni:focus { background: #333; }
.Cookies-tlacitko--tise { border-color: #bbb; color: #444; }
.Cookies-tlacitko--ulozit { margin-left: auto; }
.Cookies-tlacitko[hidden] { display: none; }

/* ── the list of cookies ─────────────────────────────────────────────── */
.Cookies-nastaveni {
  margin: 0 0 16px; padding-top: 4px;
  border-top: 1px solid #e5e5e5;
}
.Cookies-nastaveni[hidden] { display: none; }

.Cookies-skupina { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.Cookies-skupina:last-child { border-bottom: 0; }

.Cookies-prepinac {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.Cookies-prepinac input { width: 17px; height: 17px; margin: 0; cursor: pointer; }
.Cookies-prepinac input:disabled { cursor: default; }
.Cookies-znacka {
  padding: 1px 7px; border-radius: 10px;
  background: #f0f0f0; color: #666;
  font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em;
}
.Cookies-popis { margin: 6px 0 10px 25px; font-size: 13px; line-height: 1.55; color: #555; }

.Cookies-tabulka {
  width: 100%; margin-left: 25px; max-width: calc(100% - 25px);
  border-collapse: collapse;
  font-size: 12.5px; color: #444;
}
.Cookies-tabulka th, .Cookies-tabulka td {
  padding: 5px 8px 5px 0; text-align: left; vertical-align: top;
  border-bottom: 1px solid #f2f2f2;
}
.Cookies-tabulka th { font-weight: 700; color: #777; white-space: nowrap; }
.Cookies-tabulka code { font-family: monospace; font-size: 12px; color: #000; }

/* ── the little cookie, once the visitor has decided ─────────────────── */
/* Drawn, not an emoji: the emoji comes out in whatever colours the system
   has for it, and the site is black and white. */
.Cookies-ikona {
  position: fixed; left: 16px; bottom: 16px; z-index: 1090;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid #ddd; border-radius: 50%;
  background: #fff; color: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  line-height: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.Cookies-ikona svg { display: block; fill: currentColor; }
.Cookies-ikona:hover, .Cookies-ikona:focus {
  transform: scale(1.08); box-shadow: 0 4px 16px rgba(0, 0, 0, .26);
}
.Cookies-ikona[hidden] { display: none; }

/* the map when it is not allowed */
.Cookies-mistoMapy {
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center;
  min-height: 200px; padding: 24px;
  background: #f4f4f4; border: 1px dashed #ccc;
  font-size: 14px; color: #555; text-align: center;
}

@media (max-width: 640px) {
  .Cookies { padding: 0 0 0; }
  .Cookies-panel { border-radius: 0; border-width: 1px 0 0; padding: 16px 16px 14px; }
  .Cookies-tlacitko { flex: 1 1 auto; }
  .Cookies-tlacitko--ulozit { margin-left: 0; }
  .Cookies-popis, .Cookies-tabulka { margin-left: 0; max-width: 100%; }
  /* four columns do not fit a phone – each cookie becomes a small block */
  .Cookies-tabulka, .Cookies-tabulka tbody, .Cookies-tabulka tr, .Cookies-tabulka td { display: block; }
  .Cookies-tabulka thead { display: none; }
  .Cookies-tabulka tr { padding: 6px 0; border-bottom: 1px solid #f2f2f2; }
  .Cookies-tabulka td { border: 0; padding: 1px 0; }
  .Cookies-tabulka td::before { content: attr(data-popisek) ": "; color: #999; }
  .Cookies-tabulka td:first-child::before { content: ""; }
}
