#login input::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: var(--ts-black);
  
  font-style: normal;
  font-weight: var(--ts-fw-medium);
}
#login input::-moz-placeholder {
  /* Firefox 19+ */
  color: var(--ts-black);
  
  font-style: normal;
  font-weight: var(--ts-fw-medium);
}
#login input:-ms-input-placeholder {
  /* IE 10+ */
  color: var(--ts-black);
  
  font-style: normal;
  font-weight: var(--ts-fw-medium);
}
#login input:-moz-placeholder {
  /* Firefox 18- */
  color: var(--ts-black);
  
  font-style: normal;
  font-weight: var(--ts-fw-medium);
}

#consultation,
#login{
  position: fixed;
  top: 0px;
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  padding: 15px;
  z-index: 9999;
  text-align: center;
}
#consultation .success_text{
  color: var(--ts-danger-bg);
  font-weight: var(--ts-fw-semibold);
}
#preorder input,
#notify input,
#callback input,
#consultation input,
#login input{
  max-width: 400px;
  display: block;
  color: var(--ts-text-soft);
  border: 1px solid var(--ts-border);
  font-size: var(--ts-fs-ui);
  
  font-style: normal;
  font-weight: var(--ts-fw-medium);
  line-height: normal;
  padding: 0px 15px 0px 15px;
  border-radius: 25px;
  line-height: 32px;
  width: 100%;
  margin: 5px auto;
  background-color: var(--ts-white);
  outline: none;
}
#preorder input:focus,
#notify input:focus,
#callback input:focus,
#consultation input:focus,
#login input:focus{
    box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.2);
    outline: none;
}
#consultation .popup_title,
#login .popup_title{
  color: var(--ts-white);
  font-size: var(--ts-fs-lg);
  margin: 5px auto;
}
#consultation .login_title,
#login .login_title{
color: var(--ts-white);
    font-size: var(--ts-fs-lg);
    margin: 5px auto;
    
    font-style: normal;
    font-weight: var(--ts-fw-semibold);
}
.to_login, .to_registration, .to_forget_pass {
    font-size: var(--ts-fs-ui);
    background: none;
    text-align: center;
    color: var(--ts-white);
    text-decoration: none;
    display: inline-block;
    margin: 5px 0px;
    padding: 10px;
    transition: 0.5s;
    
    font-style: normal;
    font-weight: var(--ts-fw-regular);
}
.to_login:hover, .to_registration:hover, .to_forget_pass:hover {
    color: var(--ts-white);
    text-decoration: underline;
}
.registration_vk_form .login_title,
.registration_fb_form .login_title,
.registration_ok_form .login_title{
  font-size: var(--ts-fs-md);
}
.thanks_text_registration_ok,
.thanks_text_registration_fb,
.thanks_text_registration_vk{
  display: none;
  text-align: center;
  width: 100%;
  color: var(--ts-success);
  font-size: var(--ts-fs-md);
}
.thanks_text_registration_ok p,
.thanks_text_registration_fb p,
.thanks_text_registration_vk p{
  text-align: center;
  color: var(--ts-success);
  font-size: var(--ts-fs-md);
}
.success_text,
.thanks_text_registration,
.thanks_text_forget{
  display: none;
  text-align: center;
  width: 100%;
  overflow: hidden;
  color: var(--ts-white);
  background: var(--ts-accent);
  line-height: 20px;
  margin: 0px;
  padding: 10px;
  
  font-style: normal;
  font-weight: var(--ts-fw-semibold);
  font-size: var(--ts-fs-ui);
}
.success_text p,
.thanks_text_registration p,
.thanks_text_forget p{
  margin: 0px;
}
.registration_form{display:none}
.forget_form{display:none}

#product_view{
	display: none;
}




#sizetable,
#order_info {
  background: var(--ts-white);
  display: none;
  padding: 15px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: -200px 0 0 -350px;
  width: 700px;
  z-index: 2002;
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  -khtml-border-radius: 0px;
  border-radius: 0px;
  border: 1px solid var(--ts-text-soft);
}
#sizetable .sizetable,
#order_info .order_products{
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
  
  font-style: normal;
  line-height: 14px;
  font-size: var(--ts-fs-xs);
}
#order_info .order_products thead tr:first-child{
  border-bottom: 2px solid var(--ts-text-soft);
}
#order_info .order_products tbody tr{
  border-bottom: 1px solid var(--ts-text-soft);
}
#order_info .order_products tbody tr:last-child{
  border-bottom: 2px solid var(--ts-text-soft);
}
#order_info .order_products .td_1{
  width: 75px;
  height: 75px;
}
#order_info .order_products .td_1 a{
  width: 75px;
  height: 75px;
}
#order_info .order_products .td_2{
  width: 300px;
}
#order_info .order_products .td_2 a{
    font-size: var(--ts-fs-base);
    color: var(--ts-text-soft);
}
#order_info .price_op{
    text-align: center;
    color: var(--ts-text-soft);
    font-size: var(--ts-fs-base);
    padding: 0px 0px;
    margin: 0 auto;
    overflow: hidden;
    display: block;
}
#order_info thead tr td{
    font-size: var(--ts-fs-base);
    color: var(--ts-text-soft);
}
#order_info tr td{
  text-align: center;
  padding: 5px 10px;
  vertical-align: middle;
}
#order_info tr .tfoot_1{
  text-align: left;
    font-size: var(--ts-fs-lg);
    color: var(--ts-text-soft);
}
#order_info .quantity{
    font-size: var(--ts-fs-md);
    color: var(--ts-text-soft);
}
#order_info .sum_price{
    text-align: center;
    color: var(--ts-text-soft);
    font-size: var(--ts-fs-md);
}
#order_info .td_5{
  width: 220px;
}
#order_info tfoot p{
  font-weight: var(--ts-fw-semibold);
  font-size: var(--ts-fs-lg);
}
.disnone{
  display: none;
}
#success_adding_compare,
#success_adding_wish,
#success_adding{
  background: var(--ts-white);
  display: none;
  padding: 12px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: -200px 0 0 -250px;
  width: 500px;
  z-index: 252;
  text-align: center;
}

#success_adding_compare p,
#success_adding_wish p,
#success_adding p{
  font-size: var(--ts-fs-md);
  color: var(--ts-text-soft);
  
  font-style: normal;
  font-weight: var(--ts-fw-semibold);
  margin: 10px auto;
}

#alert{
  background: var(--ts-white);
  display: none;
  padding: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: -200px 0 0 -150px;
  width: 300px;
  z-index: 252;
  text-align: center;
  border: 1px solid var(--ts-text-soft);
}
#alert p{
  font-size: var(--ts-fs-lg);
  
  font-style: normal;
  font-weight: var(--ts-fw-semibold);
  color: var(--ts-danger);
}

