.t-input-phonemask__options-flag,
.t-input-phonemask__select-flag {
  display: none !important;
}

/* ------------------------------------------------------------------------------------------------ Mobile submenu tweaks ---------------------------------- */
/* ------------------- Выделение пунктов на мобильных - запрет, кроме активного -----------*/

@media screen and (max-width: 980px) {

  /* 1) Запрет выделения и системных подсказок iOS внутри меню */
  #nav1688708021,
  #nav1688708021 * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important; /* убрать callout (копировать/вставить) */
  }

  /* 2) Убрать iOS highlight (серый/прямоугольный) при тапе */
  #nav1688708021 a,
  #nav1688708021 button,
  #nav1688708021 .t-menu__link-item,
  #nav1688708021 .t978__menu-link,
  #nav1688708021 .t978__innermenu-link {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    tap-highlight-color: rgba(0,0,0,0) !important; /* не везде поддерживается, но не мешает */
    outline: none !important;
    -webkit-focus-ring-color: rgba(0,0,0,0) !important;
    box-shadow: none !important;
    touch-action: manipulation; /* меньше “паразитных” эффектов на тач-устройствах */
  }

  /* 3) На тач-устройствах иногда “залипает” :hover — нейтрализуем для НЕактивных ссылок */
  @media (hover: none) {
    #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):hover,
    #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):active,
    #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):focus {
      background-color: transparent !important;
      box-shadow: none !important;
      outline: none !important;
    }
  }

}


@media screen and (max-width: 980px) and (hover: none) and (pointer: coarse) {

  /* Общие запреты уже можно оставить, но добавим точечный фикс подсветки */
  #nav1688708021 a,
  #nav1688708021 a * {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    outline: none !important;
  }

  /* 1) ВАЖНО: запрет “подсветки” (цвет/фон) для НЕактивных пунктов при касании/скролле */
  #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):hover,
  #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):active,
  #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):focus,
  #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  /* 2) То же самое, но именно для внутреннего SPAN (у тебя подсветка “живёт” там) */
  #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):hover .t978__link-inner,
  #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):active .t978__link-inner,
  #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):focus .t978__link-inner,
  #nav1688708021 a:not(.t-active):not(.t978__tm-link_active):not(.t978__menu-activelink):focus-visible .t978__link-inner {
    color: #252525 !important;
    background: transparent !important;
  }

  /* 3) На случай, если подсветка рисуется на LI/обёртке */
  #nav1688708021 .t-menu-base__list-item:hover,
  #nav1688708021 .t-menu-base__list-item:active,
  #nav1688708021 .t978__menu-item:hover,
  #nav1688708021 .t978__menu-item:active,
  #nav1688708021 .t978__innermenu-item:hover,
  #nav1688708021 .t978__innermenu-item:active,
  #nav1688708021 .t978__menu-link-wrapper:hover,
  #nav1688708021 .t978__menu-link-wrapper:active {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* 4) Активные пункты НЕ трогаем — они останутся розовыми по твоим текущим стилям */
}


/* ------- Transparent mobile sub-menu background-color ------ */

@media screen and (max-width: 960px) {
  .t978__content {
    background-color: transparent !important;
  }

  #rec1688708021 #nav1688708021 .t978__innermenu-content {
    background-color: transparent !important;
  }
}

@media screen and (max-width: 980px) {
  /* When menu is open, stretch it to bottom of viewport */
  #nav1688708021.tmenu-mobile__menucontent_fixed.is-menu-open {
    bottom: 0 !important;       /* key */
    height: auto !important;    /* let top+bottom define height */
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .t1002__wishlistwin-content {
    padding-bottom: 0px !important;
  }
}

/* --------------------------- Active sub-menu links opacity ---------------------------*/
.t978__innermenu-link.t-active {
  opacity: 1 !important;
}


/* ---------------------------------------------------------------------------------------------------- FAVORITES -----------------------------------------------------*/
/* ------------------------- Favorites height to 100% on mobile breakpoints ----------------- */

