.cc-banner {
  --cc-primary: #dfa68a;
  --cc-secondary: #6B859C;

  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 22px 22px 18px;
  font-family: inherit;
  color: #2b2b2b;
  line-height: 1.4;
}

.cc-banner.cc-hidden {
  display: none;
}

.cc-banner__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}

.cc-banner__text {
  font-size: 14px;
  color: #555;
  margin: 0 0 16px;
}

.cc-banner__text a {
  color: var(--cc-primary);
  text-decoration: underline;
}

.cc-banner__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s ease;
}

.cc-btn:hover {
  opacity: 0.85;
}

/* "Принять все" — основной фирменный цвет */
.cc-btn--primary {
  background: var(--cc-primary);
  color: #ffffff;
}

/* "Только обязательные" — второй фирменный цвет */
.cc-btn--secondary {
  background: var(--cc-secondary);
  color: #ffffff;
}

.cc-banner__settings-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #777;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 4px 0 0;
}

.cc-banner__simple.cc-hidden,
.cc-banner__settings-link.cc-hidden {
  display: none;
}

/* ---------- Панель с категориями («Настроить») ---------- */

.cc-settings {
  display: none;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}

.cc-settings.cc-visible {
  display: block;
}

.cc-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cc-category:last-child {
  border-bottom: none;
}

.cc-category__info {
  flex: 1;
}

.cc-category__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}

.cc-category__desc {
  font-size: 12.5px;
  color: #777;
  margin: 0;
}

.cc-category__locked {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: center;
}

.cc-settings__save {
  margin-top: 4px;
}

/* ---------- Переключатель (toggle) ---------- */

.cc-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.cc-toggle__slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cc-toggle__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.cc-toggle input:checked + .cc-toggle__slider {
  background: var(--cc-primary, #dfa68a);
}

.cc-toggle input:checked + .cc-toggle__slider::before {
  transform: translateX(18px);
}

.cc-toggle input:disabled + .cc-toggle__slider {
  cursor: default;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .cc-banner {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
}
