.dialog-container input{
    appearance: auto!important;
}
  /* базовый контейнер — центрируем и используем стандартный dialog::backdrop */
  .dialog-container {
    width: 90vw;
    max-width: 600px;
    border: none;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: auto;
    max-height: 90vh;
    font-family: 'GothamPro', sans-serif;
  }

  /* затемнение через ::backdrop для нативного dialog */
  .dialog-container::backdrop {
    background-color: rgba(0,0,0,0.6);
  }

  /* fallback backdrop (если нет dialog.showModal) */
  

  /* z-index диалога выше overlay */
  .dialog-container[open] {
    z-index: 99999;
  }
  /* Для fallback (когда диалог показываем как обычный блок) */
  .dialog-container.fallback-visible {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 99999;
    display: block;
  }

  /* Кнопки */
 .dialog-button {
    cursor: pointer;
    border: 1px solid gray;
    font-family: 'GothamPro', sans-serif;
    color: black;
    font-size: 1.5rem;
    background-color: #ffffff;
    padding: 10px 10px;
    margin: 8px 6px 0 0;
    border-radius: 8px;
    transition: opacity 0.15s 
ease;
}
  .dialog-button:hover { opacity: 0.85; }

  /* Primary */
  .dialog-button-primary {
    background-color: #1364ad;
    font-weight: 700;
    padding: 10px 20px;
    color:white;
    border:none;
    font-size: 1.5rem;
    padding: 12px 26px;
  }

  .dialog-link { color: #140083 !important; text-decoration: underline; background: none; }

  .dialog-input { height: auto; }

  /* Упрощённое поведение: форма скрыта по умолчанию, открывается при нажатии "Настроить" */
  .dialog-form {  margin-top: 12px; }
  .dialog-container.expanded .dialog-form { display: block; }
  .dialog-container.expanded .main-actions { display: none; }

  /* для доступа: outline при фокусе */
  .dialog-input:focus-visible,
  .dialog-button:focus-visible,
  .dialog-link:focus-visible {
    outline: 2px dotted #140083;
    outline-offset: 2px;
  }

  /* мобильная адаптация */
  @media (max-width: 768px) {
    .dialog-container { width: 95vw; padding: 20px; }
    .dialog-button { display: block; width: 100%; margin: 8px 0; }
    .dialog-container.expanded .main-actions { display: block; } /* allow stacked buttons on mobile */
  }

  /* блокировка прокрутки при открытом баннере */
  .no-scroll { overflow: hidden !important; height: 100%; }
  /* стили для баннера внизу */
.dialog-container.banner-bottom {
  position: fixed !important;
  top: auto !important;       /* сброс встроенного центрирования */
  bottom: 20px !important;    /* отступ от низа */
  left: 50% !important;       /* центрируем по горизонтали */
  transform: translateX(-50%) !important;

  margin: 0 !important;
  width: 90vw;
  max-width: 600px;

  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}



/* ====== PRIORBANK-STYLE COOKIE BAR ====== */

/* Общий контейнер диалога */
.dialog-container.banner-bottom {
  
 /* inset: auto 0 0 0 !important;     
  transform: none !important;

  width: 100vw;
  max-width: 100%;
  margin: 0 !important;
  padding: 15px 80px;

  background: #eee;             
  color: #000;
  border-radius: 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.18);
  font-family: 'GothamPro', -apple-system, BlinkMacSystemFont,
               'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.4;*/
  position: fixed !important;
  z-index: 99999;
}

/* ограничиваем высоту, если текст разрастается */
.dialog-container.banner-bottom {
  max-height: 40vh;
  overflow-y: auto;
}

/* текстовые блоки */
.dialog-container.banner-bottom p {
  margin: 0 0 6px;
}

/* заголовок поменьше и пожирнее */
#cookie-dialog-title strong {
  font-size: 15px;
  font-weight: 700;
}

/* ссылки в тексте */
.dialog-container.banner-bottom .dialog-link {
  color: #000 !important;
  text-decoration: underline;
  font-weight: 500;
}

/* --- Раскладка: текст слева, кнопки справа --- */
.dialog-container.banner-bottom {
 /*  display: flex; */
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

/* оборачиваем текстовую часть (параграфы и форма) в блок */
.dialog-container.banner-bottom > p,
.dialog-container.banner-bottom > form {
  flex: 1 1 auto;
}

/* блок кнопок */
.dialog-container.banner-bottom .main-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* сами кнопки */
.dialog-button {
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  border: 1px solid #000;
  background: transparent;
  color: #000;
  text-transform: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease;
}

/* primary — чёрная капсула с жёлтым текстом */
.dialog-button-primary {
  background: #000;
  color: #eee;
  border-color: #000;
}

/* hover-состояния */
.dialog-button:hover {
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.dialog-button-primary:hover {
  background: #222;
  border-color: #222;
}

/* форма настроек при разворачивании */
.dialog-form {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

/* подписи к категориям покомпактнее */
.dialog-form .form-groups p {
  margin-bottom: 4px;
}

.dialog-form .form-groups p strong {
  display: block;
  margin-bottom: 2px;
}

/* блок согласий по политикам */
.dialog-consent-block {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.dialog-consent-block-title {
  font-weight: 600;
  margin-bottom: 4px;
}

/* радио/чекбоксы */
.dialog-input {
  margin-right: 6px;
}

/* фокус по доступности */
.dialog-input:focus-visible,
.dialog-button:focus-visible,
.dialog-link:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* --- Мобильная версия (до ~768px) --- */
@media (max-width: 768px) {
  .dialog-container.banner-bottom {
    flex-direction: column;
    padding: 12px 16px 16px;
    max-height: 60vh;
  }

  .dialog-container.banner-bottom .main-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
  }

  .dialog-button {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* затемнение фона при нативном <dialog> */
.dialog-container::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

/* fallback-backdrop (если браузер без dialog) */
.dialog-backdrop {
	display: none;  
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
}

/* Модальное окно с настройками cookie */
.cookie-settings-dialog {
  width: 90vw;
  max-width: 640px;
  padding: 24px 28px;
  border-radius: 12px;
  border: none;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-family: 'GothamPro', sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

/* центрирование модала (для <dialog>) */
.cookie-settings-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

/* на случай fallback-visible */
.cookie-settings-dialog.fallback-visible {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 100000;
  display: block;
}

/* внутренности модала */
.cookie-settings-inner p {
  margin: 0 0 8px;
}

#cookie-settings-title strong {
  font-size: 16px;
  font-weight: 700;
}

/* группы полей */
.cookie-settings-dialog .form-groups {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* блок согласий */
.cookie-settings-dialog .dialog-consent-block {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e3e3e3;
}

/* нижние кнопки модала */
.cookie-settings-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* кнопка Отмена — прозрачная, Основная — чёрная как в баннере */
.cookie-settings-actions .dialog-button {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
}

/* адаптив для мобильных */
@media (max-width: 768px) {
  .cookie-settings-dialog {
    width: 95vw;
    max-width: 95vw;
    padding: 18px 16px;
  }

  .cookie-settings-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cookie-settings-actions .dialog-button {
    width: 100%;
    text-align: center;
  }
}



.cookie-btn {
    display: none;
    cursor: pointer;
    position: fixed;
    left: 60px;
    bottom: 29px;
    z-index: 10
}

.cookie-btn__icon {
    background: url(/wp-content/themes/Divi/ic-cookie.svg) no-repeat 50%;
    border-radius: 50%;
    background-size: 40px;
    background-color: #fff;
    color: #005caa;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 38px;
    margin: auto
}
.dialog-inner{
	display:flex;
	flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}



