/* Cookie Banner Styles */
.cookie-consent-banner {
  position: fixed;
  z-index: 9999;
  width: 100%;
  max-width: 100%;
  padding: 1.5rem;
  background-color: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  color: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  font-family: system-ui, -apple-system, sans-serif;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  opacity: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-banner.active {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-consent-banner__text {
  flex: 1;
}

.cookie-consent-banner__title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.cookie-consent-banner__description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-consent-banner__button {
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cookie-consent-banner__button--accept {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: white;
}

.cookie-consent-banner__button--accept:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.cookie-consent-banner__button--reject {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cookie-consent-banner__button--reject:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.cookie-consent-banner__button--settings {
  background-color: transparent;
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.cookie-consent-banner__button--settings:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.cookie-consent-banner__link {
  color: #3b82f6;
  text-decoration: underline;
  margin-right: 1rem;
  font-size: 0.9rem;
}

.cookie-consent-banner__link:hover {
  color: #60a5fa;
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
}

.cookie-preferences-modal.active {
  display: flex;
}

.cookie-preferences-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.cookie-preferences-modal__container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #ffffff;
  color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.cookie-preferences-modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-preferences-modal__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.cookie-preferences-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
  cursor: pointer;
  color: #888888;
}

.cookie-preferences-modal__close:hover {
  color: #1a1a1a;
}

.cookie-preferences-modal__content {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.cookie-preferences-modal__description {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cookie-preferences-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-preferences-modal__category {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.cookie-preferences-modal__category-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafafa;
}

.cookie-preferences-modal__category-toggle {
  display: flex;
  align-items: center;
}

.cookie-preferences-modal__category-label {
  margin-left: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-preferences-modal__required-badge {
  margin-left: 0.5rem;
  font-size: 0.8em;
  font-weight: normal;
  color: #888888;
}

.cookie-preferences-modal__category-description {
  padding: 0 1rem 1rem;
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.cookie-preferences-modal__examples-title {
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.cookie-preferences-modal__examples-list {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.cookie-preferences-modal__example-item {
  margin-bottom: 0.5rem;
}

.cookie-preferences-modal__footer {
  padding: 1.5rem;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.cookie-preferences-modal__button {
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cookie-preferences-modal__button--save {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: white;
}

.cookie-preferences-modal__button--save:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.cookie-preferences-modal__button--cancel {
  background-color: #fafafa;
  color: #1a1a1a;
}

.cookie-preferences-modal__button--cancel:hover {
  background-color: #e8e8e8;
}

/* Responsive styles */
@media (max-width: 768px) {
  .cookie-consent-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-consent-banner__actions {
    width: 100%;
    margin-top: 1rem;
    justify-content: flex-end;
  }
  
  .cookie-preferences-modal__container {
    width: 95%;
    max-height: 95vh;
  }
  
  .cookie-preferences-modal__header,
  .cookie-preferences-modal__content,
  .cookie-preferences-modal__footer {
    padding: 1rem;
  }
  
  .cookie-preferences-modal__title {
    font-size: 1.2rem;
  }
  
  .cookie-preferences-modal__category-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-preferences-modal__footer {
    flex-direction: column-reverse;
  }
  
  .cookie-preferences-modal__button {
    width: 100%;
  }
}