#cc-banner[hidden],
#cc-panel[hidden] {
  display: none !important;
}

html.cc-modal-open {
  overflow: hidden;
}

.cc-banner {
  position: fixed;
  z-index: 99990;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(166, 206, 56, .9);   /* zelená webu (#A6CE38) s lehkou průhledností */
  color: #1C1C1C;
  font-family: 'redhat_light', Tahoma, Arial, sans-serif;
}

.cc-banner__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.cc-banner__content {
  flex: 1 1 auto;
}

.cc-banner h2,
.cc-panel h2,
.cc-panel h3 {
  margin: 0 0 8px;
  line-height: 1.2;
}

.cc-banner p,
.cc-panel p {
  margin: 0;
  line-height: 1.5;
}

.cc-banner__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cc-button {
  border: 0;
  border-radius: 3px;
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.cc-button--primary {
  background: #91c535;
  color: #fff;
}

.cc-button--primary:hover {
  background: #4fb345;
}

.cc-button--secondary {
  background: #555;
  color: #fff;
}

.cc-button--secondary:hover {
  background: #666;
}

.cc-link {
  border: 0;
  padding: 8px 0 0;
  background: transparent;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.cc-overlay {
  position: fixed;
  z-index: 99999;
  inset: 0;
  overflow-y: auto;
  padding: 30px 20px;
  background: rgba(0,0,0,.68);
  box-sizing: border-box;
}

.cc-panel {
  width: min(760px, 100%);
  margin: 5vh auto;
  background: #fff;
  color: #222;
  border-radius: 6px;
  box-shadow: 0 15px 60px rgba(0,0,0,.35);
}

.cc-panel__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid #ddd;
}

.cc-panel__header > div {
  flex: 1;
}

.cc-close {
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #555;
}

.cc-categories {
  padding: 8px 28px;
}

.cc-category {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

.cc-category__text {
  flex: 1;
}

.cc-category h3 {
  font-size: 18px;
}

.cc-category h3 span {
  font-size: 12px;
  font-weight: 400;
  color: #777;
  margin-left: 8px;
}

.cc-category small {
  display: block;
  margin-top: 7px;
  color: #666;
}

.cc-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #bbb;
  cursor: pointer;
  transition: .2s;
}

.cc-switch span:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
}

.cc-switch input:checked + span {
  background: #91c535;
}

.cc-switch input:checked + span:before {
  transform: translateX(20px);
}

.cc-switch input:disabled + span {
  cursor: not-allowed;
  opacity: .65;
}

.cc-panel__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 28px;
}

.cc-panel__note {
  padding: 0 28px 24px !important;
  color: #666;
  font-size: 13px;
}

.cc-floating {
  position: fixed;
  z-index: 99980;
  left: 15px;
  bottom: 15px;
  display: none;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 9px 13px;
  background: #fff;
  color: #222;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  cursor: pointer;
  font: 13px 'redhat_light', Tahoma, Arial, sans-serif;
}

@media (max-width: 720px) {
  .cc-banner__inner {
    width: calc(100% - 28px);
    padding: 18px 0;
    display: block;
  }

  .cc-banner__actions {
    margin-top: 16px;
    justify-content: stretch;
  }

  .cc-banner__actions .cc-button {
    flex: 1 1 0;
  }

  .cc-panel__header,
  .cc-categories,
  .cc-panel__footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cc-panel__footer {
    flex-direction: column;
  }

  .cc-panel__footer .cc-button {
    width: 100%;
  }
}

/* Fonty webu */
.cc-panel,
.cc-overlay,
.cc-floating,
.cc-button,
.cc-link {
  font-family: 'redhat_light', Tahoma, Arial, sans-serif;
}

.cc-banner h2,
.cc-panel h2,
.cc-panel h3,
.cc-button {
  font-family: 'redhat_bold', Tahoma, Arial, sans-serif;
  font-weight: normal;
}

/* Lišta nezakrývá konec stránky: dokud je vidět, přibude dole prázdné místo její výšky */
html.cc-banner-open body { padding-bottom: var(--cc-banner-h, 0px); }
html.cc-banner-open { scroll-padding-bottom: var(--cc-banner-h, 0px); }

/* Cookie lišta: tmavý text na zelené, tlačítka v barvách webu, bez zaoblení */
.cc-banner h2 { font-size: 22px; }
.cc-banner p { font-size: 16px; }
.cc-banner .cc-link { color: #1C1C1C; font-weight: 700; }
.cc-banner .cc-link:hover { text-decoration-thickness: 2px; }
.cc-banner .cc-button { border-radius: 0; font-size: 16px; }
.cc-banner .cc-button--primary { background: #1C1C1C; color: #fff; border: 2px solid #1C1C1C; }
.cc-banner .cc-button--primary:hover { background: #000; border-color: #000; }
.cc-banner .cc-button--secondary { background: transparent; color: #1C1C1C; border: 2px solid #1C1C1C; }
.cc-banner .cc-button--secondary:hover { background: #1C1C1C; color: #fff; }
.cc-banner :focus-visible { outline: 2px solid #1C1C1C; outline-offset: 3px; }
