/* ✅ BF503 popup close — mobile only, correct size + correct Tilda icon form + per-block colors */
@media (max-width: 980px){

  /* 1) Позиция крестика (чуть ближе к краю, как у Тильды) */
  :is(
    #rec614463713,#rec614522602,#rec614522848,#rec614523512,#rec614523770,
    #rec614524290,#rec614524743,#rec614525036,#rec614525392,#rec614648961,
    #rec614649434,#rec614650219,#rec614652935,#rec614653755,#rec614654396,
    #rec614655260,#rec614655537,#rec614655873
  ) .t-popup__close.t-popup__block-close{
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 99999 !important;
  }

  /* 2) Возвращаем "тильдовский" размер/кликабельность (не раздуваем иконку) */
  :is(
    #rec614463713,#rec614522602,#rec614522848,#rec614523512,#rec614523770,
    #rec614524290,#rec614524743,#rec614525036,#rec614525392,#rec614648961,
    #rec614649434,#rec614650219,#rec614652935,#rec614653755,#rec614654396,
    #rec614655260,#rec614655537,#rec614655873
  ) .t-popup__close-wrapper.t-popup__block-close-button{
    padding: 8px !important;        /* было 10 у Тильды — 8 чуть компактнее */
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border-radius: 0 !important;
    color: #141414 !important;      /* базово тёмный */
  }

  /* 3) Фиксируем “родной” размер svg, чтобы крест не становился толще */
  :is(
    #rec614463713,#rec614522602,#rec614522848,#rec614523512,#rec614523770,
    #rec614524290,#rec614524743,#rec614525036,#rec614525392,#rec614648961,
    #rec614649434,#rec614650219,#rec614652935,#rec614653755,#rec614654396,
    #rec614655260,#rec614655537,#rec614655873
  ) .t-popup__close-wrapper.t-popup__block-close-button svg{
    width: 23px !important;
    height: 23px !important;
  }

  /* 4) Красим ТОЛЬКО rect внутри svg (сохраняет тильдовскую форму/толщину) */
  :is(
    #rec614463713,#rec614522602,#rec614522848,#rec614523512,#rec614523770,
    #rec614524290,#rec614524743,#rec614525036,#rec614525392,#rec614648961,
    #rec614649434,#rec614650219,#rec614652935,#rec614653755,#rec614654396,
    #rec614655260,#rec614655537,#rec614655873
  ) .t-popup__close-wrapper.t-popup__block-close-button svg rect{
    fill: currentColor !important;
  }

  /* 5) Блоки, где нужен СВЕТЛЫЙ крестик */
  :is(
    #rec614522602,#rec614523770,#rec614524743,
    #rec614649434,#rec614653755,#rec614655873
  ) .t-popup__close-wrapper.t-popup__block-close-button{
    color: #f0f0f0 !important;
  }

  /* 6) (на всякий) Убираем возможный "акцент" при тапе */
  :is(
    #rec614463713,#rec614522602,#rec614522848,#rec614523512,#rec614523770,
    #rec614524290,#rec614524743,#rec614525036,#rec614525392,#rec614648961,
    #rec614649434,#rec614650219,#rec614652935,#rec614653755,#rec614654396,
    #rec614655260,#rec614655537,#rec614655873
  ) .t-popup__close-wrapper.t-popup__block-close-button{
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
  }

}