.cookie-consent {
  --cookie-ink: #1a1a1a;
  --cookie-muted: #6a675f;
  --cookie-paper: #fffefa;
  --cookie-line: rgba(26, 26, 26, 0.12);
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 20px;
  color: var(--cookie-ink);
  background: var(--cookie-paper);
  border: 1px solid var(--cookie-line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(26, 26, 26, 0.16);
  font-family: Inter, Arial, sans-serif;
  box-sizing: border-box;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.cookie-consent__text {
  margin: 0;
  color: var(--cookie-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent__text a {
  color: var(--cookie-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent__button {
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--cookie-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--cookie-ink);
  font: 600 14px/1.2 Inter, Arial, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cookie-consent__button--primary {
  background: var(--cookie-ink);
  color: #fff;
}

.cookie-consent__button:hover {
  transform: translateY(-1px);
}

.cookie-consent__button--primary:hover {
  background: #33322f;
}

.cookie-consent__button:focus-visible {
  outline: 3px solid #c8a55a;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .cookie-consent {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: block;
    width: calc(100% - 24px);
    padding: 18px;
    border-radius: 18px;
  }

  .cookie-consent__title {
    font-size: 16px;
  }

  .cookie-consent__text {
    font-size: 13px;
  }

  .cookie-consent__actions {
    display: block;
    margin-top: 15px;
  }

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

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