#information{
  position: fixed;
  top: 0px;
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  padding: 15px;
  z-index: 252;
  text-align: center;
}
#information .popup_content{
  color: var(--ts-white);
}
#preorder,
#notify,
#callback{
  position: fixed;
  top: 0px;
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  padding: 15px;
  z-index: 252;
  text-align: center;
}
#preorder .popup_title,
#notify .popup_title,
#callback .popup_title{
  color: var(--ts-white);
  font-size: var(--ts-fs-lg);
  margin: 5px auto;
  
  font-style: normal;
  font-weight: var(--ts-fw-semibold);
}


#preload{
  display: none;
  background: rgba(0,0,0, 0.7);
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999999;
}
#preload #loaderImage,
#preload img{
  top: 50%;
  position: fixed;
  left: 50%;
  margin-left: -64px;
  margin-top: -64px;
}
.error_input{
  background: var(--ts-danger-bg)!important;
  border: 1px solid var(--ts-danger)!important;
}

#success_adding .light_button,
#success_adding_wish .light_button,
#success_adding_compare .light_button,
#success_adding_wish .login_button,
#success_adding_compare .login_button,
#preorder .light_button,
#notify .light_button,
#callback .light_button,
#consultation .light_button,
#login .light_button{
  background: var(--ts-accent);
  border-radius: 25px;
  cursor: pointer;
  transition: .3s;
  
  font-style: normal;
  font-weight: var(--ts-fw-regular);
  font-size: var(--ts-fs-ui);
  text-align: center;
  line-height: 20px;
  color: var(--ts-white);
  padding: 10px 15px;
  display: inline-block;
  text-decoration: none;
  margin: 5px auto;
}
#success_adding .light_button:hover,
#success_adding_wish .light_button:hover,
#success_adding_compare .light_button:hover,
#success_adding_wish .login_button:hover,
#success_adding_compare .login_button:hover,
#preorder .light_button:hover,
#notify .light_button:hover,
#callback .light_button:hover,
#consultation .light_button:hover,
#login .light_button:hover{
    background-color: var(--ts-sale);
    color: var(--ts-white);
    text-decoration: none;
}
.pwd_thanks_text,
.profile_thanks_text,
.thanks_text{
  text-align: center;
  font-size: var(--ts-fs-lg);
  display: none;
  color: var(--ts-white);
  background: var(--ts-accent);
  font-style: normal;
  font-weight: var(--ts-fw-medium);
  line-height: normal;
  padding: 10px;
  margin: 20px auto;
}

#promo_percent{
  margin: 15px;
  font-size: var(--ts-fs-md);
  display: inline-block;
}
#promo_percent span{
  background: var(--ts-success);
  color: var(--ts-white);
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: var(--ts-fw-semibold);
}

.opt_user_prove_success{
  font-size: var(--ts-fs-lg);
  background: var(--ts-success);
  padding: 5px 10px;
  color: var(--ts-white);
  margin: 10px 0px;
  line-height: 34px;
}
.opt_user_prove_failure{
  font-size: var(--ts-fs-lg);
  background: var(--ts-accent);
  padding: 5px 10px;
  color: var(--ts-white);
  margin: 10px 0px;
}




.match_container {
  position: absolute;
  right: 0;
  top: 50px;
  background-color: var(--ts-white);
  border: 1px solid var(--ts-black);
  overflow: hidden;
  width: 100%;
  z-index: 99999;
  display: none;
}
.search_container ul{
  padding: 5px 10px 5px 10px;
}
.search_container ul li{
  display: block;
  width: 100%;
  text-align: left;
}
.search_container ul li a{
  line-height: 14px;
  display: flex;
  padding: 5px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.search_container ul .match_product_img{
  position: relative;
  display: inline-block;
  top: auto;
  right: auto;
  left: auto;
  padding-left: 5px;
  text-align: left;
  margin-right: 10px;
}
.search_container ul .match_product_name{
  position: relative;
  display: inline-block;
  color: var(--ts-text);
  right: auto;
  left: auto;
  top: auto;
  margin: 0px;
  padding: 0px;
  font-size: var(--ts-fs-sm);
  vertical-align: top;
}


.search_container ul li a:hover{
  background: var(--ts-accent);
}
.search_container ul :hover .match_product_name{
  color: var(--ts-white);
}
#overflow_1 {
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}
.social_auth{
  text-align: center;
}
.social_auth li{
  display: inline-block;
}
.social_auth li span,
.social_auth li a{
  color: var(--ts-white);
  display: inline-block;
  vertical-align: top;
  line-height: 32px;
}

.login_fb{
  background: url(../../img/login/login_fb.png);
  background-size: 32px 32px;
  display: inline-block;
  width: 32px;
  height: 32px;
}
.login_vk{
  background: url(../../img/login/login_vk.png);
  background-size: 32px 32px;
  display: inline-block;
  width: 32px;
  height: 32px;
}
.login_ok{
  background: url(../../img/login/login_ok.png);
  background-size: 32px 32px;
  display: inline-block;
  width: 32px;
  height: 32px;
}


.pop_close{
  position: absolute;
  top: 0px;
  right: 0px;
  background: var(--ts-white);
  font-size: var(--ts-fs-xl);
  width: 40px;
  text-align: center;
  height: 40px;
  line-height: 36px;
  cursor: pointer;
  border: 1px solid var(--ts-graphite-deep);
  transition:0.5s;
}
.pop_close a:hover {
    color: var(--ts-accent);
}
.pop_close:hover{
  color: var(--ts-accent); 
}
#overflow{
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  left: 0;
  overflow: hidden;
  z-index: 250;
  overflow: auto;
  overflow-y: none;
  background: rgba(0, 0, 0, 0.55);
}
.oh{
  overflow: hidden;
}
.hidden{
  display: none;
}


















.cabinet_menu .cabinet_menu_link{
  font-size: var(--ts-fs-ui);
  color: var(--ts-black);
  background: var(--ts-surface);
  vertical-align: top;
  width: 100%;
  height: 75px;
  padding: 25px 10px;
  display: block;
  position: relative;
  
  font-style: normal;
  line-height: normal;
  text-decoration: none;
}
.cabinet_menu .cabinet_menu_link::before{
  content: " ";
  display: inline-block;
  width: 3px;
  height: 75px;
  background:var(--ts-border);
  position: absolute;
  top: 0px;
  left: 0px;
  transition:0.5s;
}
.cabinet_menu .cabinet_menu_link:focus,
.cabinet_menu .cabinet_menu_link:active,
.cabinet_menu .cabinet_menu_link:hover,
.cabinet_menu .cabinet_menu_link.active{
  text-decoration: none;
  background: var(--ts-accent);
  color: var(--ts-white);
}
.cabinet_menu .cabinet_menu_link:focus::before,
.cabinet_menu .cabinet_menu_link:active::before,
.cabinet_menu .cabinet_menu_link:hover::before,
.cabinet_menu .cabinet_menu_link.active::before{
  background:var(--ts-accent);
}

