/**
 * Cookie Consent Banner and Modal Styles
 * Modern, clean design that matches the site aesthetic
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
}

.cookie-consent-text p {
  margin: 0 0 15px 0;
  color: #666;
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-consent-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cookie-consent-accept {
  background: #0066cc;
  color: white;
}

.cookie-consent-accept:hover {
  background: #0052a3;
}

.cookie-consent-reject {
  background: #f0f0f0;
  color: #333;
}

.cookie-consent-reject:hover {
  background: #e0e0e0;
}

.cookie-consent-settings-btn {
  background: none;
  border: none;
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  font-family: inherit;
}

.cookie-consent-settings-btn:hover {
  color: #0052a3;
}

/* Cookie Consent Modal */
.cookie-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
}

.cookie-consent-modal.show {
  display: flex;
}

.cookie-consent-modal-content {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.cookie-consent-modal-header h2 {
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
}

.cookie-consent-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cookie-consent-close:hover {
  color: #333;
}

.cookie-consent-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.cookie-consent-modal-body > p {
  margin: 0 0 20px 0;
  color: #666;
  line-height: 1.5;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-category {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 15px;
}

.cookie-category-header {
  margin-bottom: 10px;
}

.cookie-category-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.cookie-category-label input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cookie-category-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.cookie-category-name {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.cookie-category-description {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

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

.cookie-consent-save {
  background: #0066cc;
  color: white;
}

.cookie-consent-save:hover {
  background: #0052a3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-text {
    min-width: auto;
  }

  .cookie-consent-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-consent-btn {
    width: 100%;
  }

  .cookie-consent-modal-content {
    max-height: 100vh;
    height: 100vh;
    max-width: 100%;
    border-radius: 0;
  }

  .cookie-consent-modal-footer {
    flex-direction: column-reverse;
  }

  .cookie-consent-modal-footer .cookie-consent-btn {
    width: 100%;
  }
}

/* Accessibility */
.cookie-consent-btn:focus,
.cookie-consent-settings-btn:focus,
.cookie-consent-close:focus,
.cookie-category-label input[type="checkbox"]:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Animation for smooth appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-consent-modal.show {
  animation: fadeIn 0.2s ease-out;
}