.bc-banner,
.bc-panel {
  font-family: Urbanist, Arial, sans-serif;
  color: #0f4c45;
  box-sizing: border-box;
}
.bc-banner *,
.bc-panel * {
  box-sizing: border-box;
}
.bc-banner[hidden] {
  display: none !important;
}
.bc-banner {
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  width: 100%;
  border: 1px solid rgb(15 76 69 / .15);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -6px 30px rgb(15 76 69 / .10);
  max-height: 40vh;
  max-height: 40dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bc-banner-inner {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 22px 32px max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.bc-banner-icon {
  width: 52px;
  height: 52px;
  color: #0f4c45;
}
.bc-copy {
  min-width: 0;
  border-left: 1px solid #6fd9b0;
  padding-left: 26px;
}
.bc-banner h2 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 9px;
  color: #0f4c45;
}
.bc-banner p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: #0f4c45;
  max-width: 630px;
}
.bc-policy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  font-size: 15px;
  font-weight: 650;
  color: #0f4c45;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.bc-actions {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: end;
  gap: 8px;
  align-items: stretch;
}
.bc-button {
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #0f4c45;
  background: #fff;
  border: 1px solid #0f4c45;
  border-radius: 12px;
  padding: 13px 16px;
  min-height: 48px;
  min-width: 0;
  cursor: pointer;
  text-align: center;
}
.bc-decision {
  width: auto;
}
.bc-settings {
  background: #eaf7f1;
  border-color: #eaf7f1;
  width: auto;
}
.bc-button:focus-visible,
.bc-policy:focus-visible,
.bc-close:focus-visible,
.bc-category input:focus-visible {
  outline: 3px solid #6fd9b0 !important;
  outline-offset: 3px;
}
.bc-panel {
  position: fixed;
  inset: 0;
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  border: 1px solid rgb(15 76 69/0.15);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 40px rgb(15 76 69/0.15);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bc-panel:not([open]) {
  display: none;
}
.bc-panel::backdrop {
  background: rgb(15 76 69/0.3);
}
.bc-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bc-panel h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
  margin: 8px 0;
  color: #0f4c45;
}
.bc-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid #0f4c45;
  border-radius: 12px;
  background: #fff;
  color: #0f4c45;
  cursor: pointer;
  font: inherit;
  font-size: 26px;
  line-height: 1;
}
.bc-panel-intro {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.bc-categories {
  display: grid;
  gap: 0;
}
.bc-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #eaf7f1;
  align-items: center;
}
.bc-category label {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
}
.bc-category p {
  font-size: 14px;
  line-height: 1.6;
  margin: 4px 0 0;
}
.bc-category input {
  appearance: none;
  -webkit-appearance: none;
  width: 48px;
  height: 28px;
  margin: 0;
  border: 1px solid #0f4c45;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.bc-category input:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: #0f4c45;
  transition: transform 0.16s;
}
.bc-category input:checked {
  background: #6fd9b0;
}
.bc-category input:checked:before {
  transform: translateX(20px);
}
.bc-category input:disabled {
  cursor: not-allowed;
}
.bc-toggle-target {
  display: grid;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 44px;
}
.bc-always {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-top: 3px;
}
.bc-save {
  width: 100%;
  margin-top: 14px;
  background: #0f4c45;
  color: #fff;
  min-height: 48px;
}
.bc-panel .bc-policy {
  margin-top: 12px;
}
.bc-error {
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0 0;
}
.bc-error:empty {
  display: none;
}
#kontakt .bc-footer-settings {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
#kontakt .fm-bottom {
  flex-wrap: wrap;
}
#kontakt .bc-footer-settings:focus-visible {
  outline: 2px solid #6fd9b0 !important;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .bc-banner-inner { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; padding: 18px 24px; }
  .bc-banner-icon { width: 40px; height: 40px; }
  .bc-copy { padding-left: 16px; }
  .bc-actions { grid-column: 2; }
  .bc-banner h2 { font-size: 20px; }
  .bc-banner p { font-size: 14px; }
}
@media (max-width: 600px) {
  .bc-banner { border-radius: 18px 18px 0 0; }
  .bc-banner-inner {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }
  .bc-banner-icon { width: 28px; height: 28px; align-self: start; }
  .bc-copy { border: 0; padding: 0; }
  .bc-banner h2 { font-size: 16px; margin-bottom: 4px; }
  .bc-banner p { font-size: 13px; line-height: 1.4; }
  .bc-banner .bc-policy { min-height: 44px; font-size: 13px; }
  .bc-actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr) minmax(0, 1fr);
    gap: 8px;
  }
  .bc-actions .bc-button { width: 100%; min-height: 44px; padding: 6px 4px; font-size: 13px; white-space: normal; }
  .bc-panel { width: calc(100% - 24px); padding: 18px; border-radius: 16px; max-height: calc(100dvh - 24px); }
  .bc-panel h2 { font-size: 22px; }
  .bc-category { gap: 12px; padding-block: 18px; }
  .bc-category label { font-size: 16px; }
}
@media (hover: hover) and (pointer: fine) {
  .bc-decision:hover,
  .bc-close:hover {
    background: #eaf7f1;
  }
  .bc-settings:hover {
    border-color: #0f4c45;
  }
  .bc-save:hover {
    background: #0f4c45;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  #kontakt .bc-footer-settings:hover {
    color: #6fd9b0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bc-category input:before {
    transition: none;
  }
}


@media (max-width: 479px) {
  .bc-banner { max-height: 36vh; max-height: 36dvh; }
  .bc-banner-inner { padding-inline: 12px; gap: 4px 8px; }
  .bc-banner h2 { overflow-wrap: anywhere; }
  .bc-actions { position: sticky; bottom: 0; padding-top: 4px; background: #fff; }
  .bc-actions .bc-button { height: auto; min-height: 44px; overflow-wrap: anywhere; }
}