.cabinet_tab{
  display: none;
  overflow: hidden;
  background: var(--ts-surface);
  padding: 5px 10px;
}
.cabinet_tab.active{
  display: block;
}

.pk_logout{
  display: block;
  float: left;
  background: url(../../img/icons/pk_logout.png);
  background-repeat: no-repeat;
  background-size: 18px 18px;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 10px;
  margin-left: 10px;
  background-position: 0px 2px;
}
.pk_history{
  display: block;
  float: left;
  background: url(../../img/icons/pk_history.png);
  background-repeat: no-repeat;
  background-size: 16px 20px;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 10px;
  margin-left: 10px;
  background-position: 0px 3px;
}
.pk_favorite{
  display: block;
  float: left;
  background: url(../../img/icons/pk_favorite.png);
  background-repeat: no-repeat;
  background-size: 15px 14px;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 10px;
  margin-left: 10px;
  background-position: 0px 4px;
}
.pk_compare{
  display: block;
  float: left;
  background: url(../../img/icons/pk_compare.png);
  background-repeat: no-repeat;
  background-size: 15px 14px;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 10px;
  margin-left: 10px;
  background-position: 0px 4px;
}
.pk_person{
  display: block;
  float: left;
  background: url(../../img/icons/pk_person.png);
  background-repeat: no-repeat;
  background-size: 13px 15px;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 10px;
  margin-left: 10px;
  background-position: 1px 2px;
}

.cabinet_menu a:focus i,
.cabinet_menu a:hover i,
.cabinet_menu a.active i{
  filter: invert(100%);
  -webkit-filter: invert(100%);
}

.cabinet_tabs .c_title,
.c_tab_title{
  text-transform: uppercase;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 20px;
  width: 100%;
  float: left;
  
  font-style: normal;
  font-weight: var(--ts-fw-medium);
  line-height: normal;
  font-size: var(--ts-fs-md);
  color: var(--ts-black);
}
.opt_user{
  display: none;
}
.opt_user.active{
  display: block;
}
.user_info_form textarea,
.user_info_form input{
    margin: 5px 0px 15px 0px;
    width: 100%;
    float: left;
    
    font-style: normal;
    font-weight: var(--ts-fw-medium);
    line-height: normal;
    font-size: var(--ts-fs-sm);
    color: var(--ts-muted);
    height: 42px;
    border: 1px solid var(--ts-border);
    border-radius: 25px;
    padding-left: 20px;
    padding-right: 20px;
}
.user_info_form textarea:focus,
.user_info_form input[type="text"]:focus{
  box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.2);
  outline: none;
  border: 1px solid var(--ts-accent);
  color: var(--ts-black);
}

.user_info_form .input label{
    font-size: var(--ts-fs-ui);
    margin: 0px 0px 0px 3px;
    color: var(--ts-graphite-deep);
    display: block;
    
    font-style: normal;
    font-weight: var(--ts-fw-medium);
    line-height: 22px;
    text-transform: none!important;
}
.user_info_block{
  margin-bottom: 20px;
  padding-bottom: 20px;
}
.user_info_block p small{
  color: var(--ts-accent);
}


.order_page .login_button{
  float: left;
  background: var(--ts-accent);
  color: var(--ts-white);
  text-align: center;
  width: 200px;
  height: 36px;
  line-height: 36px;
  border-radius: 4px;
}
.order_page .login_button:hover{
  background: var(--ts-sale);
  text-decoration: none;
}
.favorite_btns,
.personal_btns{
  text-align: center;
}
.confirm_order,
.favorite_btns .button_green,
.personal_btns .button_green{
    width: auto;
    clear: both;
    float: left;
    text-align: center;
    padding-left: 28px;
    padding-right: 28px;
    display: flex;
    justify-content: center;
    line-height: 42px;
    transition: .3s;
    
    font-style: normal;
    font-weight: var(--ts-fw-regular);
    text-decoration: none;
    font-size: var(--ts-fs-ui);
    color: var(--ts-white);
    background: var(--ts-accent);
    border-radius: 25px;
    border: none;
    margin: 20px auto;
}
.confirm_order:hover,
.favorite_btns .button_green:hover,
.personal_btns .button_green:hover{
    background: var(--ts-sale);
    color: var(--ts-white);
    text-decoration: none;
}
.confirm_order{
  float: none;
}
.personal_cabinet{
  margin-top: 30px;
  margin-bottom: 20px;
}


.remove_favorite{
  display: block;
  position: absolute;
  top: 10px;
  right: 0px;
  cursor: pointer;
  background: url(../../img/icons/remove_favorite.png);
  background-repeat: no-repeat;
  background-size: 22px 22px;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 10px;
  margin-left: 10px;
  background-position: 0px 0px;
  z-index: 2;
}
.catalog_favorite .tpl_product_colors{
  bottom: 0px;
  top: auto;
}
.favorite_btns{
  text-align: center;
}

.orders_history{
  width: 100%;
  background: var(--ts-surface-soft);
  
  font-style: normal;
  line-height: 14px;
  font-size: var(--ts-fs-xs);
}
.orders_history thead tr td{
  text-align: center;
  border-top: 2px solid var(--ts-border);
  border-bottom: 2px solid var(--ts-border);
  color:var(--ts-text-soft);
  background: var(--ts-white);
  padding: 10px 10px;
}
.orders_history a{
  font-weight: var(--ts-fw-semibold);
  color: var(--ts-graphite-deep);
}
.orders_history a:hover{
  color: var(--ts-accent);
}
.orders_history tr:hover{
    background: var(--ts-surface);
}
.orders_history tbody tr td{
  text-align: center;
  padding: 10px 10px;
}
.status_delivered{
  color: var(--ts-success);
}
.status_cancel{
  color: var(--ts-danger);
}
.status_wait{
  color: var(--ts-graphite);
}
.status_new{
  color: var(--ts-graphite);
}
.cabinet_mobile_menu{
  display: none;
}
.confirm_img{
  width: 100%;
  display: block;
}
.c_confirm_title{
  text-transform: uppercase;
  font-size: var(--ts-fs-lg);
  text-align: left;
  margin: 20px 15px;
}
.confirm_page{
  margin: 30px auto;
}
.order_confirm{
  width: 100%;
}

