/* Popup právních stránek (/cookies/ a /zasady-zpracovani-osobnich-udaju/) —
   vzhled jako okno Nastavení cookies (.cookie-panel, z-index 300 nad
   hlavičkou se z-index 200). Stránky na svých URL zůstávají.
   Měření, souhlas i gtag-consent.js beze změny. */

.cookie-info-panel[hidden] {
  display: none !important;
}

.cookie-info-panel {
  position: fixed;
  z-index: 300;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  align-items: safe center;
  justify-content: center;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.cookie-info-panel .cookie-info-card {
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  min-height: 0;
  margin: auto;
  box-sizing: border-box;
  background: #fff;
  color: #2a2927;
  border-radius: 0;
  padding: 22px 22px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cookie-info-panel .cookie-info-card > h2 {
  margin: 0 40px 16px 0;
  font-size: 22px;
  flex: 0 0 auto;
}

.cookie-info-panel .cookie-info-close {
  position: absolute;
  top: 10px;
  right: 22px;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: #2a2927;
  line-height: 1;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-info-panel .cookie-info-body {
  font-size: 15px;
  line-height: 1.55;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cookie-info-panel .cookie-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 8px 0 20px;
}

.cookie-info-panel .cookie-table-wrap .cookie-table {
  width: 100%;
  min-width: 560px;
  margin: 0;
}

body.cookie-info-open {
  overflow: hidden;
}

body.cookie-info-open .cookie-bar {
  display: none;
}

@media (max-width: 700px) {
  .cookie-info-panel .cookie-info-card { padding: 20px 16px 16px; }
  .cookie-info-panel .cookie-info-card > h2 { font-size: 20px; }
  .cookie-info-panel .cookie-info-close { right: 16px; }
}

@media (max-height: 900px) {
  .cookie-info-panel { padding: 12px; }
  .cookie-info-panel .cookie-info-card { padding-top: 16px; padding-bottom: 12px; }
  .cookie-info-panel .cookie-info-card > h2 { margin-bottom: 10px; }
}
