.cookie-consent {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 0;
  width: min(calc(100% - 56px), var(--max, 1180px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  color: var(--ink, #181818);
  background:
    linear-gradient(rgba(24, 24, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 24, 0.035) 1px, transparent 1px),
    var(--surface, #ffffff);
  background-size: 28px 28px;
  border: 1px solid var(--ink, #181818);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-shadow: none;
  opacity: 0;
  transform: translate(-50%, 100%);
  transition: opacity 200ms ease, transform 200ms ease;
}

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

.cookie-consent.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-consent__copy {
  display: grid;
  grid-template-rows: 36px auto;
  gap: 4px;
  min-width: 0;
}

.cookie-consent h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  color: var(--red, #ee0012);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cookie-consent__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  fill: currentColor;
}

.cookie-consent p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--muted, #626262);
  font-size: 13px;
  line-height: 1.35;
}

.cookie-consent__message,
.cookie-consent__details-line {
  display: block;
}

.cookie-consent__details-line {
  margin-top: 2px;
}

.cookie-consent a {
  color: var(--cyan-dark, #087a99);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line, #d8dde2);
  border-radius: 6px;
  color: #ffffff;
  background: var(--cyan-dark, #087a99);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.cookie-consent__button:hover {
  color: #ffffff;
  background: var(--cyan, #2ca4c6);
  border-color: var(--cyan, #2ca4c6);
}

.cookie-consent__button:focus-visible {
  outline: 2px solid var(--cyan-dark, #087a99);
  outline-offset: 2px;
}

.cookie-consent .cookie-consent__details {
  color: var(--muted, #626262);
  background: transparent;
  border: 0;
  padding: 0 4px;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 180ms ease;
}

.cookie-consent .cookie-consent__details {
  display: inline;
  padding: 0;
}

.cookie-consent__details:hover,
.cookie-consent__details:focus-visible {
  color: var(--ink, #181818);
}

@media (max-width: 760px) {
  .cookie-consent {
    left: 0;
    bottom: 0;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 6px 6px 0 0;
    transform: translateY(100%);
  }

  .cookie-consent.is-visible {
    transform: translateY(0);
  }

  .cookie-consent h2 {
    font-size: 16px;
  }

  .cookie-consent__icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .cookie-consent p {
    font-size: 12px;
  }

  .cookie-consent__actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
    justify-self: stretch;
  }

  .cookie-consent__button {
    min-height: 44px;
    padding: 7px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .cookie-consent {
    gap: 10px;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  }

  .cookie-consent__copy {
    grid-template-rows: 32px auto;
    text-align: left;
  }

  .cookie-consent h2 {
    min-height: 32px;
    justify-content: flex-start;
  }

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

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