.order_confirm tbody tr:nth-child(odd){
  background:var(--ts-surface);
  color: var(--ts-text-soft);
}
.order_confirm tbody tr:nth-child(even){
  background:var(--ts-surface-soft);
  color: var(--ts-black);
}
.order_confirm tbody tr:hover{
  background: var(--ts-border);
}
.order_confirm tbody tr td{
  padding: 12px 8px;
}
.confirm_delivery b,
.confirm_pay b{
  min-width: 80px;
  display: inline-block;
  margin-bottom: 5px;
  color: var(--ts-graphite-deep);
}
.confirm_delivery,
.confirm_pay{
  color: var(--ts-graphite-deep);
}
.confirm_info{
  margin-top: 25px;
}
.confirm_info_left{
  float: left;
  display: block;
}
.confirm_info_right{
  float: right;
  display: block;
  font-size: var(--ts-fs-md);
}
.confirm_info_right b{
  margin-left: 5px;
}

.order_block{
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 20px;
  background: var(--ts-surface);
  border-radius: 5px;
  float: left;
  width: 100%;
}
.order_block.active{
  box-shadow: 0px 0px 10px 1px var(--ts-border);
}
.order_step{
  text-transform: uppercase;
  font-size: var(--ts-fs-md);
  color: var(--ts-sale);

}
.order_delivery_info p{
  color: var(--ts-white);
  font-size: var(--ts-fs-base);
}
.order_block .input label{
  font-size: var(--ts-fs-ui);
  font-weight: var(--ts-fw-regular);
  color: var(--ts-graphite-deep);
  margin: 10px 5px 10px 15px;
  display: block;
}
.step_icon{
  display: inline-block;
  background: url(../../img/icons/step_icon.png);
  background-repeat: no-repeat;
  background-size: 10px 8px;
  background-position: 5px 5px;
  width: 20px;
  height: 20px;
  vertical-align: top;
  transition: 1s;
}
.order_user_info{
  margin-top: 20px;
}
.next_step{
  float: right;
}

.tab_delivery_courier,
.tab_delivery_shop,
.tab_delivery_newpost_courier,
.tab_delivery_newpost,
.tab_cash_pay,
.tab_card_pay,
.tab_regular_user,
.tab_new_user{
  display: none;
}

.tab_delivery_newpost_courier.active,
.tab_delivery_courier.active,
.tab_delivery_shop.active,
.tab_delivery_newpost.active,
.tab_cash_pay.active,
.tab_card_pay.active,
.tab_regular_user.active,
.tab_new_user.active{
  display: block;
}
.order_block_nav{
  border-bottom: 1px solid var(--ts-border);
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
}

.to_tab_delivery_newpost_courier,
.to_tab_delivery_courier,
.to_tab_delivery_shop,
.to_tab_delivery_newpost,
.to_tab_cash_pay,
.to_tab_sms_pay, 
.to_tab_card_pay,
.to_tab_regular_user,
.to_tab_new_user{
  display: block;
  width: 50%;
  font-size: var(--ts-fs-md);
  float: left;
  padding: 11px 5px;
  text-align: center;
  border: 3px solid transparent;    
  color: var(--ts-accent);
  text-decoration: none;
}
.clr{
  clear: both;
  display: block;
  width: 100%;
  height: 1px;
}



.to_tab_delivery_newpost_courier:active,
.to_tab_delivery_newpost_courier:focus,
.to_tab_delivery_newpost_courier.active,
.to_tab_delivery_newpost_courier:hover,
.to_tab_delivery_courier:active,
.to_tab_delivery_courier:focus,
.to_tab_delivery_courier.active,
.to_tab_delivery_courier:hover,
.to_tab_delivery_shop:active,
.to_tab_delivery_shop:focus,
.to_tab_delivery_shop:hover,
.to_tab_delivery_shop.active,
.to_tab_delivery_newpost:active,
.to_tab_delivery_newpost:focus,
.to_tab_delivery_newpost:hover,
.to_tab_delivery_newpost.active,
.to_tab_sms_pay:active,
.to_tab_sms_pay.active,
.to_tab_sms_pay:focus,
.to_tab_sms_pay:hover,
.to_tab_cash_pay:active,
.to_tab_cash_pay:focus,
.to_tab_cash_pay:hover,
.to_tab_cash_pay.active,
.to_tab_card_pay:active,
.to_tab_card_pay:focus,
.to_tab_card_pay:hover,
.to_tab_card_pay.active,
.to_tab_regular_user:active,
.to_tab_regular_user:focus,
.to_tab_regular_user:hover,
.to_tab_regular_user.active,
.to_tab_new_user:active,
.to_tab_new_user:focus,
.to_tab_new_user:hover,
.to_tab_new_user.active{
  color: var(--ts-accent);
  background: none;
  border-bottom: 3px solid var(--ts-accent);
  text-decoration: none;
}
.order_delivery_info .input{
  margin-bottom: 12px;
}
.order_delivery_info .input label{
  margin-bottom: 3px;
}
.order_page{
  margin-top: 20px;
  margin-bottom: 50px;
  
  font-style: normal;
  font-weight: var(--ts-fw-medium);
  line-height: normal;
}







.order_block textarea,
.order_block input{
    width: 100%;
    
    font-style: normal;
    font-weight: var(--ts-fw-regular);
    line-height: normal;
    font-size: var(--ts-fs-sm);
    color: var(--ts-text);
    height: 36px;
    border: 1px solid var(--ts-border);
    border-radius: 25px;
    padding-left: 20px;
    padding-right: 20px;
}
.order_block textarea:focus,
.order_block input[type="text"]:focus{
  border: 1px solid var(--ts-accent);
  outline: none;
}
.order_block textarea{
  max-width: 100%;
  min-width: 100%;
  min-height: 65px;
  max-height: 400px;
}




.basket_holder{
  color: var(--ts-graphite-deep);
  border-radius: 5px;
  background: var(--ts-surface);
  padding: 10px;
  margin: 20px auto;
}
.basket_case{
  width: 100%;
  background: none;
  margin-top: 42px;
  color: var(--ts-graphite-deep);
}
.basket_case tr{

}
.basket_case tr td{
  padding: 20px;
  vertical-align: middle;
  text-align: center;
}
.basket_product_name{
  display: block;
  text-align: left;
  color: var(--ts-graphite-deep);
  font-size: var(--ts-fs-ui);
  text-transform: uppercase;
}
.basket_product_name:hover{
  color: var(--ts-accent);
}
.basket_product_info{
  display: block;
  text-align: left;
  color:var(--ts-accent);
  font-size: var(--ts-fs-xs);
}

