/* Cookie Consent Overlay */
.cc-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
}

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

/* Cookie Consent Modal */
.cc-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(45, 54, 69, 0.3);
  z-index: 100000;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.cc-modal.cc-active {
  display: block;
}

.cc-modal-content {
  padding: 32px;
  position: relative;
}

.cc-modal h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  color: #2D3645;
}

.cc-modal p {
  margin: 0 0 16px;
  color: #5D6778;
  line-height: 1.6;
}

.cc-modal-footer {
  margin-bottom: 24px;
}

.cc-link {
  color: #69AF62;
  text-decoration: none;
  font-weight: 500;
}

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

.cc-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.cc-btn-primary {
  background: #69AF62;
  color: #fff;
}

.cc-btn-primary:hover {
  background: #57a050;
}

.cc-btn-secondary {
  background: #fff;
  color: #2D3645;
  border: 1px solid #D8DEE6;
}

.cc-btn-secondary:hover {
  background: #eef1f5;
  border-color: #b5bfcc;
}

.cc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  color: #5D6778;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.cc-close:hover {
  color: #2D3645;
}

/* Preferences Modal */
.cc-preferences-modal {
  max-width: 700px;
}

.cc-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #D8DEE6;
}

.cc-section:last-of-type {
  border-bottom: none;
}

.cc-section h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #2D3645;
}

.cc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Toggle Switch */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

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

.cc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

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

.cc-toggle input:checked + .cc-toggle-slider {
  background-color: #69AF62;
}

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

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

/* Cookie Table */
.cc-cookie-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 14px;
}

.cc-cookie-table th,
.cc-cookie-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #D8DEE6;
}

.cc-cookie-table th {
  background: #F7FAF7;
  font-weight: 600;
  color: #2D3645;
}

.cc-cookie-table td {
  color: #5D6778;
}

@media (max-width: 600px) {
  .cc-modal-content {
    padding: 24px;
  }

  .cc-modal-actions {
    flex-direction: column;
  }

  .cc-btn {
    width: 100%;
  }

  .cc-cookie-table {
    font-size: 12px;
  }

  .cc-cookie-table th,
  .cc-cookie-table td {
    padding: 6px;
  }
}