@media screen and (max-width: 980px) {

  /* Overlay layer */
  .t1002__wishlistwin,
  .t1002__wishlistwin.t1002__wishlistwin_showed {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    height: 100vh !important;   /* fallback */
    height: 100dvh !important;  /* modern mobile viewport */
  }

  /* Container inside overlay */
  .t1002__wishlistwin-container {
    height: 100vh !important;
    height: 100dvh !important;
  }

  /* The popup panel itself */
  .t1002__wishlistwin-content {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;

    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;

    border-radius: 0 !important;
    box-shadow: none !important;

    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 16px !important;
  }

  /* Optional: keep close button nicely placed */
  .t1002__wishlistwin-close-wrapper {
    top: 12px !important;
    right: 12px !important;
  }
}

@media screen and (max-width: 960px) {

  .t1002__wishlistwin-top {
    padding-left: 20px !important;
    padding-bottom: 20px !important;
    padding-top: 10px !important;
  }

  .t-name_xl {
    font-size: 16px !important;
  }
}


/* ------- Цвет и жирность текста с ценой в Избранном ------ */

.t1002 .t1002__product-amount{
  color: #DF6EB2 !important;
  font-weight: 800 !important;
}


/* ------- Размер шрифта тайтла "Избранное" на декстопе ----- */

.t1002__wishlistwin-heading {
    font-size: 20px !important;
}

/* ------- Размер шрифта тайтла "Избранное" на мобильных ----- */

@media screen and (max-width: 960px) {
  .t1002__wishlistwin-heading {
    font-size: 16px !important;
}

/* ------ Более узкие мини-карточки товаров в "Избранном" ----- */

  .t1002__product {
      padding:0 !important;
      margin:0 !important;
      margin-bottom:20px !important;
  }


}

/* ------ Размер тайтлов товаров в "Избранном" на телефонах ----- */

@media screen and (max-width: 640px) {
  .t-descr_sm {
    font-size: 14px !important;
  }

}


/*--------------------------------------------------------------------------------------------------------- КАРТОЧКИ ТОВАРОВ в списке ------------------------------------ */
/* ------------------------- Размер тайтла опции товара -------------- */

.t-store .t-product__option-title {
  padding-bottom: 3px;
  font-size: 14px !important;
}

/* бордера у опции */
.js-product .t-product__option-variants_buttons .t-product__option-item_simple {
  border-radius: 4px !important;
}

.js-product .t-product__option-variants_buttons .t-product__option-item_simple.t-product__option-item_active {
  border: 1px solid #252525 !important;
  background-color: #fff !important;
}

.js-product .t-product__option-variants_buttons .t-product__option-item_simple {
  background-color: #EAEAEA !important;
  border: 1px solid #C4C4C4 !important;
}

/* --------------- */

.store__card__wrap_txt-and-opts.store__card__has-btns {
  margin-bottom: 4px !important;
}