.basket_product_info span{
  color: var(--ts-accent);
  font-size: var(--ts-fs-xs);
}

.amount_few{
  text-align: center;
  display: block;
  font-size: var(--ts-fs-ui);
  margin-bottom: 0px;
}
.price .amount_1{
  text-align: center;
  display: block;
  font-size: var(--ts-fs-md);
  font-weight: var(--ts-fw-semibold);
}

.basket_remove{
  color: var(--ts-sale);
  background: transparent;
  border-radius: 5px;
  line-height: 38px;
  height: 38px;
  width: 38px;
  text-align: center;
  display: block;
  transition:0.3s;
  margin: 0px auto;
}
.basket_remove:hover{
  color: var(--ts-white);
  background: var(--ts-sale);
}


.cart_btn{
  position: relative;
  width: 50%;
  float: right;
  background: var(--ts-border);
  color: var(--ts-text);
  font-size: var(--ts-fs-xs);
  font-weight: var(--ts-fw-regular);  
}
.quantity{
  overflow: hidden;
  position: relative;
  border: none;
  border-radius: 0px;
  line-height: 40px;
  height: 84px;
  width: 55px;
  margin: 0px auto;
}
.quantity .cart_quantity{
  display: block;
  text-align: center;
  width: 100%;
  height: 28px;
  line-height: 28px;
  background: none;
  padding: 0px;
  border: 0px;
  margin: 0px;
  color: var(--ts-graphite-deep);
}
.btn_plus{
  display: block;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  height: 28px;
  background: transparent;
  border-radius: 5px;
  color: var(--ts-accent);
  font-weight: var(--ts-fw-semibold);
  transition:0.5s;
}

.btn_minus{
  display: block;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  height: 28px;
  background: transparent;
  border-radius: 5px;
  color: var(--ts-accent);
  font-weight: var(--ts-fw-semibold);
  transition:0.5s;
}
.plus-minus:hover{
  color: var(--ts-white);
  background: var(--ts-accent);
}
.total_p_sum{
  font-weight: var(--ts-fw-semibold);
  font-size: var(--ts-fs-md);
}
.basket_case td:nth-child(1){
  width: 160px;
}
.basket_case tr{
}
.basket_case tr:last-child{
  border-bottom: 1px solid var(--ts-border);
}
.basket_result .tabs_holder{
  border: 1px solid var(--ts-border);
  background: var(--ts-surface-soft);
  padding: 15px;
}
.basket_input{
  margin: 10px auto;
}
.basket_input_title{
  color: var(--ts-graphite-deep);
  font-size: var(--ts-fs-ui);
  float: left;
  width: 50%;

}
.confirm_page_content{
  display:block!important;
  
  font-style: normal;
  font-weight: var(--ts-fw-medium);
  line-height: normal;
}
.order_pay_info p{
  color: var(--ts-graphite-deep);
  font-size: var(--ts-fs-ui);
}
.cart_total_discount,
.cart_total_no_discount,
.cart_total_cur,
.cart_total_all,
.cart_total_delivery,
.cart_total{
  color: var(--ts-graphite-deep);
  font-weight: var(--ts-fw-semibold);
}
.basket_title{
  font-size: var(--ts-fs-md);
  font-weight: var(--ts-fw-semibold);
  text-align: left;
  font-size: var(--ts-fs-md);
}
.basket_input input{
  width: 50%;
  height: 30px;
  color: var(--ts-text-soft);
  padding: 0px 10px;
  font-size: var(--ts-fs-md);
  line-height: 30px;
}

.basket_case .cart-images{
  border: 1px solid var(--ts-border);
  display: block;
  width: 130px;
  margin: 0px auto;
  border-radius: 5px;
  overflow: hidden;
}
.basket_case .cart-images img{
  width: 100%;
}
.total_cart_sum{
  float: right;
  color: var(--ts-accent);
  font-size: var(--ts-fs-md);
  font-weight: var(--ts-fw-semibold);
  letter-spacing: 0.5px;
  margin: 10px auto;
}
.total_cart_sum_cur{
  float: right;
  color: var(--ts-accent);
  font-size: var(--ts-fs-md);
  font-weight: var(--ts-fw-semibold);
  letter-spacing: 0.5px;
  margin: 5px auto;
}
.cart_btns{
  float: right;
}
.shopping_continue{
  display: inline-block;
  margin-right: 20px;
  color: var(--ts-success);
  font-weight: var(--ts-fw-semibold);
  font-size: var(--ts-fs-ui);
}
.b_title{
  display: none;
}
.p_h_title{
  display: none;
  float: left;
}







.chosen-container{
  width: 100%!important;
  outline: none;
  background: transparent;
  border: none;
  border-radius: 5px;
}
.chosen-container-single .chosen-single{
  line-height: 36px;
  height: 36px;
  outline: none;
  background: var(--ts-white);
  box-shadow: none;
  font-weight: var(--ts-fw-semibold);
  color: var(--ts-graphite-deep);
  border-radius: 4px;
  border: 1px solid var(--ts-white);
}
.chosen-container-single .chosen-single:hover{
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.3);

}
.chosen-container-single .chosen-search input[type=text]{
  color: var(--ts-graphite-deep);
}
.order_block .chosen-container-single input[type="text"]:focus{
  color: var(--ts-graphite-deep);
}

.chosen-container-active.chosen-with-drop .chosen-single{
    background: var(--ts-white);
    border: 1px solid var(--ts-white);
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.3);
}
.chosen-container-single .chosen-single div{ 
  width: 36px;
  height: 36px;
}
.chosen-container-single .chosen-single span{
  margin-right: 0px;
}

.chosen-container-single .chosen-single div b{
  background-image: url('../../img/icons/drop_down.png?u=1')!important;
  background-size: 100%!important;
  background-position: 0px 0px!important;
  transition:transform 0.5s;
}
.chosen-container.chosen-with-drop .chosen-drop{
    border: 0px;
    background: var(--ts-white);
    color: var(--ts-graphite-deep);
    font-weight: var(--ts-fw-semibold);
    box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.3);
}
.chosen-container-single .chosen-drop,
.chosen-container .chosen-drop{
  border: 1px solid var(--ts-accent);
  border-radius: 0px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}


