/* Выбор cookies: не модальное окно внизу экрана, покупкам не мешает. Кнопки равного веса. */
.progranat-consent {
  position: fixed;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  color: var(--pg-header-cream);
  font-family: var(--second-family, sans-serif);
  font-size: 15px;
  line-height: 1.45;
}

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

.progranat-consent__text {
  margin: 0 0 12px;
  color: var(--pg-header-cream);
}

.progranat-consent__text a {
  color: var(--pg-header-cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.progranat-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.progranat-consent__button {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: transparent;
  color: var(--pg-header-cream);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.progranat-consent__button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.progranat-consent__button:focus-visible,
.progranat-consent__text a:focus-visible,
.progranat-consent-open:focus-visible {
  outline: 2px solid var(--pg-header-cream);
  outline-offset: 2px;
}

/* Кнопка «Настройки cookies» в строке подвала и на странице cookies — выглядит как ссылка. */
.progranat-consent-open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* На телефоне — над панелью «Позвонить», и не закрывать низ страницы, пока окно открыто. */
@media (max-width: 991px) {
  body.has-contact-bar .progranat-consent {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* Узкий экран: компактнее, кнопки в один ряд — окно меньше закрывает страницу до выбора. */
@media (max-width: 575px) {
  .progranat-consent {
    left: 8px;
    right: 8px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  .progranat-consent__text {
    margin-bottom: 10px;
  }

  .progranat-consent__button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
    font-size: 14px;
  }
}
