/* Bramka zgody na ciasteczka analityczne (Google Consent Mode v2). */

.consent {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  border-top: 1px solid var(--color-line);
  background: var(--color-night);
  padding: 1.25rem 1.5rem;
  color: var(--color-ink-soft);
}

.consent[hidden] {
  display: none;
}

.consent__text {
  flex: 1 1 20rem;
  max-width: 46rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.consent__text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  min-width: 8.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-accent);
  padding-inline: 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease-out,
    filter 0.2s ease-out,
    background-color 0.2s ease-out;
}

.consent__btn:active {
  transform: scale(0.98);
}

.consent__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.consent__btn--accept {
  border-color: transparent;
  background-image: linear-gradient(115deg, var(--color-accent), var(--color-accent-2));
  color: var(--color-night);
}

.consent__btn--accept:hover {
  filter: brightness(1.1);
}

.consent__btn--decline {
  background: transparent;
  color: var(--color-ink);
}

.consent__btn--decline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 640px) {
  .consent {
    flex-direction: column;
    align-items: stretch;
  }

  .consent__actions {
    flex-direction: column;
  }

  .consent__btn {
    width: 100%;
  }
}
