/* Cookie Consent Banner */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-dark, #0a1628);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cc-banner.cc-visible {
  transform: translateY(0);
}

.cc-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cc-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cc-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cc-text a {
  color: var(--color-primary-light, #33a3c4);
  text-decoration: underline;
}

.cc-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cc-btn {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

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

.cc-btn-accept {
  background: var(--color-primary, #0079a0);
  color: #fff;
}

.cc-btn-reject {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cc-btn-customize {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Customization Panel */
.cc-details {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cc-details.cc-open {
  display: block;
}

.cc-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.cc-category-info {
  flex: 1;
}

.cc-category-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.cc-category-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem;
}

/* Toggle Switch */
.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 1rem;
}

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

.cc-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.cc-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cc-toggle input:checked + .cc-toggle-slider {
  background: var(--color-primary, #0079a0);
}

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

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

.cc-save-row {
  margin-top: 1rem;
  text-align: right;
}

.cc-btn-save {
  background: var(--color-primary, #0079a0);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .cc-main {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-buttons {
    justify-content: stretch;
  }

  .cc-btn {
    flex: 1;
    text-align: center;
  }
}
