/**
 * Cookie-баннер для старого дизайна (Elementor / hello-elementor).
 * Палитра: teal #0abad3, текст #54595F, золото ссылок #C7A455, Jost/Montserrat.
 */

/* Element Pack Cookie Consent — полностью прячем */
.cc-window,
.cc-revoke,
.bdt-cookie-consent,
[aria-label="cookieconsent"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

html.stellar-cookie-banner-open {
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  transition: padding-bottom 0.35s ease;

  /* Правая плавающая панель (поиск / мессенджеры) — footer Elementor 137 */
  .elementor-element-de2e987,
  .elementor-element-621c810,
  /* YClients «Онлайн-запись» */
  .yButton {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  html.stellar-cookie-banner-open {
    padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 536px) {
  html.stellar-cookie-banner-open {
    padding-bottom: calc(280px + env(safe-area-inset-bottom, 0px));
  }
}

.stellar-cookie-banner--elementor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
}

.stellar-cookie-banner--elementor[hidden] {
  display: none !important;
}

.stellar-cookie-banner--elementor.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .stellar-cookie-banner--elementor {
    transition: none;
    transform: none;
  }

  html.stellar-cookie-banner-open {
    transition: none;
  }
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__panel {
  pointer-events: auto;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid rgba(10, 186, 179, 0.22);
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__title {
  margin: 0 0 6px;
  color: #2c2c2c;
  font-family: Jost, Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__text {
  margin: 0;
  color: #54595f;
  font-family: Montserrat, Jost, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__text a {
  color: #c7a455;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__text a:hover {
  color: #0abad3;
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__btn {
  min-width: 132px;
  height: 44px;
  padding: 0 26px;
  border: none;
  border-radius: 5px;
  background: #0abad3;
  color: #fff !important;
  font-family: Jost, Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 186, 179, 0.28);
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__btn:hover {
  background: #099e97;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 186, 179, 0.38);
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__btn:active {
  transform: translateY(0);
  background: #088f89;
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__btn--decline {
  background: transparent;
  color: #54595F !important;
  border: 1px solid rgba(84, 89, 95, 0.35);
  box-shadow: none;
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__btn--decline:hover {
  background: rgba(10, 186, 211, 0.08);
  color: #0abad3 !important;
  border-color: #0abad3;
  box-shadow: none;
  transform: none;
}

.stellar-cookie-banner--elementor .stellar-cookie-banner__btn--decline:active {
  background: rgba(10, 186, 211, 0.12);
  transform: none;
}

@media (max-width: 1023px) {
  .stellar-cookie-banner--elementor {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .stellar-cookie-banner--elementor .stellar-cookie-banner__panel {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  /* Столбик: «Отказаться» сверху (первая в DOM). */
  .stellar-cookie-banner--elementor .stellar-cookie-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .stellar-cookie-banner--elementor .stellar-cookie-banner__btn {
    width: 100%;
  }
}

/* Плейсхолдеры карт / виджетов Яндекса до согласия */
.stellar-cookie-embed {
  position: relative;
  width: 100%;
  min-height: 200px;
}

.stellar-cookie-embed__placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 200px;
  height: 100%;
  padding: 20px;
  background: linear-gradient(145deg, #f4fbfb 0%, #ffffff 55%, #eef8f8 100%);
  border: 1px solid rgba(10, 186, 179, 0.22);
  border-radius: 8px;
}

.stellar-cookie-embed__note {
  margin: 0;
  max-width: 36em;
  color: #54595f;
  font-family: Montserrat, Jost, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.stellar-cookie-embed__settings {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #0abad3;
  border-radius: 5px;
  color: #0abad3;
  font-family: Jost, Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.stellar-cookie-embed__settings:hover {
  background: #0abad3;
  color: #fff;
}

/* Компактный бейдж рейтинга в футере (150×50) — без огромной карточки */
.stellar-cookie-embed--badge {
  width: auto;
  max-width: 100%;
  min-height: 0;
}

.stellar-cookie-embed--badge .stellar-cookie-embed__placeholder {
  min-height: 0;
  width: 150px;
  max-width: 100%;
  padding: 8px 10px;
  gap: 6px;
  overflow: hidden;
}

.stellar-cookie-embed--badge .stellar-cookie-embed__note {
  font-size: 11px;
  line-height: 1.3;
  max-width: none;
}

.stellar-cookie-embed--badge .stellar-cookie-embed__settings {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  font-size: 11px;
  white-space: nowrap;
}

/* ПроДокторов до согласия */
.pd_widget_mini[data-stellar-prodoctorov][hidden],
.pd_widget_box[data-stellar-prodoctorov][hidden] {
  display: none !important;
}

/* Футер: лого + «создание и продвижение медицинских сайтов» (medrush) */
.elementor-element-7d02a5a {
  display: none !important;
}

.stellar-cookie-embed iframe,
.stellar-cookie-embed .mihdan-elementor-yandex-maps {
  display: none;
  width: 100%;
  border: 0;
}

.stellar-cookie-embed.is-loaded > .stellar-cookie-embed__placeholder {
  display: none;
}

.stellar-cookie-embed.is-loaded > iframe,
.stellar-cookie-embed.is-loaded > .mihdan-elementor-yandex-maps {
  display: block;
}

.stellar-cookie-embed--map {
  min-height: 320px;
}

.stellar-cookie-embed--map .stellar-cookie-embed__placeholder,
.stellar-cookie-embed--map .mihdan-elementor-yandex-maps {
  min-height: 320px;
}
