/**
 * ConceptRecall Analytics — cookie consent banner.
 */

.cr-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--cr-text, #211f1b);
  color: var(--cr-text-invert, #f7f4ed);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cr-consent__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cr-consent__link {
  color: var(--cr-accent, #2d7d6e);
  text-decoration: underline;
}

.cr-consent__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cr-consent__btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
}

.cr-consent__btn--accept {
  color: var(--cr-bg-card, #ffffff);
  background: var(--cr-accent, #2d7d6e);
}

.cr-consent__btn--accept:hover {
  background: var(--cr-accent, #2d7d6e);
}

.cr-consent__btn--decline {
  color: var(--cr-text-invert, #f7f4ed);
  background: transparent;
  border: 1px solid var(--cr-border-strong, #d4cdbe);
}

.cr-consent__btn--decline:hover {
  background: #2a2a2a;
}

@media (max-width: 640px) {
  .cr-consent {
    padding: 1rem;
  }
  .cr-consent__actions {
    width: 100%;
  }
  .cr-consent__btn {
    flex: 1;
  }
}
