.cookie-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  /* Иначе padding прибавляется к width и плашка шире экрана телефона */
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  max-width: 960px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  font-family: var(--font-sans, sans-serif);
  width: calc(100% - 32px);
  padding: 16px 24px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 0;
  border-top: 3px solid var(--brand);
}

.cookie-notice__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 260px;
}

.cookie-notice__link {
  color: var(--sm-blue-300, #89c2ff);
  text-decoration: underline;
}

.cookie-notice__button {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 0;
  border: none;
  background-color: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus {
  background-color: var(--accent);
}

@media (max-width: 480px) {
  /* Прижата к низу во всю ширину: так меньше закрывает первый экран */
  .cookie-notice {
    bottom: 0;
    width: 100%;
    gap: 12px;
    padding: 14px 16px;
  }

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

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

.cookie-notice[hidden],
html:not(.analytics-settings-ready) [data-analytics-settings] {
  display: none;
}

.cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-notice__button:focus-visible,
[data-analytics-settings]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

[data-analytics-settings] {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  align-self: flex-start;
  cursor: pointer;
}

.seo-footer [data-analytics-settings] {
  color: inherit;
  font: inherit;
  text-decoration: underline;
}
