/* === Cookie Consent Modal === */

/* Overlay - blocks navigation */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cc-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Modal - centered */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cc-modal.active {
  opacity: 1;
  pointer-events: all;
}

.cc-container {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.cc-modal.active .cc-container {
  transform: scale(1);
}

/* Continue link - top right, discrete */
.cc-continue {
  display: block;
  text-align: right;
  margin-bottom: 0.75rem;
}

.cc-continue a {
  font-size: 0.6875rem;
  color: #D4C4A8;
  text-decoration: none;
  cursor: pointer;
}

.cc-continue a:hover {
  color: #B8A88C;
}

/* Title */
.cc-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #3D3425;
  margin-bottom: 0.5rem;
}

/* Description */
.cc-description {
  font-size: 0.8125rem;
  color: #8B7355;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cc-description a {
  color: #00A86B;
  text-decoration: underline;
}

.cc-description a:hover {
  color: #008756;
}

/* Buttons */
.cc-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cc-btn {
  width: 100%;
  padding: 0.7rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.cc-btn-accept {
  background: #00A86B;
  color: white;
}

.cc-btn-accept:hover {
  background: #008756;
}

.cc-btn-reject {
  background: #F5DEB3;
  color: #5D4E37;
}

.cc-btn-reject:hover {
  background: #FAEBD7;
}

.cc-btn-settings {
  background: white;
  color: #B8A88C;
  border: 1px solid #FAEBD7;
}

.cc-btn-settings:hover {
  border-color: #00A86B;
  color: #00A86B;
}

/* Second level: categories (hidden by default) */
.cc-second-level {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #FAEBD7;
}

.cc-second-level.open {
  display: block;
}

.cc-categories {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.cc-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #FFFBF5;
  border: 1px solid #FAEBD7;
  border-radius: 0.625rem;
}

.cc-category-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cc-category-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3D3425;
}

.cc-category-desc {
  font-size: 0.6875rem;
  color: #B8A88C;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  width: 40px;
  height: 24px;
  flex-shrink: 0;
}

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

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

.cc-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cc-toggle input:checked + .cc-toggle-slider {
  background: #00A86B;
}

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

.cc-toggle.disabled .cc-toggle-slider {
  background: #ccf0df;
  cursor: not-allowed;
}

.cc-toggle.disabled .cc-toggle-slider::before {
  background: #e6f7ef;
}

.cc-save-row {
  display: flex;
  justify-content: flex-end;
}

.cc-btn-save {
  background: white;
  color: #5D4E37;
  border: 1px solid #FAEBD7;
  width: auto;
}

.cc-btn-save:hover {
  border-color: #00A86B;
  color: #00A86B;
}
