@import url(https://fonts.googleapis.com/css?family=Montserrat:100,300,400,500,600,700,900);
html{
  height: 100%;
  margin: 0;
}
body {
	height: 100%;
	margin: 0px;
	font-family: "Montserrat",Sans-serif;
	color: #252d5f;
	font-size: 14px;
  /*padding-top: 190px;*/
}
table,th,td,font,div,span,input,textarea{
  font-family: "Montserrat",Sans-serif;
  font-size: 14px;  
  color: #252d5f; 
}
ul,li{
  line-height: 24px;
  color: #252d5f;
  padding-left: 15px;   
}
h1,h2{
	font-weight: normal;	
	font-family: "Montserrat", Sans-serif;
	color: #252d5f;
	font-size: 14px !important;
  display: inline-block; 	
	padding: 0px;
	margin: 0px;
}
p{
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	line-height: 24px;
	letter-spacing: 0.2px;
	color: #252d5f;
}
a{ 
  color: #252d5f;
  font-size: 14px; 
  text-decoration: none;
}  
a:hover{     
  color: #e20613; 
}
/* ---------------------------------main------------------------------------- */
/*ok*/
.wrapper{
  position:relative;
  min-height:100%;
  padding-bottom: 315px;
}
/*ok*/
.clear{
  clear: both;
}
/*ok*/
.pointer{
  cursor: pointer
}
/*ok*/
.relative{
  position: relative
}
/*ok*/
.center{
  text-align: center;
}
/*ok*/
.right{
  text-align: right;
}
/*ok*/
.justify{
  text-align: justify;
}
/*ok*/
.width100{
  width: 100%;
}
/*ok*/
.margin-auto{
  margin: auto;
}
/*ok*/
.vertical-top{
  vertical-align: top;
}
/*ok*/
.nowrap{
  white-space: nowrap;  
}
/*ok*/
.container0{	
  padding: 10px;
}
/*ok*/
.container{
  width: 100%;
  max-width: 1570px;	
	margin-right: auto;
	margin-left: auto;  
}
/*ok*/
.container4{
  padding: 2%;
}

/*ok*/
.set-left{
  float: left;
  width: 48%;
  line-height: 32px; 
  padding-bottom: 12px;   
  text-align: right;
  font-size: 15px;
  font-weight: 700;        
}
/*ok*/
.set-center2{
  float: left;
  width: 4%;
  line-height: 32px;
  background-image: url('../img/round.png');
  background-repeat: no-repeat;
  background-position: center 14px;
}
/*ok*/
.set-right{
  float: left;
  width: 48%;
  padding-bottom: 12px;
  line-height: 32px;
}
/* ---------------------------------blocks----------------------------------- */
/*ok*/
.navbar{      
  z-index: 1030;
  display: none;
  background: #ffffff;
  position: fixed;
	top: 0;
	right: 0;
	left: 0; 
}
/*ok*/
.navbar-search{
  display: none;
  position: fixed;
  top: 75px;
  width: 100%; 
  z-index: 1000;
}
/*ok*/
.nav-link{
  display: block;
	padding: 10px 16px !important;
	color: #ffffff;
} 

/*ok*/
.dropdown-menu{
	position: absolute;	
	z-index: 1000;
	display: none;
	float: left;
	min-width: 10rem;	
	list-style: none;
	background-color: #ffffff !important;		
	left: 50% !important;
  right: auto !important;  
  transform: translate(-50%, 42px) !important;	
}
.dropdown-item{
	display: block;
	width: 100%;
	padding: 5px 16px 5px 16px;
	clear: both;
	font-weight: 400;
	color: #000000;
	white-space: nowrap;
}
.dropdown-item:hover/*,
.dropdown-item.active*/{
  color: #000000;
  background: #bdbdbd;  
}

/*ok*/
.block-left{
  float: left;
  width: 19.10%;
  max-width: 300px;
}
.block-center{
  float: left;
  width: 61.80%;  
  max-width: 970px;  
}
.block-right{
  float: left;  
  width: 19.10%;
  max-width: 300px;
}
.block-left img,
.block-right img{
  width: 100% !important;
  height: auto !important;
}

.logo-block{
  width: 25%;  
  float: left;
  height: 136px;  
  position: relative;
}

.logo{     
  width: 100%;
  max-width: 175px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
.mainmenu-block{
  width: 75%;
  float: left;
  height: 136px;
}
.mainmenu-block td{  
  padding: 0px;
}
.icon{
  height: 30px;
}
.notification-bell { position: relative; display: inline-block; }
.notification-bell .notification-badge { position: absolute; top: -4px; right: -8px; min-width: 17px; padding: 1px 4px; border-radius: 9px; background: #c71925; color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; white-space: nowrap; }
.header-mobile-actions .notification-bell { display: block; width: 30px; margin: 0 auto; }

/* Existing header controls: equal action gaps and room for translated labels. */
.header-desktop{
  display: flex;
}
.header-desktop .logo-block{
  height: auto;
  min-height: 136px;
}
.header-desktop .mainmenu-block{
  height: auto;
  min-height: 136px;
  padding: 0 12px 10px;
  min-width: 0;
}
.header-desktop form{
  margin: 0;
}
.header-desktop-table,
.header-desktop-table > tbody{
  display: block;
  width: 100%;
}
.header-languages,
.header-controls{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.header-languages{
  justify-content: space-between;
}
.header-languages > td,
.header-controls > td{
  display: block;
  min-width: 0;
}
.header-controls{
  flex-wrap: wrap;
}
.header-controls > .header-search{
  display: flex;
  flex: 2 1 180px;
}
.header-search .input-search{
  min-width: 0;
  width: 0;
  max-width: none;
  flex: 1 1 auto;
}
.header-search .btn-search{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  line-height: 1;
  font-size: 16px;
}
.header-controls > .header-actions{
  display: flex;
  flex: 1 1 215px;
  max-width: 270px;
  margin-left: auto;
  gap: 12px;
}
.header-actions > a{
  flex: 1 1 0;
  min-width: 0;
  line-height: 15px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.navbar.header-mobile{
  padding: 0;
}
.header-mobile .container0{
  width: 100%;
  padding: 6px 12px;
}
.header-mobile-table,
.header-mobile-actions{
  width: 100%;
  table-layout: fixed;
}
.header-mobile-table .header-brand{
  width: 96px;
  padding-right: 6px;
}
.header-mobile .navbar-brand{
  margin: 0;
  padding: 0;
}
.header-mobile .navbar-brand img{
  width: 90px;
}
.header-mobile-table .header-menu{
  width: 44px;
}
.header-menu .navbar-toggler{
  display: block;
  width: 100%;
  height: 30px;
  padding: 0;
}
.header-mobile-actions td{
  padding: 0 3px;
}
.header-mobile-actions .link4{
  display: block;
  line-height: 15px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.header-mobile-actions .icon{
  display: block;
  margin: 0 auto;
  max-width: 100%;
  object-fit: contain;
}
.header-mobile-actions br{
  display: none;
}
.navbar-search{
  padding: 0 12px;
}
.navbar-search > form > table{
  width: 100%;
  max-width: 400px;
  table-layout: fixed;
}
.navbar-search > form > table td:first-child{
  width: 60%;
}

/*ok*/
.banner-top{
  width: 100%;
  max-width: 970px;
}
.banner-top img{  
  width: 100% !important;
  height: auto !important;
}

.banner-content img{
  width: 100% !important;
  height: auto !important;
  /*max-width: 697px;*/
}

.banner-adview img{
  width: 100% !important;
  height: auto !important;
}

.content-left25{
  float: left;
  width: 25%;
  padding: 0px 5px 0px 5px;
}
.content-right75{   
  float: left;
  width: 75%;
  padding: 15px 15px 0px 15px;
}
/*ok*/
.content{
  padding: 0px 15px 0px 15px;
}
/*ok*/
.navline{  
  line-height: 30px;
  padding: 0px 15px 0px 15px;
  background: #ededed;
  border-top: solid 1px #bdbdbd;
  border-bottom: solid 1px #bdbdbd;  
}
/*ok*/
.navline a{
  color: #252d5e;
  font-weight: 600
}
/*ok*/
.navline .fa-chevron-right{
  padding: 0px 7px 0px 7px;
  color: #252d5e;
}

/*ok*/
.plans-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 5px;  
}
.plans-grid .cont{
  border: solid 1px #bdbdbd;
  border-radius: 8px;  
}
.plans-grid .cont-active{
  border: solid 1px #252d5e;
  border-radius: 8px; 
}
.plans-grid .cont2{
  padding: 10px;
}
.plans-grid .title{
  line-height: 40px;
  border-top-left-radius: 8px; 
  border-top-right-radius: 8px;
  color: #ffffff;
  text-align: center;
  background: #252d5e; 
  font-size: 18px;
  font-weight: 500;  
}
.grid-radio{
  border: solid 1px #bdbdbd;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  margin:auto;
  text-align: center;
  cursor: pointer;
  padding-top: 2px;
}
.grid-radio i{   
  font-size: 20px;
  color: #bdbdbd; 
}
.grid-radio-on{
  border: solid 1px #252d5e;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  margin:auto;
  text-align: center;
  cursor: pointer;
  padding-top: 2px;
}
.grid-radio-on i{
  font-size: 20px;
  color: #252d5e;
}


/*ok*/
.myads-table{
	display: table;
	width: 100%;	
}
.tr{
  display: table-row;
}
.tc{
	display:table-cell;
	vertical-align:top;
	padding: 10px;
	height: 150px;
}
.tc1,.tc3,.tc4{
  width: 1%
}
.tc1 img{
  width: 150px;
  height: 130px;
  background-size: cover;
  background-position: center;
}
.tc2 .title{
  overflow: hidden;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tc1, .tc2, .tc3, .tc4{     
  border-top: solid 2px #e8e8e8;
  border-bottom: solid 2px #e8e8e8;  
}
.tc3, 
.tc4{
  white-space: nowrap;
}

.tc4 .action,
.ads .action{
  display: block;  
  font-size: 13px;
  font-weight: 500;   
  white-space: nowrap;
  margin-bottom: 5px;
}
.tc4 .action i,
.ads .action i{
  width: 20px;
  color: #252d5e;
} 
/*end*/

/*ok*/
.tbl{
  margin:auto;    
}
.tbl td{
  padding-bottom: 12px;
}
.ll{    
  line-height: 32px;
  text-align: right;  
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.lc{  
  width: 20px;  
}
.lc-round{  
  line-height: 32px;
  background-image: url('../img/round.png');
  background-repeat: no-repeat;
  background-position: center 14px;
}
.lr{
  line-height: 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/*ok*/
.reg-login{
  display: table-row;
}
.reg-tr{
  display: none;
}
.reg-business{
  display: none;
}

.filter-title{
  background: #252d5e;
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
  padding: 1px;
  font-weight: 600;
}

/*ok*/
.contacts1{
  width: 40%;
  padding: 2%; 
}
.contacts2{
  width: 5%;
}
.contacts3{
  width: 55%;
  padding: 2%;
}

/*ok*/
.remindpsw1{
  width: 45%;
  padding: 2%;
}
.remindpsw2{
  width: 10%;
}
.remindpsw3{
  width: 45%;
  padding: 2%;
}

/*ok*/
.changeemail1{
  width: 48%;
  padding: 2%;
}
.changeemail2{
  width: 4%;
}
.changeemail3{
  width: 48%;
  padding: 2%;
}

/*ok*/
ul.tree{
  list-style-type: none;
  margin: 0px;
  padding-left: 0px;
  user-select: none;
}                
ul.tree{
  padding-left: 0;
}
.tree > li{
  padding: 0px;
}
ul.tree li{
  margin: 6px 0;
  position: relative;
}
ul.tree li li{
  padding-left: 15px; 
}        
.menu-label{
  cursor: pointer;
  padding: 2px 4px;            
  font-weight: 600;
}
.menu-label:hover{
  background-color: #f0f0f0;
}
.menu-toggle{
  cursor: pointer;
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  border-radius: 3px;
  border: solid 1px #252d5e; 
  transition: transform 0.2s ease;
}        
li.has-children > ul.tree{
  display: none;
}        
li.has-children.open > .menu-toggle{
  background-color: #252d5e
}        
li.has-children.open > ul.tree{
  display: block;
}

/*

.set-all{
  padding: 2%;
}

.account1{
  
}
.account2{
  padding-top: 30px;
}

.order1{  
}
.order2{
}
.ordertotals{
  width: 100%;
}
.ordertotals .col1{
  padding-bottom: 20px;
}
.ordertotals .col2{
  text-align: right;
  padding-bottom: 20px;
}

.categories{ 
  width: 100%;     
  float: left;
  padding-bottom: 40px;   
}
.categories-img{
  width: 100%;
}
.category-list{
  width: 100%;  
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e1e1e1;  
}
*/

/*ok*/
.ads-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 30px;
}  
.ads-grid .cont{  
  position: relative;  
}
.ads-grid img{  
  width: 100%;
}
.ads-grid .bold{
  border: solid 3px #ffd562
}
.ads-grid .price{
  position: absolute;
  bottom: 35px;
  right: -5px;
  z-index: 100;
  background: #f6f6f6;
  border: 1px solid #dfdfdf;
  padding: 4px;
  font-size: 11px;
  color: #4a95ce;
}
.ads-grid .title{
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;     
}

/*ok*/
.ads-list td{ 
  vertical-align: top;
  padding: 8px;
  border-top: solid 2px #e8e8e8; 
  border-bottom: solid 2px #e8e8e8;
}
.ads-list .img-block{
  width: 1%;
  padding: 8px;
}
.ads-list .img-block img{
  width: 150px;
}
.ads-list .info{
  width: 60%;
  position: relative;
}
.ads-list .stats{
  position: absolute;
  bottom: 5px;    
}
.ads-list .action{
}
.ads .action i{
  width: 20px;
} 


/*ok*/
.adview1{
  width: 68%;  
  float: left;
  padding-right: 28px;
}
/*ok*/
.adview2{
  width: 32%;  
  float: left;
}
.adview-msg{
  line-height: 36px;  
  border-radius: 4px;
  text-align: center;
  cursor: pointer;    
}
.adview-phone{
  line-height: 36px;  
  border-radius: 4px;
  text-align: center;
  background: #f5f5f5;    
  background-image: url('../img/phone.jpg') ;
  background-repeat: no-repeat;
  background-position: 17px center;  
}
.adview-sellerads{
  line-height: 36px;  
  border-radius: 4px;
  text-align: center;
  background: #f5f5f5;
}
.adview-profile{
  border-radius: 4px;
  padding: 15px;
}
.adview-profile1{
  display: block; 
  float: left; 
  width: 35%;
}
.adview-profile2{
  display: block; 
  float: left; 
  width: 65%;
}
.adview-logo{
  width: 80px; 
  height: 80px; 
  border: 1px solid #252d5e;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;  
}

/*ok*/
.gallery-left{
  width: 58%;
  background-size: cover;
  background-position: center;
}
.gallery-right{
  width: 42%;
}  
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-left: 10px;
  overflow: hidden;
}  
.gallery-grid .item{
  height: 100px;
  background-size: cover;
  background-position: center;
}  
.gallery-item{
  width: 100%;
}
.gallery-seeall{
  position: absolute;
  left: 10px;
  bottom: 0px;
  width: 100%;
  line-height: 30px;
  opacity: 0.9;
  background: #aeaac1;   
  font-weight: 600
}



.ad{   
  /*width: 80%;*/
}

.msgbar{
  padding: 8px 15px 8px 15px;
  border-radius: 12px;
  background: #ffd562;  
}

/*
nebereikia
.modal-categories{
  height: 100%;
  max-height: 300px;
  overflow-y: scroll;
}*/

.records{  
  width: 100%;
  border-collapse: collapse;    
}
.records tr:hover{
  background: #f2f1f1;
}
.records th{
  padding: 10px;
  border: 1px #bebebe solid;
  background: #dbeff1;
  color: #333333;
  font-weight: 500;
  letter-spacing: 1px;
}
/*
.records th a{
  color: #ffffff;
  text-decoration: none;
}
.records th a:hover{
  text-decoration: underline !important;
}
*/
/*
.records td{
  background: #ffffff;
  border: 1px #bebebe solid;
  color: #4E4848;
  padding: 7px; 
  vertical-align: middle;
}
.records td img{    
  width: 100%;
  max-width: 200px;
}
.records td a{
  color: #993939; 
  font-weight: bold;
  text-decoration: none;
  padding: 0 5px 0 5px;
}
.records td a:hover{   
  text-decoration: underline;
}

.records2{
  margin: auto;
}
.records2 td{
  padding: 0px;
  margin: 0px;
}
*/
.paging a{  
  display: inline-block;
  border: 1px solid #b1b1b1;
  height: 34px;
  line-height: 34px;
  padding: 0px 10px 0px 10px;
  background: #ffffff;
  color: #252525;
  font-weight: 600;
  text-align: center;   
}
.paging a:hover{
  background: #bdbdbd;
}
.paging a:first-child{
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.paging a:last-child{
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
/*
.paging a:hover,
.paging .active{
  border: 1px solid #993939;     
}
*/
/* ---------------------------------fonts------------------------------------ */
/*ok*/
.font{
  font-size: 16px;
  font-weight: 600; 
  text-transform: uppercase;
}
/*ok*/
.font2{
  font-size: 16px;
  font-weight: 600;
}
/*ok*/
.font3{
  font-size: 15px;
  font-weight: 700; 
}
/*ok*/
.font4{
  font-weight: 600;
}
/*ok*/
.font6{
  color: #898787;
}
/*ok*/
.font7{
  font-size: 13px;
  color: #666666;
}
/*ok*/
.font8{
  color: #ffffff;
  font-weight: 500;
}
/*ok*/
.font9{
  font-size: 13px;
}
/*ok*/
.font12{
  color: #e20613;
}

/* ---------------------------------links------------------------------------ */
.link{
  color: #ffffff;
  font-size: 17px;
}
/*
.link2{
  color: #e20613;
}*/

/*
tikrinti ar dar reikia
.link3{
  font-weight: 600; border: solid 1px red; padding-left: 10px;
}
*/
.link4{
  font-size: 13px;
  font-weight: 600;
}
.link5{
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  padding-left: 10px;
}
.link5:hover,
.link5-on{
  font-size: 15px;
  font-weight: 700;
  color: #ffd562;
  padding-left: 10px;
}
.link6{
  color: #e20613;
  font-weight: 600;
}
/*ok*/
.link7{
  display: block;  
  width: 100%;
  line-height: 30px;
  border-radius: 8px;
  background: #252d5e;
  color: #ffffff !important;
  font-weight: 500;    
  padding: 0px 15px 0px 15px;
  margin-bottom: 5px;  
  text-align: center; 
}
.link-follow{
  display: block;
  line-height: 36px;
  border-radius: 4px; 
  background: #252d5e;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;  
}
.link-follow:hover{
  color: #ffffff;
  background: #e20613;
}
/*ok*/
.link-order{
  display: inline-block;
  line-height: 40px;
  background: #fca00f;
  border-radius: 8px;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0px 15px 0px 15px;
}


/*ok*/
.category-link{
  display: block;
  padding: 7px 3px 7px 45px;  
  margin-bottom: 10px;
  font-weight: 700;
}
.category-link:hover{
  color: #252d5f;
  background-color: #ffd562 !important;
}

/*
gal nebereiks
.category-link2{
  display: block;
  padding: 7px 3px 7px 30px;
  background: no-repeat 5px center;
  background-size: 20px;
  border: solid 1px #e8e8e8;
  border-top-width: 0px; 
  font-size: 12px; background: red
}
.category-link2:hover{
  color: #000;
  background-color: #ffd562 !important;
}
.category-link2:first-child{
  border-top: solid 1px #e8e8e8;
}
*/

/*
gal nebreiks

.category-link3{
  display: block;
  padding: 7px 3px 7px 10px;  
  border: solid 1px #e8e8e8;
  border-top-width: 0px; 
  font-size: 12px;
}
.category-link3:hover{
  color: #000;
  background-color: #ffd562 !important;
}
.category-link3:first-child{
  border-top: solid 1px #e8e8e8;
}
*/

/*
.catlist{
  display: inline-flex;
  align-items: center;
  cursor: pointer;

}
.catlist span{
  font-weight: 600;
  padding-left: 10px;
}
*/
/* ---------------------------------backgrounds------------------------------ */
.bg{
  background: #252d5f;
}
/*ok*/
.bg2{
  background: #c8cad7;
}
/*ok*/
.bg3{
  opacity: 0.5;
}
/*ok*/
.bg4{
  background: #ffd562;
}
/*ok*/
.bg6{
  background: #f5f5f5;
}
/* ---------------------------------borders---------------------------------- */
/*ok*/
.border{  
  border: solid 1px #bdbdbd;
}
/*ok*/
.border2{
  border-bottom: solid 2px #bdbdbd;
}  
/* ---------------------------------forms------------------------------------ */
/*ok*/
.input{
  width: 100%;  
  height: 32px;
  padding: 0px 10px 0px 10px;
  border: solid 1px #adadad;   
  border-radius: 6px;
  outline: none;
}
/*ok*/
.input-search{
  width: 100%;
  max-width: 250px;  
  height: 42px;
  border: 1px solid #ffffff;   
  padding: 0px 10px 0px 10px;
  outline: none;      
}
/*ok*/
.input-search2{
  width: 100%;
  max-width: 250px;  
  height: 36px;
  border: 1px solid #ffffff;   
  padding: 0px 10px 0px 10px;
  outline: none;      
}
/*ok*/
.btn{
  height: 32px;  
  border: solid 1px #252d5e;
  padding: 0px 65px 0px 65px;
  background: #252d5e;
  color: #ffffff; 
  font-weight: 700; 
  cursor: pointer;
  height: 32px;
}
/*ok*/
.btn-search{  
  line-height: 40px;
  background: #252d5f;
  border: solid 1px #ffffff;
  color: #ffffff;
  font-weight: 700; 
  padding: 0px 7px 0px 7px;
  cursor: pointer;
}
/*ok*/
.btn-search2{  
  width: 100%;
  line-height: 34px;
  background: #252d5f;
  border: solid 1px #ffffff;
  color: #ffffff;
  font-weight: 700; 
  padding: 0px 7px 0px 7px;
  cursor: pointer;
}
/*ok*/
.btn-createad{
  display: inline-block;
  line-height: 40px;  
  background: #ffd562;
  border: solid 1px #c6a961;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 0px 7px 0px 7px;
}
/*ok*/
.btn-createad2{
  display: none;
  width: 100%;
  max-width: 200px; 
  line-height: 36px;  
  background: #ffd562;
  border: solid 1px #c6a961;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 0px 7px 0px 7px;
  margin: 20px 0px 20px 0px;
}
/*ok*/
.btn-login{
  display: inline-block;
  line-height: 40px;
  background: #252d5e;
  border: solid 1px #ffffff;
  color: #ffd562;
  font-weight: 700; 
  padding: 0px 42px 0px 7px;
  background-image: url('../img/login.png');
  background-repeat: no-repeat;
  background-position: calc(100% - 7px) center;
  background-size: auto 30px;
  cursor: pointer; 
}
/*ok*/
.btn-account{
  display: inline-block;
  width: 94px;
  height: 42px;
  background: #252d5e;
  border: solid 1px #ffffff;     
  background-image: url('../img/account.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 34px;  
  cursor: pointer;
}
/*ok*/
.textarea{
  width: 100%;
  height: 150px;
  padding: 10px;
  border: 1px solid #adadad;  
  outline: none;  
}
/*ok*/
.select{
  width: 100%;
  height: 32px;
  padding: 0px 10px 0px 10px;
  border: 1px solid #adadad;   
  border-radius: 6px;
}
/*ok*/
.select2{
  background: #ffffff url('../img/dropdown.jpg') no-repeat center right;
  cursor: pointer;
}
/*ok*/
.input_disabled{
  width: 100%;
  height: 32px;
  padding: 0px 10px 0px 10px;
  background: #f1f1f1;
  border: 1px solid #adadad;
  color: #252525; 
  font-size: 13px;
  border-radius: 6px;
  outline: none;  
}
/* ---------------------------------spacers---------------------------------- */
/*ok*/
.spacer5{ 
  height: 5px;
}
/*ok*/
.spacer10{ 
  height: 10px;
}
/*ok*/
.spacer15{ 
  height: 15px;
}
/*ok*/
.spacer27{ 
  height: 27px;
}
/*ok*/
.spacer30{
  height: 30px;
}
/*ok*/
.spacer34{
  height: 34px;
}
/* ---------------------------------footer----------------------------------- */
/*ok*/
.footer{
	position: absolute;
	bottom: 0px;
	width: 100%;		
}
.footer-container{
  width: 100%;
  max-width: 970px;
  height: 240px;
  margin: auto;
  padding: 25px 3% 15px 3%;  
}
.bottom-menu{
  padding-bottom: 5px;
}
.bottom-menu a{  
  padding: 0px 15px 0px 15px;
}
.bottom-menu a:hover{
  text-decoration: underline;
}
.social .reklama123{
  height: 51px;
  padding-right: 30px;
}
.social .img{
  height: 32px;
  padding: 0px 5px 0px 5px;
  vertical-align: bottom;
}
/* ---------------------------------other------------------------------------ */
/*ok*/
#messenger_icon{
  position: fixed;
  z-index: 1500;
  bottom: 15px;
  right: 15px;   
  cursor: pointer;
}
#messenger_icon img{
  width: 54px;
}
#messenger_block{
  position: fixed;
  z-index: 1500;
  bottom: 15px;
  right: 15px;
  width: 100%;
  max-width: 400px;
  height: 90%;
  max-height: 500px;
  display: none;
}
#messenger_block iframe{
  height: 100%;
  width: 100%;
  overflow: hidden;
  border: 0px;
}

/*ok*/
.ac{
  bottom: 20px;
  left: 20px;
  background: #ffffff;
  z-index: 999999;
  opacity: 1;
  position: fixed;
  padding: 15px;
  width: 300px;
  overflow: hidden;
  font-size: 13px;
  font-weight: normal;
  text-align: left;
  color: #000000;        
  box-shadow: rgb(0, 0, 0) 0px 0px 8px;
  border-radius: 5px;
  text-align: justify;          
}
.ac_accept{
  border-radius: 5px; 
  border: 0px; 
  padding: 6px 30px; 
  font-weight: bold; 
  cursor: pointer;    
  transition: all 0.25s ease 0s;
  text-shadow: rgb(0, 0, 0) 0px 0px 2px; 
  background: #252d5e; 
  color: #fdfafa; 
  display: inline-block;
  text-decoration: none;
}
.ac_accept:hover{
  color: #ffffff;
  background: #e20613;
}
/* ---------------------------------media------------------------------------ */
@media (max-width:1200px) {
  /*ok*/
  .container{
    padding-right: 15px;
	  padding-left: 15px;
  }  
  /*ok*/
  .block-left{
    display: none;
  }
  /*ok*/
  .block-center{
    min-width: 100%;
    width: 100%;
  }
  /*ok*/
  .block-right{
    display: none;
  } 
  /*ok*/
  .banner-top{
    min-width: 100%;
  }
}

@media (max-width:991.98px) {
  /*ok*/
  body{
    padding-top: 164px;
  }
  /*ok*/
  .content{
    padding: 0px;
  }   
  /*ok*/
  .navbar{
    display: block;
  }
  /*ok*/
  .navbar-search{
    display: block;
  }          
  .logo-block{
    display: none;
  }
  .mainmenu-block{
    display: none;
  }
  /*ok*/
  .btn-createad2{
    display: inline-block;
  }
  .content-left25{
    width: 100%;
  }
  .content-right75{
    width: 100%;
  }
  .banner-content{
    display: none;
  }
  /*ok*/
  .tc1,.tc2,.tc3,.tc4{
    display: block; 
    float: left;
    width: 50%;
  }
  .tc1 img{
    width: 100%;    
  }  
  .tc1,.tc2{
    border-bottom-width: 0px;    
  }
  
  
  .link5,
  .link5-on,
  .link5:hover,
  .link5-on:hover{
    padding: 0px 5px 0px 5px;
  }
  
  /*ok*/
  .adview1{
    width: 100%;  
    padding-right: 0px;
  }
  .adview2{
    width: 100%;
    padding-top: 50px;    
  }    
  /*ok*/
  .category-link{
    width: 33.3%;
    height: 50px;
    float: left;     
  }      
}

@media (max-width:768px) {  
  /*ok*/
  .category-link{
    width: 50%;
  }
  /*ok*/
  .contacts1, .contacts2, .contacts3{
    display: block;
    float: left;
    width: 100%;   
  }
  /*ok*/
  .remindpsw1, .remindpsw2, .remindpsw3{
    display: block;
    width: 100%;   
  }
  /*ok*/
  .changeemail1, .changeemail2, .changeemail3{
    display: block;
    float: left;
    width: 100%;   
  }
}

@media (max-width:576px){
  .header-mobile-actions .link4{
    font-size: 11px;
  }
  /*ok*/
  #messenger_block{
    left: 0px;
    max-width: 100%;
    padding: 0px 10px 0px 10px;    
  }
  /*ok*/
  .ads-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}



/*
@media (max-width:480px){
  
}

@media only screen
and (min-width : 320px)
and (max-width : 480px) {
  
}
*/
/*
@media (max-width:991px){        
  .mainmenu a{
    padding: 0px 10px 0px 10px;
    font-size: 11px;
  }
}


@media (max-width:768px){
  body{
    padding-top: 100px;
  }                          
}


@media (max-width:660px){      
  .container{
    padding-right: 4px;
    padding-left: 4px;
  }  
  .langblock{
    border-width: 0px;
  }      
  .order1{             
    padding: 30px 0px 20px 0px;
  }
  .order2{     
  }  
          
  .set-all{
    display: block;
    float: left;
    width: 100%;
    padding-top: 5%;
  }  
  .set-left, .set-center, .set-right{
    display: block;
    float: left;
    width: 100%;   
  }
        
  .category1, .category2{ 
    width: 100%;     
    float: left;
    padding: 0px 0px 40px 0px;   
  }            
  .records th{
    padding: 3px;
    font-size: 10px;
  }
  .records td{
    padding: 3px;
    font-size: 10px;
  }
  .records td a{    
    padding: 0px;
    font-weight: normal;
  }
  .records td a i{
    font-size: 12px;
  }    
  .orderprices td,
  .orderprices td b,
  .orderprices td span{
    font-size: 12px;
    padding: 5px !important;
  }        
}
@media (max-width:480px){
  .records th,
  .records td{
    padding: 1px;
    font-size: 9px;    
  }  
}  
@media only screen
and (min-width : 320px)
and (max-width : 480px) {                        
}
*/


/* Stage 2: ad creation/editing only; do not change catalogue/account layouts. */
.ad-editor { max-width: 100%; min-width: 0; }
.ad-editor .ad-form-row::after { content: ""; display: block; clear: both; }
.ad-editor .set-left, .ad-editor .set-right { overflow-wrap: anywhere; min-width: 0; }
.ad-editor .ad-category-open { border: 0; background: transparent; cursor: pointer; white-space: normal; }
.ad-editor #ad-fields-section { clear: both; padding: 16px 0; }
.ad-editor #ad-fields-title { display: block; font-weight: 700; margin-bottom: 16px; }
.ad-editor .ad-field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.ad-editor .ad-field > label, .ad-editor .ad-field legend { display: block; font-size: 15px; font-weight: 700; width: 100%; margin: 0 0 6px; overflow-wrap: anywhere; }
.ad-editor .ad-field input[type="text"], .ad-editor .ad-field select { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.ad-editor .ad-field label.ad-field-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px; margin: 0; font-weight: 400; cursor: pointer; line-height: 1.4; }
.ad-editor .ad-field-choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.ad-editor .ad-field-choice span { min-width: 0; overflow-wrap: anywhere; }
.ad-editor .ad-field-error, .ad-category-modal .ad-field-error { color: #ac1833; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.ad-editor .ad-field-error:not(:empty) { padding: 6px 0; }
.ad-editor [aria-invalid="true"] { outline: 2px solid #ac1833; outline-offset: 1px; }
.ad-category-modal .modal-content { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.ad-category-modal .modal-header { flex-shrink: 0; }
.ad-category-modal .modal-body { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.ad-category-modal .ad-category-level { margin-bottom: 16px; }
.ad-category-modal .ad-category-level label { display: block; overflow-wrap: anywhere; }
.ad-category-modal select { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }
.ad-category-modal .close { min-width: 44px; min-height: 44px; }

@media (max-width: 660px) {
  .ad-editor { width: 100%; padding: 12px 0; box-sizing: border-box; }
  .ad-editor #frm_ad { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

  /* Each label sits above its control; no desktop floats or spacer column. */
  .ad-editor #frm_ad .ad-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 18px;
  }
  .ad-editor #frm_ad .ad-form-row::after { content: none; }
  .ad-editor #frm_ad .set-left, .ad-editor #frm_ad .set-right {
    display: block;
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
    line-height: 1.5;
    box-sizing: border-box;
  }
  .ad-editor #frm_ad .set-center2 { display: none; }
  .ad-editor #frm_ad .input, .ad-editor #frm_ad .select, .ad-editor #frm_ad .textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 16px;
  }
  .ad-editor #frm_ad .textarea { min-height: 140px; resize: vertical; }

  /* Keep the full category path separate from the change-category action. */
  .ad-editor #frm_ad #category-label {
    display: block;
    width: 100%;
    line-height: 1.5;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .ad-editor #frm_ad .ad-category-open {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid currentColor;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: left;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ad-editor #frm_ad #ad-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    min-width: 0;
  }
  .ad-editor #frm_ad #ad-fields .ad-field {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-inline-size: 0;
    margin: 0;
    box-sizing: border-box;
  }
  /* One option per row; the entire label is a generous native click target. */
  .ad-editor #frm_ad #ad-fields .ad-field-choice {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px;
    margin: 0;
    box-sizing: border-box;
    line-height: 1.4;
    white-space: normal;
  }
  .ad-editor #frm_ad #ad-fields .ad-field-choice + .ad-field-choice { margin-top: 8px; }
  .ad-editor #frm_ad #ad-fields .ad-field-choice input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
  }
  .ad-editor #frm_ad #ad-fields .ad-field-choice span { min-width: 0; overflow-wrap: anywhere; }
  .ad-editor #frm_ad .ad-field-error { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }

  /* Compact empty upload area; long instructions and photo previews can grow. */
  .ad-editor #frm_ad .image-uploader { width: 100%; max-width: 100%; min-height: 112px; box-sizing: border-box; }
  .ad-editor #frm_ad .image-uploader.has-files { min-height: 0; }
  .ad-editor #frm_ad .image-uploader:not(.has-files) .uploaded { padding: 0; }
  .ad-editor #frm_ad .image-uploader:not(.has-files) .upload-text {
    position: static;
    min-height: 110px;
    padding: 12px;
    box-sizing: border-box;
  }
  .ad-editor #frm_ad .image-uploader .upload-text i { font-size: 28px; margin-bottom: 6px; }
  .ad-editor #frm_ad .image-uploader .upload-text span { padding: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
  .ad-editor .image-uploader .uploaded .uploaded-image .delete-image { display: block; min-width: 44px; min-height: 44px; }
  .ad-editor #frm_ad .btn {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 48px;
    padding: 12px 16px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.4;
    white-space: normal;
  }

  .ad-category-modal .modal-dialog { width: calc(100% - 16px); max-width: calc(100% - 16px); margin: 8px auto; }
  .ad-category-modal .modal-content { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .ad-category-modal .modal-body { padding: 12px; }
  .ad-category-modal select { font-size: 16px; }
}

