.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  width: min(calc(100vw - 2rem), 1120px);
  transform: translate3d(-50%, 120%, 0);
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  border: 1px solid var(--black, #000);
  background: rgba(255, 255, 255, 0.98);
  color: var(--black, #000);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.cookie-consent.is-visible {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem 1rem 1.2rem;
}

.cookie-consent__kicker {
  margin: 0 0 0.45rem;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cookie-consent__text {
  margin: 0;
  max-width: 72ch;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
}

.cookie-consent__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--black, #000);
  background: var(--white, #fff);
  color: var(--black, #000);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  outline: none;
  background: var(--black, #000);
  color: var(--white, #fff);
}

.cookie-consent__button--accept {
  background: var(--royal, #2b44d2);
  border-color: var(--royal, #2b44d2);
  color: var(--white, #fff);
}

.cookie-consent__button--accept:hover,
.cookie-consent__button--accept:focus-visible {
  background: #1f31a0;
  border-color: #1f31a0;
  color: var(--white, #fff);
}

@media (max-width: 768px) {
  .cookie-consent {
    bottom: 0.5rem;
    width: calc(100vw - 1rem);
  }

  .cookie-consent__inner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.95rem 0.95rem 1rem;
  }

  .cookie-consent__actions {
    justify-content: stretch;
  }

  .cookie-consent__button {
    width: 100%;
  }
}
