.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  padding-bottom: max(20px, calc(88px + env(safe-area-inset-bottom, 0px)));
}

@media (min-width: 769px) {
  .cc-overlay {
    padding-bottom: 20px;
  }
}

.cc-overlay.active {
  display: flex;
}

.cc-modal {
  background: #ffffff;
  color: #1e293b;
  max-width: 680px;
  width: 100%;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border-top: 5px solid #d8315b;
  animation: ccSlideUp 0.3s ease;
}

@keyframes ccSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cc-header h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #181c2e;
}

.cc-header p {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 18px;
}

.cc-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.cc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.cc-item-info strong {
  display: block;
  font-size: 0.94rem;
  color: #0f172a;
}

.cc-item-info span {
  font-size: 0.82rem;
  color: #64748b;
}

.cc-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}

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

.cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.cc-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cc-switch input:checked + .cc-slider {
  background-color: #d8315b;
}

.cc-switch input:disabled + .cc-slider {
  background-color: #64748b;
  cursor: not-allowed;
}

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

.cc-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cc-btn {
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.cc-btn-necessary {
  background: #f1f5f9;
  color: #334155;
}

.cc-btn-selected {
  background: #181c2e;
  color: #ffffff;
}

.cc-btn-all {
  background: linear-gradient(135deg, #f3907c 0%, #d8315b 100%);
  color: #ffffff;
}

@media (max-width: 600px) {
  .cc-buttons {
    grid-template-columns: 1fr;
  }
}
