/* GDPR Cookie Banner Styles */

#gdpr-banner {
  position: fixed;
  bottom: -400px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 3px solid #2c5f2d;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: bottom 0.3s ease-in-out;
  max-height: 100vh;
  overflow-y: auto;
}

#gdpr-banner.visible {
  bottom: 0;
}

#gdpr-banner.show-customize {
  bottom: 0;
}

.gdpr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gdpr-content {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px 30px;
}

.gdpr-content h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.gdpr-message {
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4a4a4a;
}

.gdpr-message a {
  color: #2c5f2d;
  text-decoration: underline;
  font-weight: 500;
}

.gdpr-message a:hover {
  color: #1e4620;
}

/* Categories */
.gdpr-customize-section {
  background: #f8f8f8;
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0;
  border-left: 4px solid #2c5f2d;
}

.gdpr-customize-section h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.gdpr-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gdpr-categories li {
  margin: 12px 0;
}

.gdpr-categories label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 10px;
}

.gdpr-categories input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #2c5f2d;
  flex-shrink: 0;
}

.gdpr-categories input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.gdpr-cat-label {
  display: block;
  font-weight: 500;
  color: #1a1a1a;
  font-size: 14px;
}

.gdpr-cat-desc {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  line-height: 1.4;
}

/* Buttons */
.gdpr-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: center;
  justify-content: flex-start;
}

.gdpr-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gdpr-btn-primary {
  background-color: #2c5f2d;
  color: #ffffff;
}

.gdpr-btn-primary:hover {
  background-color: #1e4620;
  box-shadow: 0 2px 8px rgba(44, 95, 45, 0.3);
}

.gdpr-btn-primary:active {
  transform: scale(0.98);
}

.gdpr-btn-secondary {
  background-color: #e8e8e8;
  color: #1a1a1a;
  border: 1px solid #d0d0d0;
}

.gdpr-btn-secondary:hover {
  background-color: #d0d0d0;
}

.gdpr-btn-tertiary {
  background-color: #ffffff;
  color: #2c5f2d;
  border: 2px solid #2c5f2d;
}

.gdpr-btn-tertiary:hover {
  background-color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
  #gdpr-banner {
    position: fixed;
    bottom: -100%;
    height: 100%;
  }

  .gdpr-container {
    padding: 10px;
  }

  .gdpr-content {
    padding: 15px 20px;
  }

  .gdpr-content h2 {
    font-size: 18px;
  }

  .gdpr-message {
    font-size: 13px;
  }

  .gdpr-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .gdpr-btn {
    width: 100%;
    text-align: center;
  }
}

/* Accessibility */
#gdpr-banner:focus-within {
  outline: 2px solid #2c5f2d;
  outline-offset: 2px;
}

.gdpr-btn:focus-visible {
  outline: 2px solid #2c5f2d;
  outline-offset: 2px;
}

.gdpr-categories input:focus-visible {
  outline: 2px solid #2c5f2d;
  outline-offset: 2px;
}