.chosen-container-single .chosen-single div,
.chosen-container-active.chosen-with-drop .chosen-single div{
  background: var(--ts-white);
}
.chosen-container-active.chosen-with-drop .chosen-single div b{
  background-position: 0px 0px;
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
}
.chosen-container .chosen-results li.highlighted{
  background: var(--ts-accent);
  color: var(--ts-white);
}
.chosen-container .chosen-results{
  margin: 0px 0px 0px 0;
  padding: 0 0 0 0px;
  clear: both;
}
.chosen-container .chosen-results li{
  line-height: 28px;
}

.order_f_l{
  display: none;
}

.m_head_btns{
  display: none;
  text-align: center;
}
.main_head_btns{
    width: 100%;
    float: left;
    display: flex;
    justify-content: center;
}
.main_head_btns .head_btn_action,
.m_head_btns .head_btn_action{
  color: var(--ts-danger);
  
  font-style: normal;
  font-weight: var(--ts-fw-medium);
  font-size: var(--ts-fs-md);
  line-height: 30px;
  display: inline-block;    
  text-decoration: none;
  margin: 5px 15px;
}
.main_head_btns .head_btn_new,
.m_head_btns .head_btn_new{
  color :var(--ts-accent);
  
  font-style: normal;
  font-weight: var(--ts-fw-medium);
  font-size: var(--ts-fs-base);
  line-height: 30px;
  display: inline-block; 
  text-decoration: none;
  margin: 5px 15px;
}
.desktop_btns{
  display: block;
  text-align: left;
  margin-bottom: 20px;
}
.main_head_btns .head_btn_action,
.main_head_btns .head_btn_new{
    display: inline-block;
    text-align: center;
    width: 49%;
    margin: 10px 0%;
}
.desktop_btns.m_head_btns .head_btn_new,
.desktop_btns.m_head_btns .head_btn_action {
  margin: 5px 0px;
  display: block;
}
.m_catalog_sort_list_select .chosen-container{
  width: 80px!important;
  margin: 0px 8px;
}
.m_catalog_sort_list_select .chosen-container-single .chosen-single span{
  line-height: 36px;
}
.paginate li{
  list-style: none;
  display: inline-block;
  padding: 5px;
}
.ui-widget-header {
    border: 1px solid var(--ts-graphite);
    background: var(--ts-graphite);
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    border: 1px solid var(--ts-graphite);
    background: var(--ts-border);
    font-weight: var(--ts-fw-semibold);
    color: var(--ts-graphite);
}
.ntf_back{
    max-width: 500px;
    width: 100%;
    display: block;
    margin: 0px auto;
    text-align: center;
}
@media (max-width: 1600px) {

}
@media (max-width: 1200px) {

}
@media (max-width: 992px) {



  .cabinet_tab .cabinet_menu_link{
    font-size: var(--ts-fs-md);
    color: var(--ts-black);
    background: var(--ts-surface);
    vertical-align: top;
    width: 100%;
    height: 75px;
    padding: 25px 10px;
    display: block;
    position: relative;
  }
  .cabinet_tab .cabinet_menu_link::before{
    content: " ";
    display: inline-block;
    width: 3px;
    height: 75px;
    background:var(--ts-border);
    position: absolute;
    top: 0px;
    left: 0px;
    transition:0.5s;
  }
  .cabinet_tab .cabinet_menu_link:focus,
  .cabinet_tab .cabinet_menu_link:active,
  .cabinet_tab .cabinet_menu_link:hover,
  .cabinet_tab .cabinet_menu_link.active{
    text-decoration: none;
    background: var(--ts-accent);
    color: var(--ts-white);
  }
  .cabinet_tab .cabinet_menu_link:focus::before,
  .cabinet_tab .cabinet_menu_link:active::before,
  .cabinet_tab .cabinet_menu_link:hover::before,
  .cabinet_tab .cabinet_menu_link.active::before{
    background:var(--ts-accent);
  }


  .cabinet_tab{
    display: block!important;
  }
  .cabinet_tab .inner_tab_content{
    display: none;
  }
  .cabinet_tab.active .inner_tab_content{
    display: block;
  }
  .cabinet_mobile_menu{
    display: block;
  }
  .filter_maintitle{
    display: none;
  }
  
  .fs_search .filter_row{
    width: 48%;
  }
}
@media (max-width: 850px){

}
@media (max-width: 768px) {
  .site-footer{
    padding-top: 5px;
    padding-bottom:5px;
  }
  .pt-5, .py-5{
    padding-top: 5px!important;
    margin-top: 5px!important;
  }
  .hidden-xs{
    display: none;
  }
  .desktop_btns{
    display: none!important;
  }

  .opt_user_prove_success{
    font-size: var(--ts-fs-md);
  }
  .order_page .basket_case{

  }
  .order_page .basket_case tr td{
    padding: 10px 10px;
  }
  .basket_case tr{
    border-bottom: 1px solid var(--ts-border);
  }
  .basket_case tr td{
    padding: 3px;
  }
  .match_container{
    width: 100%;
  }
  .fs_search .filter_row{
    width: 100%;
  }
}
@media (max-width: 580px){
    .basket_product_name_holder,
  .wrapper_amount,
  .basket_count{
    max-width: 180px;
    display: inline-block;
  }
  .b_title{
    display: inline-block;
    vertical-align: top;
    width: 50%;
    float: left;
    text-align: left;
  }
  .p_h_title{
    display: inline-block;
  }
  .orders_history tbody tr{
    border-bottom: 2px solid var(--ts-accent);
  }
  .orders_history tbody tr:last-child{
    border: none;
  }
  .orders_history thead{
    display: none;
  }
  .basket_case .cart-images{
    width: 130px;
    border: none;
  }
  .basket_product_name_holder{
    display: inline-block;
    width: 50%;
  }
  .basket_case tr{
  }
  .basket_case tr:last-child{
    border: none;
  }
  .order_count{
    display: inline-block;
  }
  .order_history_btnns{
    text-align: center;
  }
  .orders_history tr td{
    width: 100%!important;
    display: block;
    border-bottom: 1px solid var(--ts-border);    
    text-align: right!important;
  }
  .basket_case thead{
    display: none;
  }
  .basket_product_info,
  .basket_product_name{
    text-align: left;
  }
  .basket_case tr td{
    padding: 10px 0px;
    width: 100%!important;
    display: block;
    text-align: left;
    overflow: hidden;
  }
  .basket_remove{
    display: inline-block;
  }
  .order_f_l{
    display: block;
    float: left;
    width: 50%;
  }
  .order_f_r{
    display: block;
    float: left;
    width: 50%;
  }
  .c_confirm_title{
    background: var(--ts-surface-soft);
    margin: 0px 15px;
    padding: 10px;
  }
  .order_confirm tbody tr:nth-child(2){
    border-top:1px solid var(--ts-accent);    
  }
  .order_confirm tbody tr:nth-child(even){
    border-bottom:1px solid var(--ts-accent);
  }
  .order_confirm tbody tr:nth-child(even) td{
    text-align: left;
    display: block;
    width: 100%!important;  
    overflow: hidden;
    border-bottom: 1px solid var(--ts-border);
    padding: 12px 15px;
  }
  .order_confirm tbody tr:nth-child(odd){
    display: none;
  }
  .m_head_btns{
    display: block;
  }
  .main_head_btns{
    display: none;
  }
}
@media (max-width: 500px){

}
@media (max-width: 400px){
	#order_info{
	  padding: 5px;
	      margin: -200px 0 0 -150px;
	    width: 300px;
	}
}

