.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: none;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
  color: #111111;
  animation: cc-slide-up 0.24s ease;
}

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

.cc-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cc-text {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cc-link {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.cc-btn {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cc-btn:hover,
.cc-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cc-btn-primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
}

.cc-modal.cc-visible {
  display: flex;
}

.cc-modal-card {
  width: min(560px, 100%);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
  padding: 20px;
  animation: cc-fade-in 0.2s ease;
}

.cc-modal-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.cc-muted {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.cc-row:last-of-type {
  border-bottom: 0;
}

.cc-row-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.cc-row-text {
  margin: 0;
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.45;
}

.cc-switch {
  width: 46px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  cursor: pointer;
}

.cc-switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.cc-switch.cc-on {
  background: #111111;
}

.cc-switch.cc-on::after {
  transform: translateX(20px);
}

.cc-switch:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

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

@media (min-width: 768px) {
  .cc-banner {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner,
  .cc-modal-card,
  .cc-btn,
  .cc-switch::after {
    animation: none;
    transition: none;
  }
}

@keyframes cc-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cc-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