/* Stage 3: catalog only; the ad form and ad view keep their own layout. */
.catalog-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2%; width: 100%; min-width: 0; }
.catalog-panel { flex: 0 0 23%; min-width: 0; }
.catalog-results { flex: 1 1 75%; min-width: 0; }
.catalog-field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.catalog-field legend { width: 100%; font-size: 16px; font-weight: 600; margin-bottom: 8px; overflow-wrap: anywhere; }
.catalog-field input:not([type="checkbox"]), .catalog-field select { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 8px; border: 1px solid #aaa; border-radius: 3px; background: #fff; color: #222; }
.catalog-field label { margin: 0; }
.catalog-check { display: flex; align-items: flex-start; gap: 8px; padding: 10px 4px; min-height: 44px; cursor: pointer; min-width: 0; }
.catalog-check input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; }
.catalog-check span { min-width: 0; word-break: normal; overflow-wrap: normal; white-space: normal; hyphens: none; line-height: 22px; }
.catalog-options { max-height: 220px; overflow-y: auto; background: #f5f5f5; }
.catalog-price-fields { display: flex; gap: 8px; }
.catalog-cars-field .catalog-range-fields { display: flex; gap: 8px; }
.catalog-cars-field .catalog-range-fields > label { flex: 1 1 0; min-width: 0; }
.catalog-price-fields > label { flex: 1; min-width: 0; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.catalog-actions button, .catalog-actions a, .catalog-open, .catalog-close, .catalog-more { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid #252d5e; border-radius: 3px; background: #fff; color: #252d5e; white-space: normal; text-align: center; cursor: pointer; }
.catalog-actions button, .catalog-open { background: #252d5e; color: white; }
.catalog-open, .catalog-close { display: none; }
.catalog-tree { list-style: none; padding: 0; margin: 0; }
.catalog-tree > li { padding: 0; margin: 0; }
.catalog-tree > .catalog-more-row { padding: 6px 0; }
.catalog-more { width: 100%; box-sizing: border-box; gap: 8px; background: #fff4cd; border-color: #d9c278; font-weight: 600; }
.catalog-more::after { content: '↓'; font-size: 18px; }
.catalog-more:hover { background: #ffe7a3; }
.catalog-branch-status { display: block; overflow-wrap: anywhere; }
.catalog-category-row { display: flex; align-items: flex-start; min-width: 0; border-radius: 6px; }
.catalog-category-row .catalog-check { flex: 1; }
.catalog-category-row:hover, .catalog-selected .catalog-check:hover { background: #f1f4fa; }
.catalog-category-row:has(> .catalog-check > input:checked), .catalog-selected .catalog-check:has(> input:checked) { background: #fff5d7; color: #252d5e; font-weight: 600; }
.catalog-category-row input[type="checkbox"], .catalog-selected input[type="checkbox"] { accent-color: #252d5e; }
.catalog-expand, .catalog-category-link { flex: 0 0 44px; min-height: 44px; border: 0; background: transparent; color: #252d5e; text-align: center; line-height: 44px; font-size: 22px; cursor: pointer; padding: 0; }
.catalog-expand { box-sizing: border-box; margin: 2px 0 2px 4px; border: 1px solid #cbd2e4; border-radius: 6px; background: #edf1f9; font-weight: 600; }
.catalog-expand:hover, .catalog-expand[aria-expanded="true"] { background: #fff0be; border-color: #d9c278; }
.catalog-expand:focus-visible, .catalog-more:focus-visible { outline: 2px solid #252d5e; outline-offset: 2px; }
.catalog-branch { border-left: 2px solid #dce1ed; margin-left: 4px; padding-left: 6px; }
/* Keep each depth visible without consuming the narrow tablet sidebar. */
.catalog-branch .catalog-branch { margin-left: 0; padding-left: 4px; }
.catalog-branch[hidden] { display: none; }
.catalog-level { min-width: 0; max-width: 100%; }
.catalog-category-search { display: none; padding: 6px 0 8px; }
.catalog-layout.is-enhanced .catalog-category-search { display: block; }
.catalog-field input.catalog-category-search-input { padding-left: 36px; border-color: #cbd2e4; border-radius: 6px; background: #fff url('../img/search.png') no-repeat 10px center; background-size: 18px; }
.catalog-field input.catalog-category-search-input:focus { border-color: #252d5e; outline: 2px solid #ffe7a3; outline-offset: 1px; }
.catalog-tree > [hidden], .catalog-level > [hidden] { display: none; }
.catalog-category-empty { margin: 8px 0; color: #565d75; overflow-wrap: anywhere; }
.catalog-selected { margin-bottom: 12px; background: #f5f5f5; padding: 4px; overflow-wrap: anywhere; }
.catalog-selected strong { display: block; padding: 4px; }
.catalog-status, .catalog-empty { overflow-wrap: anywhere; }
.catalog-status:empty { display: none; }
.catalog-layout [aria-busy="true"] { opacity: .65; }
.catalog-ads { width: 100%; }
.catalog-ads .img-block { width: 1%; }
.catalog-ads .img-block img { width: 150px; height: auto; }
.catalog-ads .info { width: 40%; overflow-wrap: anywhere; }
.catalog-ads .stats { position: static; margin-top: 10px; font-size: 12px; }
.catalog-ads .catalog-date, .catalog-ads .catalog-price { white-space: nowrap; }
.catalog-page .navline, .catalog-breadcrumbs { white-space: normal; overflow-wrap: anywhere; }
.catalog-results .paging { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin-top: 20px; }
.catalog-results .paging a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; }
.catalog-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .catalog-layout { display: block; }
  .catalog-panel, .catalog-results { width: 100%; }
  .catalog-layout.is-enhanced .catalog-open { display: inline-flex; margin-bottom: 12px; }
  .catalog-layout.is-enhanced .catalog-panel { display: none; }
  .catalog-layout.is-enhanced.filters-open .catalog-panel { display: block; max-height: 75vh; max-height: 75dvh; overflow-y: auto; border: 1px solid #ddd; padding: 12px; margin-bottom: 16px; box-sizing: border-box; }
  .catalog-layout.is-enhanced .catalog-close { display: flex; margin: 0 0 12px auto; }
  .catalog-field input:not([type="checkbox"]), .catalog-field select { font-size: 16px; }
  .catalog-actions { position: sticky; bottom: 0; padding: 10px 0; background: white; margin-bottom: 0; }
  .catalog-actions > * { flex: 1; }
  .catalog-ads, .catalog-ads tbody { display: block; width: 100%; }
  .catalog-ads tr { display: grid; grid-template-columns: minmax(0, 90px) minmax(0, 1fr); gap: 6px 12px; padding: 12px 0; border-bottom: 2px solid #e8e8e8; }
  .catalog-ads td { display: block; border: 0; padding: 0; min-width: 0; }
  .catalog-ads .img-block { grid-column: 1; grid-row: 1 / span 3; width: auto; padding: 0; }
  .catalog-ads .img-block img { width: 100%; }
  .catalog-ads .info, .catalog-ads .catalog-date, .catalog-ads .catalog-price { grid-column: 2; width: auto; white-space: normal; overflow-wrap: anywhere; }
  .catalog-ad-title { display: block; min-height: 44px; }
  .catalog-ads .stats { margin-top: 6px; }
  .catalog-ads .catalog-date { font-size: 12px; }
  .catalog-ads .catalog-price { font-weight: 600; }
}

/* LIVE visual polish: contain public layouts; keep routes, forms and controls intact. */
/* Let translated footer content determine its height, without covering page content. */
.wrapper { display: flex; flex-direction: column; padding-bottom: 0; }
.wrapper > .container { display: flow-root; flex-shrink: 0; }
.wrapper > .footer { position: static; order: 1; margin-top: auto; }
.footer-container { height: auto; min-height: 240px; }
.footer .bottom-menu, .footer .copyright { overflow-wrap: anywhere; }
.footer .bottom-menu a { display: inline-block; max-width: 100%; }
.footer .social { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; }
.footer .social a { max-width: 100%; }
.footer .social .reklama123 { max-width: 100%; object-fit: contain; }

/* Home cards and catalog thumbnails must not inherit a portrait photo's full height. */
.content-left25 .category-link { overflow-wrap: anywhere; }
.content-right75 .ads-grid .cont { min-width: 0; }
.content-right75 .ads-grid img, .catalog-ads .img-block img { aspect-ratio: 4 / 3; object-fit: contain; }

/* My ads uses the same legacy actions; only cell sizing and text wrapping change. */
.myads-table .tc2 { overflow-wrap: anywhere; }
.myads-table .tc3, .myads-table .tc4 { width: 20%; white-space: normal; overflow-wrap: anywhere; }
.myads-table .action { white-space: normal; overflow-wrap: anywhere; }

/* Keep wishlist action words whole; outrank the later template wrapping rule. */
.wishlist-ads .wishlist-delete .action { word-break: normal; overflow-wrap: normal; white-space: normal; hyphens: none; }

@media (max-width: 991.98px) {
  /* A long signed-in menu must remain scrollable inside the fixed mobile header. */
  .header-mobile .navbar-collapse { max-height: calc(100vh - 75px); max-height: calc(100dvh - 75px); overflow-y: auto; overscroll-behavior: contain; }
  .header-mobile .nav-link { white-space: normal; overflow-wrap: anywhere; }

  /* Keep category icons and columns, but let each row grow with LT/LV/EN/RU text. */
  .content-left25 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; }
  .content-left25 > .spacer10 { grid-column: 1 / -1; }
  .content-left25 .category-link { float: none; width: auto; height: auto; min-height: 50px; }

  .myads-table { display: block; }
  .myads-table .tr { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 2px solid #e8e8e8; }
  .myads-table .tc { display: block; float: none; width: auto; min-width: 0; height: auto; padding: 0; border: 0; }
  .myads-table .tc1 img { display: block; width: 90px; height: 75px; }
  .myads-table .tc3, .myads-table .tc4 { grid-column: 1 / -1; }
  .myads-table .tc2 table, .myads-table .tc2 tbody { display: block; width: 100%; }
  .myads-table .tc2 tr { display: flex; flex-wrap: wrap; }
  .myads-table .tc2 td { display: block; min-width: 0; max-width: 100%; }
  .myads-table .tc4 { display: flex; flex-wrap: wrap; gap: 8px; }
  .myads-table .tc4 .action { display: flex; align-items: center; flex: 1 1 120px; min-height: 44px; }

  /* Reuse the existing mobile result card on tablets; filter-panel rules stay intact. */
  .catalog-ads, .catalog-ads tbody { display: block; width: 100%; }
  .catalog-ads tr { display: grid; grid-template-columns: minmax(0, 90px) minmax(0, 1fr); gap: 6px 12px; padding: 12px 0; border-bottom: 2px solid #e8e8e8; }
  .catalog-ads td { display: block; border: 0; padding: 0; min-width: 0; }
  .catalog-ads .img-block { grid-column: 1; grid-row: 1 / span 3; width: auto; padding: 0; }
  .catalog-ads .img-block img { width: 100%; }
  .catalog-ads .info, .catalog-ads .catalog-date, .catalog-ads .catalog-price { grid-column: 2; width: auto; white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 768px) {
  .content-left25 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .content-right75 .ads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shared card price badge: keep its overlay position and price formatting. */
.ads-grid .price { background: #fff; color: #000; }

/* Messenger: shared unread state, matching the existing notification badge geometry. */
.messenger-badge-anchor { position: relative; display: inline-block; }
.messenger-badge { position: absolute; top: -4px; right: -8px; min-width: 17px; padding: 1px 4px; border-radius: 9px; background: #c71925; color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; white-space: nowrap; text-align: center; pointer-events: none; }
#messenger_icon .messenger-badge { top: -4px; right: -4px; }
.messenger-badge[hidden], #messenger-error[hidden], #messenger-older[hidden] { display: none !important; }
.messenger-icon-button { border: 0; background: transparent; color: inherit; padding: 0 3px; cursor: pointer; font: inherit; }
.messenger-error { color: #b02020; font-size: 13px; margin: 0 0 6px; }
.messenger-older { align-self: center; border: 0; background: transparent; color: #252d5e; padding: 5px 10px; cursor: pointer; font-size: 13px; }
#messages-container .messenger-message-text { display: block; min-width: 80px; white-space: pre-wrap; overflow-wrap: anywhere; }
#messages-container .messenger-message-wrap { display: flex; align-items: center; min-width: 0; }
#messages-container .msg_container, #messages-container .msg_container_send { min-width: 0; }
#messages-container .img_cont_msg { flex: 0 0 40px; }
#messages-container .justify-content-end { margin-left: 15px; }
#messages-container .justify-content-start { margin-right: 15px; }
#messages-container .messenger-message-menu { border: 0; background: transparent; padding: 5px; color: #777; cursor: pointer; flex: 0 0 auto; }
#send_msg .send_btn[disabled] { opacity: .6; cursor: wait; }