/* ============================================================================
   ОФОРМЛЕННЯ ЗАМОВЛЕННЯ: доопрацювання
   ============================================================================ */

/* ---- Кроки ----------------------------------------------------------------
   Були червоні великими літерами. Червоний у нас означає знижку, тому
   для службових підписів він не годиться. Робимо спокійними.                */
.order_step {
  color: var(--ts-graphite);
  font-size: var(--ts-fs-base);
  font-weight: var(--ts-fw-semibold);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

/* ---- Картки кроків -------------------------------------------------------- */
.order_block {
  background: var(--ts-white);
  border: 1px solid var(--ts-border);
  border-radius: 8px;
  padding: 22px;
}

.order_block.active {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-color: var(--ts-accent);
}

/* ---- Поля вводу -----------------------------------------------------------
   Скруглення 25px робило поля схожими на кнопки. Форма читається краще,
   коли поля прямокутні: видно межі й довжину рядка.                         */
.order_block textarea,
.order_block input,
.order_page .chosen-container,
.order_page .chosen-container-single .chosen-single {
  border-radius: 8px !important;
}

.order_block .input label {
  margin: 10px 5px 6px 2px;
  color: var(--ts-muted);
  font-size: var(--ts-fs-sm);
}

.order_block textarea:focus,
.order_block input:focus {
  border: 1px solid var(--ts-accent);
  box-shadow: 0 0 0 3px rgba(212, 57, 17, 0.12);
}

/* ---- Підсумки в кошику ----------------------------------------------------
   Три рядки мали однаковий розмір і колір, тому головна сума губилася.      */
.total_cart_sum {
  color: var(--ts-muted);
  font-size: var(--ts-fs-base);
  font-weight: var(--ts-fw-regular);
}

.total_cart_sum span {
  color: var(--ts-text);
  font-weight: var(--ts-fw-semibold);
}

.total_cart_sum.is_total {
  color: var(--ts-graphite);
  font-size: var(--ts-fs-lg);
  font-weight: var(--ts-fw-semibold);
  margin-top: 6px;
}

.total_cart_sum.is_total span {
  color: var(--ts-graphite);
  font-size: var(--ts-fs-lg);
}

/* ---- Підсумки в кроці 4 ---------------------------------------------------- */
.basket_input_title {
  color: var(--ts-muted);
  font-size: var(--ts-fs-ui);
}

.basket_input .form_right {
  float: right;
  color: var(--ts-text);
  font-weight: var(--ts-fw-semibold);
}

.basket_input.is_total {
  border-top: 1px solid var(--ts-border);
  padding-top: 12px;
  margin-top: 14px;
}

.basket_input.is_total .basket_input_title {
  color: var(--ts-graphite);
  font-size: var(--ts-fs-md);
  font-weight: var(--ts-fw-semibold);
}

.basket_input.is_total .form_right {
  color: var(--ts-graphite);
  font-size: var(--ts-fs-lg);
  font-weight: var(--ts-fw-semibold);
}

/* ---- Головна кнопка -------------------------------------------------------- */
.confirm_order,
.favorite_btns .button_green {
  width: 100%;
  float: none;
  display: block;
  box-sizing: border-box;
  margin-top: 18px;
  padding: 14px 24px;
  font-size: var(--ts-fs-base);
  border-radius: var(--ts-radius-pill);
  background: var(--ts-accent);
  color: var(--ts-white);
}

.confirm_order:hover,
.favorite_btns .button_green:hover {
  background: var(--ts-accent-hover);
  color: var(--ts-white);
}

/* ---- Кошик ----------------------------------------------------------------- */
.basket_holder {
  background: var(--ts-surface-soft);
  border: 1px solid var(--ts-border);
  border-radius: 8px;
  padding: 6px 20px 20px 20px;
}

.basket_case tr {
  border-bottom: 1px solid var(--ts-border);
}

@media (max-width: 767px) {
  .order_block { padding: 16px; }
  .total_cart_sum.is_total span { font-size: var(--ts-fs-lg); }
  .basket_input.is_total .form_right { font-size: var(--ts-fs-md); }
}

/* ============================================================================
   ЗНИЖЕННЯ ЧЕРВОНОГО В ОФОРМЛЕННІ ЗАМОВЛЕННЯ
   ============================================================================ */

/* ---- Стрілка біля назви кроку була червона ------------------------------- */
.order_step .step_icon {
  opacity: 0.45;
  filter: grayscale(1);
}

/* ---- Видалення товару: сіре, червоніє лише під курсором ------------------ */
.basket_remove {
  color: var(--ts-danger-quiet);
  transition: .2s;
}

.basket_remove:hover {
  color: var(--ts-white);
  background: var(--ts-danger);
}

/* ---- Артикул і службові підписи в кошику --------------------------------- */
.basket_case .articul,
.basket_case small,
.basket_product_name_holder small {
  color: var(--ts-muted);
}

/* ---- Посилання на товар у кошику ----------------------------------------- */
.basket_case a {
  color: var(--ts-graphite);
}

.basket_case a:hover {
  color: var(--ts-accent);
}

/* ---- Наведення на службові кнопки ---------------------------------------- */
.order_page .login_button:hover,
#success_adding .light_button:hover {
  background: var(--ts-accent-hover);
}

/* ---- Рамки таблиць історії замовлень ------------------------------------- */
.orders_history tbody tr,
.order_confirm tbody tr:nth-child(even),
.order_confirm tbody tr:nth-child(2) {
  border-color: var(--ts-border);
}

/* ---- Дрібні червоні деталі в кошику -------------------------------------- */
/* Артикул під назвою товару та стрілки кількості лишалися акцентними,
   через що в кошику миготіло по три червоні цятки на рядок.                 */
.basket_product_info,
.basket_product_info span {
  color: var(--ts-muted);
}

