/* === SDT modal hard layer === */
#sdt-map-wrapper {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99990 !important;
  display: none;
}

#sdt-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99991 !important;
  background: rgba(0,0,0,.5) !important;
  opacity: 0;
}

#sdt-callback-form {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99992 !important;
  display: none;
  background: #fff !important; /* важно: иначе будет “просвечивать” */
}

/* контейнер карты */
#sdt-map {
  width: 100% !important;
  height: 100% !important;
  min-height: 520px !important;
  background: #fff !important;
}

/* чтобы не торчали элементы страницы через модалку */
html.kcdek-modal-open,
body.kcdek-modal-open {
  overflow: hidden !important;
}

/* === убрать верхний блок “Город / Поиск / Найти” (в CDEK нет) === */
/* если у тебя этот блок сделан как custom controllers */
#sdt-callback-form .kcdek-map__custom-controllers,
#sdt-callback-form .kcdek-map__custom-controllers-location,
#sdt-callback-form .kcdek-map__search-ya,
#sdt-callback-form .kcdek-geoposition-form,
#sdt-callback-form .kcdek-map-open-button,
#sdt-callback-form .kcdek-map__custom-controllers-wrapper {
  display: none !important;
}

/* если вдруг твой верхний блок имеет свои id */
#sdt-open-wrap,
#sdt-city,
#sdt-query,
#sdt-search-btn {
  display: none !important;
}

/* панель справа оставляем (если есть) */
#sdt-info-panel { display: block; }

/* === SDT: force right panel visible (override any right:-xxx / transform) === */
#sdt-map-wrapper { position: fixed !important; z-index: 99999 !important; }

#sdt-callback-form { position: fixed !important; z-index: 100000 !important; }
#sdt-map { position: relative !important; z-index: 1 !important; }

/* right panel */
#sdt-target-pvz{
  display: none;              /* default hidden */
  position: absolute !important;
  top: 60px !important;
  right: 0 !important;
  left: auto !important;

  width: 360px !important;    /* подгонишь как у cdek */
  height: 100% !important;

  transform: none !important;
  opacity: 1 !important;

  z-index: 100001 !important;
  background: #fff !important;
}

/* if moguta/cdek styles put it off-screen with "right" */
#sdt-target-pvz[style*="display: block"],
#sdt-target-pvz[style*="display:block"]{
  right: 0 !important;
  transform: none !important;
}


/* === SDT: right panel visibility control === */
/* по умолчанию панель и кнопка скрыты */
#sdt-target-pvz { display: none; }
#sdt-submit-btn { display: none; }

/* показываем только когда JS ставит класс is-active */
#sdt-target-pvz.is-active { display: block !important; }
#sdt-target-pvz.is-active #sdt-submit-btn { display: inline-flex !important; }

#sdt-target-address {line-height: 1;}