.cc-banner {
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: none;
  max-width: 760px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  margin: auto;
  padding: 24px;
  border: 1px solid #dfe5ea;
  border-radius: 20px;
  background: #fff;
  color: #15191e;
  box-shadow: 0 24px 80px rgba(10, 22, 32, .25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cc-banner.is-visible { display: block; }
body.atn-consent-open { overflow: hidden; }
.cc-banner h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -.025em; }
.cc-banner p { margin: 0; color: #66707c; font-size: .92rem; line-height: 1.55; }
.cc-banner a { color: #00659f; font-weight: 750; }

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cc-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #dfe5ea;
  border-radius: 999px;
  background: #fff;
  color: #15191e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cc-btn:hover { background: #f4f6f8; }
.cc-btn-primary { border-color: #007cc3; background: #007cc3; color: #fff; }
.cc-btn-primary:hover { background: #00659f; }
.cc-btn-link { border-color: transparent; color: #00659f; }

.cc-btn:focus-visible,
.cc-close:focus-visible,
.cookie-settings-link:focus-visible,
.cc-switch input:focus-visible + span {
  outline: 3px solid rgba(0, 124, 195, .34);
  outline-offset: 3px;
}

.cc-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(8, 17, 25, .64);
}

.cc-backdrop.is-visible { display: grid; }

.cc-modal {
  width: min(100%, 650px);
  max-height: min(740px, calc(100dvh - 40px));
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  color: #15191e;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cc-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid #e3e7eb;
}

.cc-modal h2 { margin: 0; font-size: 1.5rem; }

.cc-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f4f6f8;
  color: #15191e;
  font-size: 1.3rem;
  cursor: pointer;
}

.cc-modal-body { padding: 24px; }
.cc-modal-intro { margin-top: 0; color: #66707c; }

.cc-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #e3e7eb;
}

.cc-category h3 { margin: 0 0 5px; font-size: 1rem; }
.cc-category p { margin: 0; color: #66707c; font-size: .85rem; line-height: 1.5; }
.cc-switch { position: relative; width: 48px; height: 28px; }
.cc-switch input { position: absolute; opacity: 0; }

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

.cc-switch span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
  transition: .2s;
}

.cc-switch input:checked + span { background: #007cc3; }
.cc-switch input:checked + span::before { transform: translateX(20px); }
.cc-switch input:disabled + span { opacity: .65; cursor: not-allowed; }

.cc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 24px;
  border-top: 1px solid #e3e7eb;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cookie-settings-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-col .cookie-settings-link { display: block; margin: 10px 0; color: #a7b0b8; font-size: .9rem; }
.sitemap-card .cookie-settings-link { display: block; padding: 8px 0; color: #00659f; font-weight: 750; }

@media (max-width: 600px) {
  .cc-banner { right: 10px; bottom: 10px; left: 10px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding: 20px; }
  .cc-actions { display: grid; }
  .cc-btn { width: 100%; }
  .cc-modal-actions { display: grid; }
  .cc-modal-actions .cc-btn { width: 100%; }
}

.cc-btn-primary,
.cc-switch input:checked + span { border-color: #006da8; background: #006da8; }
.cc-banner p,
.cc-modal-intro,
.cc-category p { color: #59636d; }
