.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-text-primary);
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

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

.cookie-text {
  flex: 1;
}

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

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

.cookie-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cookie-btn.accept {
  background: var(--color-cobalt);
  color: white;
}

.cookie-btn.accept:hover {
  background: var(--color-cobalt-dark);
}

.cookie-btn.accept:focus {
  outline: 2px solid var(--color-cobalt);
  outline-offset: 2px;
}

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

.cookie-btn.reject:hover {
  background: var(--color-bg-section);
}

.cookie-btn.reject:focus {
  outline: 2px solid var(--color-border);
  outline-offset: 2px;
}

.cookie-btn.customize {
  background: transparent;
  color: var(--color-cobalt);
  border: 1px solid var(--color-cobalt);
}

.cookie-btn.customize:hover {
  background: rgba(0, 71, 171, 0.05);
}

.cookie-btn.customize:focus {
  outline: 2px solid var(--color-cobalt);
  outline-offset: 2px;
}

.cookie-link {
  color: var(--color-cobalt);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.cookie-link:hover {
  text-decoration: underline;
}

.cookie-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 20px;
}

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

.cookie-settings-modal {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.cookie-settings-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--color-text-secondary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: var(--color-bg-section);
}

.cookie-settings-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.cookie-category {
  margin-bottom: 24px;
}

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

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.cookie-category h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

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

.cookie-toggle {
  width: 48px;
  height: 24px;
  appearance: none;
  background: var(--color-border);
  border-radius: 24px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.cookie-toggle:checked {
  background: var(--color-cobalt);
}

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

.cookie-toggle::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
}

.cookie-toggle:checked::before {
  transform: translateX(24px);
}

.cookie-settings-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
}

.cookie-settings-footer .cookie-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .cookie-link {
    width: 100%;
    text-align: center;
  }

  .cookie-settings-modal {
    max-height: 95vh;
  }
}
