/* Cookie consent popup */

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: transparent;
  pointer-events: auto;
}

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--bg-main);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px;
  pointer-events: auto;
}

.cookie-notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.cookie-notice__text {
  flex: 1 1 480px;
  min-width: 0;
}

.cookie-notice__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cookie-notice__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-notice__link {
  color: var(--purple);
  text-decoration: underline;
  margin-left: 4px;
}

.cookie-notice__link:hover {
  color: var(--purple-hover);
}

.cookie-notice__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 200px;
}

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

.cookie-notice__btn--ghost {
  background-color: rgba(124, 92, 255, 0.2);
  color: var(--text-primary);
}

.cookie-notice__btn--ghost:hover:not(:disabled):not(.is-disabled) {
  background-color: rgba(124, 92, 255, 0.32);
}

/* Block pointer interaction with everything except the popup */
body.has-cookie-notice .app,
body.has-cookie-notice .site-footer {
  pointer-events: none;
  user-select: none;
}

body.has-cookie-notice .cookie-notice,
body.has-cookie-notice .cookie-overlay {
  pointer-events: auto;
}

@media (max-width: 900px) {
  .cookie-notice {
    padding: 24px;
  }
  .cookie-notice__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .cookie-notice__title {
    font-size: 1.25rem;
  }
  .cookie-notice__actions {
    width: 100%;
    min-width: 0;
  }
}
