/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white, #FFFFFF);
  border-top: 1px solid var(--neutral-200, #E4E4E7);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.cookie-banner-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-900, #18181B);
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.cookie-banner-text p {
  font-size: 14px;
  color: var(--neutral-600, #52525B);
  line-height: 1.5;
  max-width: 600px;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

.cookie-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.cookie-btn-secondary {
  background: var(--neutral-100, #F4F4F5);
  color: var(--neutral-700, #3F3F46);
  border: 1px solid var(--neutral-300, #D4D4D8);
}

.cookie-btn-secondary:hover {
  background: var(--neutral-200, #E4E4E7);
  border-color: var(--neutral-400, #A1A1AA);
}

.cookie-btn-outline {
  background: transparent;
  color: var(--accent-600, #7C3AED);
  border: 1px solid var(--accent-600, #7C3AED);
}

.cookie-btn-outline:hover {
  background: var(--accent-50, #F5F3FF);
}

.cookie-btn-text {
  background: transparent;
  color: var(--accent-600, #7C3AED);
  text-decoration: underline;
  padding: 10px 12px;
  border: none;
}

.cookie-btn-text:hover {
  color: var(--accent-700, #6D28D9);
  text-decoration: none;
}

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

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

.cookie-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
  border-bottom: 1px solid var(--neutral-200, #E4E4E7);
  margin-bottom: 24px;
}

.cookie-modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--neutral-900, #18181B);
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--neutral-500, #71717A);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.cookie-modal-close:hover {
  color: var(--neutral-700, #3F3F46);
}

.cookie-modal-body {
  padding: 0 24px;
}

.cookie-category {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--neutral-200, #E4E4E7);
  border-radius: 12px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cookie-category h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--neutral-900, #18181B);
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.cookie-category p {
  font-size: 14px;
  color: var(--neutral-600, #52525B);
  line-height: 1.5;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.cookie-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cookie-status.required {
  background: var(--neutral-100, #F4F4F5);
  color: var(--neutral-600, #52525B);
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--neutral-300, #D4D4D8);
  transition: 0.3s;
  border-radius: 24px;
}

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

input:checked + .cookie-slider {
  background-color: var(--accent-600, #7C3AED);
}

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

.cookie-modal-footer {
  padding: 24px;
  border-top: 1px solid var(--neutral-200, #E4E4E7);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 1024px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }

  .cookie-banner-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .cookie-banner-actions {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal-content {
    margin: 10px;
    max-height: 90vh;
  }

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

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

@media (max-width: 480px) {
  .cookie-banner-content {
    padding: 16px;
  }

  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}