#cookie-banner {
  box-sizing: border-box;
  position: fixed;
  z-index: 960;
  inset-inline-start: clamp(12px, 2vw, 28px);
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(43rem, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: clamp(16px, 2.5vw, 25px);
  border: 1px solid #c7a55b;
  border-radius: 15px;
  background: #08271f;
  color: #fffaf0;
  box-shadow: 0 10px 35px #08271f50;
  font: .92rem/1.5 system-ui, sans-serif;
}

#cookie-banner[hidden] { display: none; }

#cookie-banner h2 {
  margin: 0 0 6px;
  color: inherit;
  font: 1.45rem/1.2 Georgia, serif;
  text-align: left;
}

#cookie-banner p { margin: 0; color: inherit; text-align: left; }
#cookie-banner details { margin-top: 10px; }
#cookie-banner summary { width: fit-content; cursor: pointer; }
#cookie-banner summary,
.cookie-close,
#cookie-banner a { color: #f0d594; }
#cookie-banner details p { margin-top: 7px; }
#cookie-banner a { text-decoration: underline; text-underline-offset: 3px; }

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cookie-actions button,
.cookie-map-settings {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #c7a55b;
  border-radius: 7px;
  background: #f0d594;
  color: #08271f;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.cookie-actions button:hover,
.cookie-map-settings:hover { background: #ffe7ad; }

#cookie-banner :focus-visible,
.cookie-map-settings:focus-visible,
.cookie-footer-settings:focus-visible {
  outline: 2px solid #c7a55b;
  outline-offset: 3px;
}

.cookie-map-placeholder {
  box-sizing: border-box;
  display: grid;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  background: #f4efe2;
  color: #173d33;
  text-align: center;
}

.cookie-map-placeholder p { margin: 0; color: inherit; }
.cookie-map-placeholder a,
.cookie-footer-settings { text-decoration: underline; text-underline-offset: 4px; }
.cookie-map-placeholder a { color: #173d33; }

.footer-about > p { text-align: left; }

footer .footer-company {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-top: 6px;
  padding-top: 17px;
  border-top: 1px solid #c9a34c38;
  color: #ffffffbd;
  font-size: .82rem;
  line-height: 1.5;
}

footer .footer-company p {
  margin: 0;
  text-align: left;
}

footer .footer-company .footer-heading { margin-bottom: 5px; }
.footer-company-name { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.footer-company-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.footer-company-ids li { white-space: nowrap; }

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  margin-top: 26px;
  padding-top: 8px;
}

.footer-bottom > span:nth-child(2) { text-align: center; }

.cookie-footer-settings {
  justify-self: end;
  min-height: 24px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

body.penzion-footer-visible .kz-chat {
  bottom: calc(33px + var(--penzion-footer-bar-height, 34px) + env(safe-area-inset-bottom));
}

@media (max-width: 600px) {
  body.penzion-footer-visible .kz-panel {
    bottom: calc(100px + var(--penzion-footer-bar-height, 70px) + env(safe-area-inset-bottom));
    height: min(650px, calc(100dvh - 126px - var(--penzion-footer-bar-height, 70px) - env(safe-area-inset-bottom)));
  }
}

@media (max-width: 700px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.cookie-close {
  margin-top: 10px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.kz-chat:has(.kz-panel:not([hidden])) { z-index: 970; }

@media (max-width: 980px) {
  #cookie-banner {
    bottom: calc(78px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 90px - env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .cookie-actions { grid-template-columns: 1fr; gap: 7px; }
}
