/* Единый стиль только для текстовых кнопок (не затрагивает стрелки) */
.t-btn.t-btnflex,
.t-btnflex.t-btnflex_type_button,
.t-btnflex.t-btnflex_type_submit {
  color: #3b3b3b !important;
  background-color: #ffffff !important;
  border-style: solid !important;
  border-color: #3b3b3b !important;
  border-width: 1px !important;
  border-radius: 60px !important;

  font-family: 'Manrope', sans-serif !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;

  padding: 15px 40px !important; /* верх/низ 15px, слева/справа 40px */
  line-height: 1 !important;
  height: auto !important;
  min-height: auto !important;
  box-shadow: none !important;
  transition: all 0.2s ease-in-out !important;
}




/* Ховер — обводка и текст серые, фон прозрачный */
.t-btn:hover,
.t-btnflex:hover,
.t-btn:focus-visible,
.t-btnflex:focus-visible {
  color: #B6B6B6 !important;
  border-color: #B6B6B6 !important;
  background-color: transparent !important;
}

/* Кнопка в окне после отправки формы (success-popup) */
.t-body_success-popup-showed .t-success-popup .t-btn,
.t-form-success-popup .t-btn {
  color: #3B3B3B !important;
  background: transparent !important;
  border: 1px solid #3B3B3B !important;
  border-radius: 60px !important;

  font-family: 'Manrope', sans-serif !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;

  padding: 15px 15px !important;
  line-height: 1 !important;
  transition: all 0.2s ease-in-out !important;
}

/* Ховер для кнопки в попапе */
.t-body_success-popup-showed .t-success-popup .t-btn:hover,
.t-form-success-popup .t-btn:hover {
  color: #B6B6B6 !important;
  border-color: #B6B6B6 !important;
  background: transparent !important;
}



.tlk-userbar__user-image {
  position: relative !important;
  top: 20px !important;      /* смещение вниз */
  margin-right: 20px !important; /* отступ справа */
}







/* Подключим Manrope на всякий случай */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Manrope'), url('https://fonts.gstatic.com/s/manrope/v14/xn7gYHE41ni1AdIRggexSg.woff2') format('woff2');
}

/* ===== 1) ADD TO CART: в личном кабинете (Members) =====
   Накрываем разные варианты разметки: , , 
*/
#app .tmst-purchased__product-details__action button,
#app .tmst-purchased__product-details__action .t-btn,
#app .tmst-purchased__product-details__action .t-submit,
#app .tmst-purchased__product-details__action a[role="button"],
#app .tmst-purchased__product-details__action [class*="btn"],
#app .tmst-purchased__product-details__action [type="submit"] {
  box-sizing: border-box !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #3B3B3B !important;
  background-color: #FFFFFF !important;
  border: 1px solid #3B3B3B !important;
  border-radius: 32px !important;
  padding: 10px 30px !important;   /* твоя норма: 15/40 */
  width: auto !important;
  min-width: unset !important;
  max-width: unset !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  box-shadow: none !important;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease !important;
  cursor: pointer !important;
}
#app .tmst-purchased__product-details__action button:hover,
#app .tmst-purchased__product-details__action .t-btn:hover,
#app .tmst-purchased__product-details__action .t-submit:hover,
#app .tmst-purchased__product-details__action a[role="button"]:hover {
  color: #9C9C9C !important;
  border-color: #9C9C9C !important;
  background-color: #FFFFFF !important; /* фон остаётся белым */
}

/* ===== 2) PLACE AN ORDER: в окне корзины/чекаута (.t706) ===== */
#app .t706__cartwin-wrapper .t-form__submit .t-submit,
#app .t706__cartwin .t-form__submit .t-submit,
#app .t706__cartwin-wrapper .t-form__submit button,
#app .t706__cartwin .t-form__submit button {
  box-sizing: border-box !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #3B3B3B !important;
  background-color: #FFFFFF !important;
  border: 1px solid #3B3B3B !important;
  border-radius: 32px !important;
  padding: 10px 30px !important;
  width: auto !important;
  min-width: unset !important;
  max-width: unset !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  box-shadow: none !important;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease !important;
  cursor: pointer !important;
}
#app .t706__cartwin-wrapper .t-form__submit .t-submit:hover,
#app .t706__cartwin .t-form__submit .t-submit:hover,
#app .t706__cartwin-wrapper .t-form__submit button:hover,
#app .t706__cartwin .t-form__submit button:hover {
  color: #9C9C9C !important;
  border-color: #9C9C9C !important;
  background-color: #FFFFFF !important;
}

/* На случай, если будем метить кнопки классом .bobo-btn из JS (см. ниже) */
#app .bobo-btn {
  box-sizing: border-box !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #3B3B3B !important;
  background-color: #FFFFFF !important;
  border: 1px solid #3B3B3B !important;
  border-radius: 32px !important;
  padding: 15px 30px !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  box-shadow: none !important;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease !important;
  cursor: pointer !important;
}
#app .bobo-btn:hover {
  color: #9C9C9C !important;
  border-color: #9C9C9C !important;
  background-color: #FFFFFF !important;
}




document.addEventListener('DOMContentLoaded', function () {
  const markBtns = () => {
    // 1) Add to cart в личном кабинете
    document.querySelectorAll('#app .tmst-purchased__product-details__action button, #app .tmst-purchased__product-details__action .t-btn, #app .tmst-purchased__product-details__action .t-submit, #app .tmst-purchased__product-details__action a[role="button"], #app .tmst-purchased__product-details__action [type="submit"]').forEach(el => {
      el.classList.add('bobo-btn');
    });
    // 2) Place an order в корзине/чекауте (.t706)
    document.querySelectorAll('#app .t706__cartwin-wrapper .t-form__submit .t-submit, #app .t706__cartwin .t-form__submit .t-submit, #app .t706__cartwin-wrapper .t-form__submit button, #app .t706__cartwin .t-form__submit button').forEach(el => {
      el.classList.add('bobo-btn');
    });
  };

  // Первичный прогон
  markBtns();

  // На случай динамической подгрузки (SPA/модалки)
  const obs = new MutationObserver(markBtns);
  obs.observe(document.documentElement, { childList: true, subtree: true });
});




@media (max-width: 480px) {
  /* Центрируем попап личного кабинета на мобиле */
  body .tlk-userbar__popup.tlk-userbar__popup-show {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999999 !important;
  }
}




/* Только формы-блоки t702 в попапах */
.t-popup .t702__wrapper .t-form__submit {
  margin-top: 40px !important;
}






/* Отступ 20px под текстом описания в попапах t702 */
.t-popup .t702__descr {
  padding-bottom: 20px !important;
}





/* Только нижний текст в попапах t702: добавляем отступ 40px снизу */
.t-popup .t702__form-bottom-text p {
  padding-bottom: 40px !important;
}
