.cc-banner,
.cc-modal,
.cc-floating-button {
  --cc-bg: #ffffff;
  --cc-text: #132033;
  --cc-muted: #536173;
  --cc-border: #d8e0ea;
  --cc-primary: #12395b;
  --cc-primary-hover: #0c2a44;
  --cc-focus: #2a76c7;
  --cc-shadow: 0 18px 48px rgba(14, 27, 46, .18);
  --cc-radius: 16px;
}

.cc-hidden { display: none !important; }
.cc-lock-scroll { overflow: hidden; }

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background: var(--cc-bg);
  box-shadow: var(--cc-shadow);
  color: var(--cc-text);
  font-family: Arial, Helvetica, sans-serif;
}

.cc-banner__inner {
  display: flex;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
}

.cc-banner h2,
.cc-modal h2 {
  margin: 0 0 7px;
  color: var(--cc-text);
  font-size: 19px;
  line-height: 1.25;
}

.cc-banner p,
.cc-modal p {
  margin: 0;
  max-width: 640px;
  color: var(--cc-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cc-link {
  color: var(--cc-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.cc-button {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--cc-primary);
  border-radius: 10px;
  background: #fff;
  color: var(--cc-primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.cc-button:hover { background: #eef4f9; }
.cc-button--decision {
  background: var(--cc-primary);
  color: #fff;
}
.cc-button--decision:hover {
  background: var(--cc-primary-hover);
  border-color: var(--cc-primary-hover);
}
.cc-button:focus-visible,
.cc-floating-button:focus-visible,
.cc-switch input:focus-visible + span,
.cc-close:focus-visible {
  outline: 3px solid var(--cc-focus);
  outline-offset: 2px;
}

.cc-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.cc-modal {
  position: relative;
  width: min(600px, 100%);
  max-height: min(680px, calc(100vh - 32px));
  overflow: auto;
  padding: 25px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background: var(--cc-bg);
  box-shadow: var(--cc-shadow);
  color: var(--cc-text);
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: auto;
}

.cc-close {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cc-border);
  border-radius: 50%;
  background: #fff;
  color: var(--cc-text);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.cc-categories {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.cc-category {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--cc-border);
  border-radius: 12px;
}

.cc-category strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.cc-category p { font-size: 13px; }

.cc-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  margin-top: 1px;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: #c6d0dd;
  cursor: pointer;
  transition: background .15s ease;
}

.cc-switch span::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform .15s ease;
}

.cc-switch input:checked + span { background: var(--cc-primary); }
.cc-switch input:checked + span::before { transform: translateX(20px); }
.cc-switch input:disabled + span { opacity: .7; cursor: not-allowed; }

.cc-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
  padding-top: 5px;
}

.cc-floating-button {
  position: fixed;
  z-index: 99997;
  left: 14px;
  bottom: 14px;
  min-height: 39px;
  padding: 8px 13px;
  border: 1px solid var(--cc-border);
  border-radius: 999px;
  background: var(--cc-bg);
  box-shadow: 0 5px 18px rgba(14, 27, 46, .14);
  color: var(--cc-primary);
  cursor: pointer;
  font: 700 13px/1.2 Arial, Helvetica, sans-serif;
}

.cc-floating-button:hover { background: #eef4f9; }

@media (max-width: 830px) {
  .cc-banner { padding: 17px; left: 10px; right: 10px; bottom: 10px; }
  .cc-banner__inner { display: block; }
  .cc-actions { justify-content: stretch; margin-top: 16px; }
  .cc-actions .cc-button { flex: 1 1 145px; }
  .cc-modal { padding: 21px 16px 17px; }
  .cc-modal h2 { padding-right: 42px; }
  .cc-modal__footer .cc-button { flex: 1 1 150px; }
}
