

:root {
  --c-accent: #ec4899;
  --c-accent-dark: #be185d;
  --c-text-light: #f5f5f5;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --radius-md: 0.5rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 2px solid var(--c-accent);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner__content {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

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

.cookie-banner__message {
  color: var(--c-text-light);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.cookie-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-banner__button--accept {
  background: var(--c-accent);
  color: white;
}

.cookie-banner__button--accept:hover {
  background: var(--c-accent-dark);
  transform: translateY(-1px);
}

.cookie-banner__button--accept:active {
  transform: translateY(0);
}

.cookie-banner__button--reject {
  background: transparent;
  color: var(--c-text-light);
  border: 1px solid var(--c-text-light);
}

.cookie-banner__button--reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.cookie-banner__button--reject:active {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
  .cookie-banner__content {
    gap: var(--space-3);
  }

  .cookie-banner__message {
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 0;
  }

  .cookie-banner__content {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3);
    align-items: flex-start;
  }

  .cookie-banner__text {
    width: 100%;
  }

  .cookie-banner__message {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
    gap: var(--space-2);
  }

  .cookie-banner__button {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
  }
}

.cookie-customize-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 2px solid var(--c-accent);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-customize-panel__content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: var(--space-4);
}

.cookie-customize-panel__title {
  color: var(--c-text-light);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.cookie-customize-panel__description {
  color: var(--c-text-light);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

.cookie-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.cookie-category {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.cookie-category__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--c-text-light);
  font-weight: 600;
  margin-bottom: var(--space-2);
  cursor: pointer;
  user-select: none;
}

.cookie-category__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--c-accent);
}

.cookie-category__name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.cookie-category__description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cookie-category--essential .cookie-category__checkbox {
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-customize-panel__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

.cookie-customize-panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-customize-panel__button--save {
  background: var(--c-accent);
  color: white;
}

.cookie-customize-panel__button--save:hover {
  background: var(--c-accent-dark);
  transform: translateY(-1px);
}

.cookie-customize-panel__button--save:active {
  transform: translateY(0);
}

.cookie-customize-panel__button--reject {
  background: transparent;
  color: var(--c-text-light);
  border: 1px solid var(--c-text-light);
}

.cookie-customize-panel__button--reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.cookie-customize-panel__button--reject:active {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .cookie-customize-panel__content {
    padding: var(--space-3);
  }

  .cookie-categories {
    grid-template-columns: 1fr;
  }

  .cookie-customize-panel__actions {
    flex-direction: column;
  }

  .cookie-customize-panel__button {
    width: 100%;
  }
}

.cookie-banner.cookie-banner--hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }

  .cookie-banner__button--accept:hover,
  .cookie-customize-panel__button--save:hover {
    transform: none;
  }

  .cookie-banner__button--accept:active,
  .cookie-customize-panel__button--save:active {
    transform: none;
  }
}
