.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: calc(var(--spacing-unit) * 3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

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

.cookie-banner-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 3);
}

.cookie-banner-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.cookie-banner-text a {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-text a:hover {
  color: white;
}

.cookie-banner-actions {
  display: flex;
  gap: calc(var(--spacing-unit) * 1.5);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  color: white;
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
}

.cookie-btn-settings:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-customize {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-customize:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background: white;
  border-radius: 12px;
  padding: calc(var(--spacing-unit) * 4);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

.cookie-modal h3 {
  color: var(--primary-color);
  margin-bottom: calc(var(--spacing-unit) * 3);
  font-size: 1.5rem;
}

.cookie-category {
  margin-bottom: calc(var(--spacing-unit) * 3);
  padding: calc(var(--spacing-unit) * 2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.cookie-category h4 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.1rem;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-toggle.active {
  background: var(--accent-color);
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.cookie-toggle.active::after {
  transform: translateX(26px);
}

.cookie-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.cookie-modal-actions {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  justify-content: flex-end;
  margin-top: calc(var(--spacing-unit) * 4);
  padding-top: calc(var(--spacing-unit) * 3);
  border-top: 1px solid var(--border-color);
}

.cookie-modal-btn {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-modal-btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  color: white;
}

.cookie-modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.cookie-modal-btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.cookie-modal-btn-secondary:hover {
  background: var(--bg-light);
}

/* Responsive design for cookie banner */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: calc(var(--spacing-unit) * 2);
  }

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

  .cookie-btn {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: calc(var(--spacing-unit) * 2);
  }

  .cookie-banner-text {
    font-size: 14px;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    min-width: 0;
  }

  .cookie-modal-content {
    padding: calc(var(--spacing-unit) * 3);
    width: 95%;
  }

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

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