.cc-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(26, 29, 43, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  padding: 14px 20px;
  width: calc(100% - 32px);
  max-width: 920px;
  display: none;
  animation: ccSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes ccSlideUp {
  from { transform: translateX(-50%) translateY(24px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.cc-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cc-banner-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(75, 139, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.cc-banner-text {
  flex: 1;
  min-width: 0;
}

.cc-banner-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #9198ad;
}

.cc-banner-text a {
  color: #4b8bff;
  text-decoration: none;
  font-weight: 500;
}

.cc-banner-text a:hover {
  text-decoration: underline;
}

.cc-banner-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.cc-btn {
  padding: 9px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.3;
}

.cc-btn:focus-visible {
  outline: 2px solid #4b8bff;
  outline-offset: 2px;
}

.cc-btn-accept {
  background: #4b8bff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(75, 139, 255, 0.25);
}

.cc-btn-accept:hover {
  box-shadow: 0 4px 16px rgba(75, 139, 255, 0.35);
  transform: translateY(-1px);
}

.cc-btn-reject {
  background: transparent;
  color: #5c6380;
  font-weight: 500;
  padding: 9px 10px;
  font-size: 12px;
}

.cc-btn-reject:hover {
  color: #9198ad;
  text-decoration: underline;
}

.cc-btn-manage {
  background: transparent;
  color: #9198ad;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-btn-manage:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  animation: ccFadeIn 0.25s ease-out;
}

.cc-overlay.cc-visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes ccFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cc-modal {
  background: rgba(26, 29, 43, 0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2);
  max-width: 460px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  animation: ccScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes ccScaleIn {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.cc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #9198ad;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 1;
  padding: 0;
}

.cc-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #eef0f6;
}

.cc-modal-close svg {
  width: 16px;
  height: 16px;
}

.cc-modal-header {
  padding: 28px 28px 18px;
}

.cc-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #eef0f6;
  letter-spacing: -0.01em;
}

.cc-modal-header p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #9198ad;
  line-height: 1.55;
}

.cc-modal-body {
  padding: 0 28px;
}

.cc-category {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.cc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cc-category-info {
  flex: 1;
  min-width: 0;
}

.cc-category-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #eef0f6;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-category-info p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #5c6380;
  line-height: 1.5;
}

.cc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(75, 139, 255, 0.12);
  color: #4b8bff;
}

.cc-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

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

.cc-toggle-slider {
  position: absolute;
  inset: 0;
  background: #3a3f52;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cc-toggle-slider::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.cc-toggle input:checked + .cc-toggle-slider {
  background: #4b8bff;
}

.cc-toggle input:checked + .cc-toggle-slider::after {
  transform: translateX(20px);
}

.cc-toggle input:disabled + .cc-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cc-toggle input:focus-visible + .cc-toggle-slider {
  outline: 2px solid #4b8bff;
  outline-offset: 2px;
}

.cc-modal-footer {
  padding: 18px 28px 24px;
  display: flex;
  gap: 10px;
}

.cc-modal-footer .cc-btn {
  flex: 1;
  padding: 11px 18px;
  text-align: center;
}

.cc-modal-footer .cc-btn-save {
  background: rgba(255, 255, 255, 0.06);
  color: #eef0f6;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-modal-footer .cc-btn-save:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cc-modal-link {
  display: block;
  text-align: center;
  padding: 0 28px 22px;
  font-size: 12px;
  color: #5c6380;
}

.cc-modal-link a {
  color: #4b8bff;
  text-decoration: none;
  font-weight: 500;
}

.cc-modal-link a:hover {
  text-decoration: underline;
}

.cc-footer-link {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s;
  line-height: inherit;
}

.cc-footer-link:hover {
  color: #4b8bff;
}

@media (max-width: 640px) {
  .cc-banner {
    bottom: 80px;
    padding: 12px 14px;
    border-radius: 16px;
    width: calc(100% - 24px);
  }

  .cc-banner-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

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

  .cc-banner-text p {
    font-size: 12px;
  }

  .cc-banner-buttons {
    width: 100%;
    gap: 6px;
  }

  .cc-btn {
    padding: 10px 14px;
    font-size: 12.5px;
  }

  .cc-banner-buttons .cc-btn-accept {
    flex: 1;
  }

  .cc-banner-buttons .cc-btn-manage {
    flex: 0 0 auto;
  }

  .cc-banner-buttons .cc-btn-reject {
    flex: 0 0 auto;
  }

  .cc-modal {
    max-height: 85vh;
    border-radius: 18px;
  }

  .cc-modal-header {
    padding: 22px 20px 14px;
  }

  .cc-modal-body {
    padding: 0 20px;
  }

  .cc-modal-footer {
    padding: 16px 20px 20px;
  }

  .cc-modal-link {
    padding: 0 20px 18px;
  }

  .cc-modal-close {
    top: 14px;
    right: 14px;
  }
}