/* Заголовок опции в карточке товара: "Размер букета" */
.t-store .js-product-option-name.t-product__option-title {
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* ------ Отступ тайтала товара от картинкии сверху ----  */
.t-store__card__textwrapper {
  margin-bottom: auto;
  padding-top: 16px !important;
}

/* ------ Цена ближе к тайтлу ----  */
.t-store__card__price-wrapper {
  margin-top: 4px !important;
}

/* ------ Опция ближе к цене ----  */
.t-store__card__prod-controls-wrapper:has(*) {
  padding-top: 0px !important;
}

/* ------ Дропдаун ближе к опции ----- */
.t-store .t-product__option {
  margin-top: 8px !important;
}

/* FIX: была пропущена точка перед t951 */
.t951 .t-product__option {
  margin-top: 10px;
  margin-bottom: 10px !important;
}

/* Размер шрифта внутри инпута "Размер букета" */
@media screen and (max-width: 640px) {
  .t-store .t-product__option-select {
    font-size: 12px !important;
  }
}

@media screen and (max-width: 960px) {
  .t-store__grid-cont .t-store__card-list {
    row-gap: 24px !important;
  }
}

/* 3 строки + … (без JS). Может иногда резать последнее слово — это ограничение line-clamp */
.t-store .t-store__card__title{
  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;

  /* уменьшаем шанс “некрасивых” переносов */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}


/* --------- Стилизация пагинации в списке товаров ( блок "Хиты продаж" и т.п. )  */
.t-store .t-store__pagination__item_active {
  border: none !important;
  background-color: #DEDEDE;
}

.t-store .t-store__pagination__item {
  font-weight: 700 !important;
  font-size: 14px !important;
}

.t-store__pagination__arrow,
.t-store__pagination__arrow * {
  fill: #252525 !important;
  stroke: #252525 !important;
}

@media screen and (max-width: 960px) {
  .t951__grid-cont .t-store__card-list {
    row-gap: 16px !important;
  }
}

/* ------------------------------------------------------------------------------------------------------------------------ КОРЗИНА ------------------------------------------ */

/* ----------- Размер шрифта в заголовка инпутов ------- */

.t706__cartpage-form .t-form .t-descr_md {
  font-size: 15px !important;
}

/* ----------- Размер тайтла товара в корзине ---------- */
.t706__product-title {
  font-size: 14px !important;
  line-height: 1.35 !important;
}


/* Шрифт цены при открытии корзины - более жироный в списке товаров корзины */
/* .t706 .t706__product-amount{ */
/* font-weight: 800 !important;*/ 
/*}*/

/* Шрифт и цвет цены в корзине в ИТОГО на первом этапе ---- */

.t706 .t706__sidebar-totalamount{
  color: #DF6EB2 !important;
  font-weight: 800 !important;
}

/* Шрифт и цвет цены в корзине в ИТОГО на втором этапе ---- */

.t706 .t706__cartwin-totalamount{
  color: #DF6EB2 !important;
  font-weight: 800 !important;
}

/* ------- Размер шрифта тайтла "Ваш заказ" на декстопе ----- */

.t706__sidebar-heading {
    font-size: 20px !important;
}


/* ------- Размер контейнера Корзины на всю ширину на мобильных ----- */

@media screen and (max-width: 960px) {
  .t-container {
    max-width: 100% !important;
  }
}

@media screen and (min-width: 640px) and (max-width: 960px) {
  .t-col {
    padding-left: 36px !important;
    padding-right: 36px !important;
    padding-top: 20px !important;
  }
  
  .t706__product {
      margin-bottom:20px !important;
  }
  
}

@media screen and (min-width: 961px) {
   .t706__product {
      margin-bottom:8px !important;
  } 
  
}  


/* ----------------------------------------------------------------------------------------------------------------- СТИЛИЗАЦИЯ ФИЛЬТРА --------------------------------------- */

:root { --buton-price-accent: #DF6EB2; }

/* 1) “заливка” диапазона */
.t-store__filter__item-price-slider .t-store__filter__range_bg {
  background: var(--buton-price-accent) !important;
  background-image: none !important;
}

/* 2) На всякий случай: нативный range */
.t-store__filter__item-price-slider input.t-store__filter__range {
  accent-color: var(--buton-price-accent);
}

/* -------- Цвет фильтра цены на вложенных категориях --------- */
@media screen and (min-width: 961px) {
  .t-store__filter__item.t-store__filter__item_price
  > .t-store__filter__item-title.js-store-filter-item-title {
    color: #DF6EB2 !important;
    font-weight: 800 !important;
  }
}

/* -------- Цвет фильтра цены на общей странице каталога --------- */
@media screen and (min-width: 961px) {
  .t951__sidebar-wrapper
  .t-store__filter__item_price
  > .t-store__filter__item-title.js-store-filter-item-title {
    color: #252525 !important;
  }
}

/* Скругление углов у фон фильтра */
.t951__cont-wrapper .t951__sidebar {
  border-radius: 8px !important;
}

/* Заголовки фильтров */
.t-store__filter__item-title,
.t-store__filter__item-title.js-store-filter-item-title {
  color: #252525 !important;
  font-size: 16px !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-weight: 500 !important;
}

/* Тире между инпутами */
.t-store__filter__delimeter {
  color: #C4C4C4;
}

/* Инпуты "от-до" */
.t-store__filter .t-store__filter__item-price-box input,
.t-store__filter .t-store__filter__item-price-box input[type="text"],
.t-store__filter .t-store__filter__item-price-box input[type="number"] {
  background: #F2F2F2 !important;
  border: 1px solid #C4C4C4 !important;
  border-radius: 4px !important;
  height: 32px !important;

  color: #252525 !important;
  font-size: 14px !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-weight: 500 !important;

  box-sizing: border-box !important;
  padding: 0 10px !important;
  line-height: 32px !important;
}

/* Чекбоксы */
.t-store .t-checkbox__indicator:after {
  border-color: #DF6EB2 !important;
}

.t-store .t-checkbox__indicator {
  background: #FFFFFF !important;
  border: 1px solid #C4C4C4 !important;
  border-radius: 4px !important;
  height: 20px !important;
}

/* Текст рядом с чекбоксами */
.t-store__filter-tree-label {
  color: #252525 !important;
  font-size: 16px !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-weight: 500 !important;
}

/* Сортировка */
.t-store__sort-select {
  background: #F2F2F2 !important;
  height: 32px !important;
  border: 1px solid #C4C4C4 !important;
  border-radius: 4px !important;
}

/* Шрифт в кружке SALES */
.t-store__card__mark {
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* Мобилка - выравнивание блока переключателя категорий слева */
@media screen and (max-width: 960px) {
  .t951 .t-store__parts-switch-wrapper {
    text-align: left !important;
  }
}

/* Кнопка OK в цене на мобильных */
@media screen and (max-width: 960px) {
  .t-store__filter__btn.js-store-filter-price-btn {
    margin-left: 0 !important;
    border-radius: 8px !important;
  }
}

/* Цена (от/до) — всегда в одну строку на мобильных/планшете */
@media (max-width: 960px) {

  .t-store__filter__item.t-store__filter__item_price.active
  .t-store__filter__item-controls-wrap.t-store__filter__item-price-box {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .t-store__filter__item.t-store__filter__item_price.active
  .t-store__filter__item-controls-wrap.t-store__filter__item-price-box
  .t-store__filter__input {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    height: 40px !important;
  }

  .t-store__filter__item.t-store__filter__item_price.active
  .t-store__filter__item-controls-wrap.t-store__filter__item-price-box
  .t-store__filter__delimeter {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 2px !important;
    white-space: nowrap !important;
  }

  .t-store__filter__item.t-store__filter__item_price.active
  .t-store__filter__item-controls-wrap.t-store__filter__item-price-box
  .t-store__filter__btn {
    flex: 0 0 auto !important;
    min-width: 56px !important;

    height: 40px !important;
    padding: 0 14px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid #7B7B7B !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
}

/* Размер шрифта в сортировке на мобильных/планшете */
@media screen and (max-width: 640px) {
  .t-store__filter__title {
    font-size: 14px !important;
  }
}

/* ------------------------------------------------------------------------------------------------------------------  Стилизация карточки товара ------------ */
/* ------------- Изображение 7 колонок, описание 5 колонок ------------ */

@media screen and (min-width: 1196px) {

  .js-store-product .t-store__prod-popup__slider.t-store__prod-popup__col-left.t-col.t-col_6 {
    max-width: 660px !important;
  }

  .js-store-product .t-store__prod-popup__info.t-store__prod-popup__col-right.t-col.t-col_6 {
    max-width: 460px !important;
  }

  .t-store__prod-snippet__container {
    padding-bottom: 120px !important;
    padding-top: 64px !important;
  }

  .t-store__prod-popup__btn-wrapper {
    margin-bottom: 0px !important;
  }
}

@media screen and (max-width: 560px) {

  .js-store-product .t-store__prod-popup__slider.t-store__prod-popup__col-left {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
  }

  .js-store-product .t-store__prod-popup__slider.t-store__prod-popup__col-left .t-slds__thumbsbullet-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  .t-store__prod-snippet__container {
    padding-bottom: 120px !important;
    padding-top: 0px !important;
  }
}

@media screen and (max-width: 960px) {
  .t-store__prod-snippet__container {
    padding-bottom: 120px !important;
    padding-top: 12px !important;
  }
}

/* Скругления в изображениях */
.t-store__prod-popup__slider .t-slds__imgwrapper {
  border-radius: 8px !important;
  overflow: hidden !important;
}

.t-store__prod-popup__slider .t-slds__imgwrapper .t-slds__bgimg.js-product-img {
  border-radius: 8px !important;
}

.t-store__prod-popup__slider .t-slds__thumbsbullet {
  border-radius: 4px !important;
  overflow: hidden !important;
}

.t-store__prod-popup__slider .t-slds__thumbsbullet .t-slds__bgimg {
  border-radius: 4px !important;
}

.t-store__prod-popup__slider .t-slds__thumbsbullet-border {
  border-radius: 4px !important;
}

/* Тайтл товара */
@media screen and (min-width: 980px) {
  .t-store .t-store__prod-popup__name {
    font-size: 44px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    color: #252525 !important;
    font-family: "Manrope", sans-serif !important;
    letter-spacing: -2px !important;
  }
}

@media screen and (max-width: 970px) {
  .t-store .t-store__prod-popup__name {
    font-size: 36px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    color: #252525 !important;
    font-family: "Manrope", sans-serif !important;
    letter-spacing: -2px !important;
    margin: 0;
  }
}

@media screen and (max-width: 560px) {
  .t-store__product-snippet .t-store__prod-popup__col-left,
  .t-store__product-snippet .t-store__prod-popup__col-right {
    padding-top: 0px !important;
    margin-top: 0px !important;
  }
}

/* Цена в карточке товара */
.js-store-product .t-store__prod-popup__price,
.js-store-product .t-store__prod-popup__price .t-store__prod-popup__price-value,
.js-store-product .t-store__prod-popup__price .t-store__prod-popup__price-currency {
  color: #df6eb2 !important;
  font-size: 32px !important;
  font-family: "Manrope", sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

/* Дропдаун (высота) */
.js-product .t-product__option-select {
  height: 32px !important;
}

/* Кнопка "Купить" */
.js-store-product a.t-store__prod-popup__btn.t-btn {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #252525 !important;
  height: 44px !important;

  border: 1px solid #c6c6c6 !important;
  border-radius: 8px !important;
  box-shadow: none !important;

  text-decoration: none !important;
  font-family: "Manrope", sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;

  transition: background-color 0.2s ease-in-out,
              border-color 0.2s ease-in-out,
              color 0.2s ease-in-out !important;
}

.js-store-product a.t-store__prod-popup__btn .t-btnflex__text,
.js-store-product a.t-store__prod-popup__btn .js-store-prod-popup-buy-btn-txt {
  color: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

@media (hover: hover) {
  .js-store-product a.t-store__prod-popup__btn:hover {
    background-color: #f2f2f2 !important;
  }
}

@media screen and (min-width: 960px) and (max-width: 1200px) {
  .js-store-product a.t-store__prod-popup__btn {
    font-size: 18px !important;
    padding: 14px 48px !important;
  }
}

@media screen and (min-width: 480px) and (max-width: 959px) {
  .js-store-product a.t-store__prod-popup__btn {
    font-size: 18px !important;
    padding: 14px 48px !important;
  }
}

@media screen and (max-width: 479px) {
  .js-store-product a.t-store__prod-popup__btn {
    font-size: 16px !important;
    padding: 12px 12px !important;
  }
}

/* Кол-во товара */
.t-store__prod__quantity {
  background-color: #f8f8f8 !important;
  height: 44px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
}

/* Смотрите также - на мобильных избранное кликабельно */
@media screen and (max-width: 540px) {
  .t-slds__arrow_wrapper {
    pointer-events: none !important;
  }
  .t-slds__arrow_wrapper .t-slds__arrow {
    pointer-events: auto !important;
  }
}

/* Отключаем свайп/drag только у hero-слайдера */
@media (hover: none) and (pointer: coarse), (max-width: 960px) {
  .buton-hero-noswipe { pointer-events: none !important; }
}

/* TAP-область у "Закрыть" в поиске */
@media screen and (max-width: 960px) {

  .t985__inputcontainer.t-container {
    position: relative !important;
    overflow: visible !important;
  }

  .t985__close-icon.t-search-widget__close-icon {
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
stroke-width: 2 !important; 

    margin: 0 !important;
    cursor: pointer !important;
    border-radius: 999px !important;
    z-index: 9999 !important;
margin-right: 10px !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .t985__close-icon.t-search-widget__close-icon svg {
    width: 28px !important;
    height: 28px !important;
    pointer-events: none;
    display: block;
  }

  .t985__close-icon.t-search-widget__close-icon:active {
    background: rgba(0,0,0,0.07);
  }
}
