/* Google Consent Management Platform Styles */
.cmp-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  font-family: Arial, sans-serif;
}

.cmp-container.show {
  transform: translateY(0);
}

.cmp-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.cmp-message {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 15px;
}

.cmp-message a {
  color: #1a73e8;
  text-decoration: none;
}

.cmp-message a:hover {
  text-decoration: underline;
}

.cmp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.cmp-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.cmp-btn-manage {
  background: transparent;
  color: #1a73e8;
  border: 1px solid #dadce0;
}

.cmp-btn-manage:hover {
  background: #f8f9fa;
}

.cmp-btn-consent {
  background: #1a73e8;
  color: #fff;
}

.cmp-btn-consent:hover {
  background: #1765cc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.cmp-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.cmp-modal.show {
  display: flex;
}

.cmp-modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cmp-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cmp-modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.cmp-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-modal-close:hover {
  color: #333;
}

.cmp-modal-body {
  padding: 20px;
}

.cmp-option {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.cmp-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cmp-option-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.cmp-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

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

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

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

.cmp-toggle input:checked + .cmp-toggle-slider {
  background-color: #1a73e8;
}

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

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

.cmp-option-description {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.cmp-modal-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cmp-btn-save {
  background: #1a73e8;
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmp-btn-save:hover {
  background: #1765cc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cmp-content {
    padding: 15px;
  }

  .cmp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cmp-btn {
    width: 100%;
  }

  .cmp-modal-content {
    width: 95%;
    max-height: 90vh;
  }
}

/* Animation for entrance */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