.btn_plus,
.btn_minus {
  color: var(--ts-muted);
  transition: .2s;
}

.btn_plus:hover,
.btn_minus:hover {
  color: var(--ts-accent);
}

/* Підсумки в кошику: колір задає main.css, тут прибираємо старий акцент */
.total_cart_sum,
.total_cart_sum_cur {
  color: var(--ts-muted);
}

/* Межі таблиць історії замовлень були акцентними */
.orders_history tbody tr {
  border-bottom: 2px solid var(--ts-border);
}

.order_confirm tbody tr:nth-child(2) {
  border-top: 1px solid var(--ts-border);
}

.order_confirm tbody tr:nth-child(even) {
  border-bottom: 1px solid var(--ts-border);
}

/* Службові підписи */
.user_info_block p small,
.to_tab_delivery_newpost_courier,
.to_tab_delivery_courier {
  color: var(--ts-muted);
}

/* Повторюємо правила підсумків, бо вище їх перебив загальний .total_cart_sum */
.total_cart_sum.is_total {
  color: var(--ts-graphite);
  font-size: var(--ts-fs-lg);
  font-weight: var(--ts-fw-semibold);
}

.total_cart_sum.is_total span {
  color: var(--ts-graphite);
  font-size: var(--ts-fs-lg);
}

/* ============================================================================
   ОСОБИСТИЙ КАБІНЕТ
   ============================================================================ */

/* ---- Виправлення регресії ------------------------------------------------
   Правило width: 100% було задано разом для .confirm_order і
   .favorite_btns .button_green. Кнопці підтвердження замовлення це потрібно,
   а «перейти в каталог» у кабінеті перетворилася на смугу на всю ширину.  */
.favorite_btns .button_green,
.personal_btns .button_green,
.personal_btns input[type="submit"] {
  width: auto;
  float: none;
  display: inline-block;
  margin-top: 10px;
  padding: 12px 28px;
  font-size: var(--ts-fs-ui);
}

.favorite_btns,
.personal_btns {
  text-align: left;
  width: 100%;
  float: left;
  clear: both;
}

/* ---- Поля вводу: як в оформленні замовлення ------------------------------- */
.user_info_form textarea,
.user_info_form input[type="text"],
.user_info_form input[type="tel"],
.user_info_form input[type="email"],
.user_info_form input[type="password"] {
  border-radius: 8px !important;
  border: 1px solid var(--ts-border);
}

.user_info_form textarea:focus,
.user_info_form input:focus {
  border: 1px solid var(--ts-accent);
  box-shadow: 0 0 0 3px rgba(212, 57, 17, 0.12);
  outline: none;
}

.user_info_form .input label {
  color: var(--ts-muted);
  font-size: var(--ts-fs-sm);
  margin-bottom: 4px;
}

/* ---- Бічне меню кабінету -------------------------------------------------
   Активний пункт був суцільним теракотовим прямокутником і важив більше,
   ніж власне вміст сторінки. Спокійніший варіант: світла підкладка,
   насичений текст і смуга ліворуч.                                         */
.cabinet_menu .cabinet_menu_link:focus,
.cabinet_menu .cabinet_menu_link:hover,
.cabinet_menu .cabinet_menu_link.active {
  background: var(--ts-tint-accent);
  color: var(--ts-tint-accent-text);
  text-decoration: none;
}

.cabinet_menu .cabinet_menu_link.active::before,
.cabinet_menu .cabinet_menu_link:focus::before,
.cabinet_menu .cabinet_menu_link:hover::before {
  background: var(--ts-accent);
}

.cabinet_menu a.active i,
.cabinet_menu a:hover i,
.cabinet_menu a:focus i {
  filter: none;
  -webkit-filter: none;
}

/* ---- Блоки вмісту --------------------------------------------------------- */
.cabinet_tab {
  background: var(--ts-white);
  border: 1px solid var(--ts-border);
  border-radius: 8px;
}

.cabinet_tabs .c_title,
.c_tab_title {
  color: var(--ts-graphite);
  letter-spacing: 0.02em;
}

.user_info_block {
  padding-bottom: 6px;
}

/* ---- Історія замовлень ---------------------------------------------------- */
.orders_history th {
  text-align: left;
  padding: 12px 14px;
  font-size: var(--ts-fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ts-muted);
  font-weight: var(--ts-fw-semibold);
  border-bottom: 2px solid var(--ts-graphite);
}

.orders_history td {
  padding: 12px 14px;
}

/* ============================================================================
   ВИПРАВЛЕННЯ КНОПОК І МОБІЛЬНОЇ КОРЗИНИ
   ============================================================================ */

/* ---- Кнопки: накреслення і вертикальне вирівнювання -----------------------
   У базовому правилі стояло font-weight: 300, тобто Light. На теракотовому
   тлі тонкі літери читаються погано. Плюс line-height: 42px конфліктував
   з відступами, і текст з'їжджав донизу.                                    */
.confirm_order,
.favorite_btns .button_green,
.personal_btns .button_green,
.personal_btns input[type="submit"],
input[type="submit"].button_green,
a.button_green {
  font-weight: var(--ts-fw-semibold);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
}

.confirm_order {
  display: flex;
  font-size: var(--ts-fs-md);
  padding-top: 15px;
  padding-bottom: 15px;
}

.personal_btns input[type="submit"],
.personal_btns .button_green,
.favorite_btns .button_green {
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 44px;
}

/* ---- Мобільна корзина ----------------------------------------------------
   Підписи мали width: 50%, тож на екрані 360px на них лишалося близько
   150px: «Видалити з кошика:» ламалося на два рядки, назва товару — на
   чотири. Тепер підпис над значенням, кожен товар — окрема картка.        */
@media (max-width: 580px) {

  .basket_case tr {
    display: block;
    border: 1px solid var(--ts-border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
    background: var(--ts-white);
  }

  .basket_case tr td {
    padding: 6px 0;
  }

  .b_title {
    width: 100%;
    float: none;
    display: block;
    margin-bottom: 2px;
    font-size: var(--ts-fs-xs);
    color: var(--ts-muted);
    letter-spacing: 0.02em;
  }

  .basket_product_name_holder,
  .wrapper_amount,
  .basket_count {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .basket_product_name {
    line-height: 1.4;
  }

  .basket_case .cart-images {
    margin: 0 0 6px 0;
  }

  /* кількість і видалення в один рядок, щоб не розтягувати картку */
  .basket_case td:has(.wrapper_amount),
  .basket_case td:has(.basket_remove) {
    display: inline-block;
    width: auto !important;
    vertical-align: top;
    margin-right: 24px;
  }
}
