/* Trionn-agtigt cookie-banner — smal bar, bund-centreret. */

.cookies {
  position: fixed;
  left: 50%;
  bottom: clamp(0.85rem, 2.2vh, 1.5rem);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: calc(100vw - 2rem);
  padding: 0.72rem 1rem 0.72rem 1.1rem;
  border: 1px solid rgba(204, 204, 204, 0.28);
  border-radius: var(--r-sm, 3.6px);
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--on-dark, #ccc);
  font-family: var(--sans, "Inter Tight", ui-sans-serif, system-ui, sans-serif);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.45s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.cookies.is-in {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

html.pl-lock .cookies {
  opacity: 0 !important;
  pointer-events: none !important;
}

.cookies__copy {
  margin: 0;
  white-space: nowrap;
}

.cookies__actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-shrink: 0;
}

.cookies__btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.cookies__btn:hover,
.cookies__btn:focus-visible {
  opacity: 1;
}

.cookies__btn--accept {
  opacity: 1;
}

@media (max-width: 640px) {
  .cookies {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    width: calc(100vw - 1.5rem);
    white-space: normal;
  }

  .cookies__copy {
    white-space: normal;
    text-align: center;
  }

  .cookies__actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookies {
    transition: none;
  }
}
