/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-slate-800) 100%);
  color: var(--color-white);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow-2xl);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

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

.cookie-banner-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.cookie-banner-text h4 {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--color-white);
}

.cookie-banner-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

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

.cookie-modal-content {
  background-color: var(--color-white);
  border-radius: var(--radius-2xl);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-neutral-200);
}

.cookie-modal-header h3 {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-neutral-500);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.cookie-modal-close:hover {
  background-color: var(--color-neutral-100);
  color: var(--color-neutral-700);
}

.cookie-modal-body {
  padding: var(--space-6);
}

.cookie-category {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  background-color: var(--color-neutral-50);
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.cookie-category-header h4 {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin: 0;
}

.cookie-status {
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.cookie-status.required {
  background-color: var(--color-neutral-300);
  color: var(--color-neutral-700);
}

.cookie-category p {
  font-size: 14px;
  color: var(--color-neutral-600);
  line-height: 1.5;
  margin: 0;
}

/* Cookie Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  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(--color-neutral-300);
  transition: 0.3s;
  border-radius: 24px;
}

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

.cookie-toggle input:checked + .cookie-slider {
  background-color: var(--color-accent);
}

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

.cookie-modal-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-neutral-200);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

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

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

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

  .cookie-modal-content {
    margin: var(--space-4);
    max-height: calc(100vh - 2 * var(--space-4));
  }

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

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

@media (max-width: 480px) {
  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}