/* Hydrogen Cookie Consent Styles */

/* Hydrogen Brand Colors - Yellow/Gold Theme */
:root {
  --hydrogen-primary: #ffd700; /* Gold */
  --hydrogen-primary-dark: #ffc107; /* Darker gold */
  --hydrogen-secondary: #fff8dc; /* Cream/Light yellow */
  --hydrogen-accent: #ff8f00; /* Orange accent */
  --hydrogen-white: #ffffff; /* Pure white */
  --hydrogen-dark: #1d1d21; /* Dark text */
  --hydrogen-text: #606060; /* Gray text */
}

/* Site Blocking Overlay */
.hydrogen-cookie-blocking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  z-index: 999998;
  display: none;
  pointer-events: none;
}

.hydrogen-cookie-blocking-overlay.active {
  display: block;
}

/* Subtle blur and interaction blocking when cookie banner is shown */
body.cookie-consent-required {
  /* Scrolling is permitted for better user experience */
  /* No additional styles needed - blur applied to child elements */
}

body.cookie-consent-required
  > *:not(.hydrogen-cookie-banner):not(.cookie-modal):not(
    .hydrogen-cookie-blocking-overlay
  ) {
  filter: blur(0.25px);
  pointer-events: none;
  user-select: none;
}

/* Ensure cookie banner and modal are always on top and interactive */
.hydrogen-cookie-banner,
.cookie-modal {
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

.hydrogen-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #ffffff;
  z-index: 999999;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-banner-text h3 {
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.cookie-banner-text p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e0e0e0;
}

.cookie-banner-text a {
  color: #ffd700;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: #ffc107;
}

.cookie-banner-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.accept-btn {
  background: #ffd700;
  color: #1d1d21;
  border: 2px solid #ffd700;
  font-weight: 600;
}

.accept-btn:hover {
  background: #ffc107;
  border-color: #ffc107;
}

.manage-btn {
  background: #ffffff;
  color: #ffd700;
  border: 2px solid #ffd700;
  font-weight: 600;
}

.manage-btn:hover {
  background: #ffd700;
  color: #1d1d21;
  border-color: #ffd700;
}

/* Modal Styles */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 1000001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
}

.cookie-modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
  background: #1a1a1a;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
}

.cookie-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #ffd700;
  text-shadow: none;
}

.cookie-modal-close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
}

.cookie-modal-close:hover {
  color: #cccccc;
}

.cookie-modal-body {
  padding: 30px;
}

.cookie-modal-body > p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 30px;
}

.cookie-categories {
  margin-bottom: 30px;
}

.cookie-category {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
}

.cookie-category-header {
  background: #f8f9fa;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.cookie-category-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.toggle-label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-label {
  background-color: #ffd700;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-label .toggle-slider {
  transform: translateX(26px);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-label {
  background-color: #ffd700;
  cursor: not-allowed;
}

.toggle-status {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.cookie-category-description {
  padding: 20px;
  background: white;
}

.cookie-category-description p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.cookie-modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.save-btn {
  background: #ffd700;
  color: #1d1d21;
  border: 2px solid #ffd700;
  font-weight: 600;
}

.save-btn:hover {
  background: #ffc107;
  border-color: #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hydrogen-cookie-banner {
    padding: 15px;
  }

  .cookie-banner-content {
    gap: 15px;
    text-align: center;
  }

  .cookie-banner-text h3 {
    font-size: 18px;
  }

  .cookie-banner-text p {
    font-size: 13px;
  }

  .cookie-banner-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cookie-btn {
    width: 100%;
    max-width: 300px;
  }

  .cookie-modal-content {
    margin: 2% auto;
    width: 95%;
    max-height: 90vh;
  }

  .cookie-modal-header {
    padding: 15px;
    text-align: center;
  }

  .cookie-modal-header h2 {
    font-size: 20px;
  }

  .cookie-modal-body {
    padding: 20px;
    text-align: center;
  }

  .cookie-category-header {
    padding: 15px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .cookie-modal-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cookie-modal-buttons .cookie-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .cookie-banner-text h3 {
    font-size: 16px;
  }

  .cookie-banner-text p {
    font-size: 12px;
  }

  .cookie-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .cookie-banner-content,
  .cookie-modal-body,
  .cookie-category-header {
    text-align: center;
  }
}
/* Accessibility Improvements */
.cookie-btn:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

.toggle-label:focus-within {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Animation for smooth transitions */
.hydrogen-cookie-banner {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hydrogen-cookie-banner {
    border: 2px solid #ffffff;
  }

  .cookie-btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hydrogen-cookie-banner {
    animation: none;
  }

  .cookie-btn,
  .toggle-label,
  .toggle-slider {
    transition: none;
  }

  .hydrogen-cookie-blocking-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.1);
  }

  body.cookie-consent-required
    > *:not(.hydrogen-cookie-banner):not(.cookie-modal):not(
      .hydrogen-cookie-blocking-overlay
    ) {
    filter: none;
  }
}

/* Additional blocking styles for better UX */
.hydrogen-cookie-blocking-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* Prevent scrolling when cookie consent is required */
/* Removed - allow scrolling for better UX */

/* Ensure proper stacking context */
.hydrogen-cookie-banner,
.cookie-modal {
  isolation: isolate;
}

/* Loading state for better UX */
.cookie-consent-loading .hydrogen-cookie-banner {
  opacity: 0.8;
  pointer-events: none;
}

.cookie-consent-loading .cookie-btn {
  opacity: 0.6;
  cursor: wait;
}
/* Detected cookies display */
.detected-cookies {
  margin-top: 10px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #ffd700;
}

.detected-cookies small {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.detected-cookies strong {
  color: #1d1d21;
  font-weight: 600;
}

/* Cookie category enhancements */
.cookie-category {
  margin-bottom: 20px;
}

.cookie-category-description {
  padding: 15px 20px;
}

/* Functional cookies category */
.cookie-category:nth-child(4) .detected-cookies {
  border-left-color: #2196f3;
}

/* Marketing cookies category */
.cookie-category:nth-child(3) .detected-cookies {
  border-left-color: #f44336;
}

/* Analytics cookies category */
.cookie-category:nth-child(2) .detected-cookies {
  border-left-color: #ff8f00;
}
