/*
 *  Custom Header Style
 *
 *  Case 1 (default):
 *  - Transparent Header and Menu
 *    - Logo in top centre
 *    - Menu below the logo and centre of the row
 *  - Page content start behind the header (should be a banner on top of the page content)
 *  - When scroll down of the page, it show solid header
 *    - add background colour to the header and menu
 *    - make logo and menu in the same row
 * 
 *  Case 2:
 *  - Solid menu and header in case 1 for some pages
 *  - page content start below the solid menu
 *
 *  Need to adjust the mobile version as well
 * 
 */ 

/* make header background colour transparent */
header#header .header_bg{
	background-color: transparent; 
}

/* adjust logo size and spacing */
header#header #header_main .av-logo-container{ 
	padding-top: 30px;
	padding-bottom: 30px;
	height: 150px !important;
	line-height: 150px !important;
}
header#header #header_main .av-logo-container a,
header#header #header_main .av-logo-container a img{
	height: 90px !important;
	max-height: 90px !important;
}

/* add some padding to the menu */
header#header #header_main #header_main_alternate{ 
	padding-top: 30px;
	padding-bottom: 30px;
}

/* menu style */
header#header #header_main #header_main_alternate nav.main_menu ul li a{
	cursor: pointer !important;
}
header#header #header_main #header_main_alternate nav.main_menu ul li a span.avia-menu-text{
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #fff;
}
header#header #header_main #header_main_alternate nav.main_menu ul li a:hover span.avia-menu-text{
	text-decoration: underline;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li > a span.avia-menu-text{ 
	text-shadow: 1px 1px #666; /* add text shadow to the first level of menu item text only */
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li > a  span.dropdown_available::after{ /* add arrow to dropdown menu item */
	content:'';
	font-family: 'entypo-fontello';
	color: #fff;
	margin-left: 10px;
	font-size: 18px;
	text-shadow: 1px 1px #666;
}
/* menu style - cart icon */
header#header #header_main #header_main_alternate nav.main_menu div > ul > li.menu-cart-icon{
	/* margin-left: 50px; */
	margin-right: 10px;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li.menu-cart-icon a{
	color:#fff !important;
	text-shadow: 1px 1px #666;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li.menu-cart-icon a:hover{
	text-decoration: none;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li.menu-cart-icon .counter{
	position: absolute;
	top: 35%;
	left: 40%;
	width: 24px;
	height: 24px;
	padding: 0 5px;
	line-height: 24px;
	border-radius: 54px;
	font-size: 16px;
	font-weight: 200;
	background: #D9534F;
	color: #fff;
	text-align: center;
	margin: -20px 0 0 8px;
	text-shadow: none;
	box-shadow: 1px 1px #666;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li.menu-cart-icon .cart-icon{
	font-family: 'entypo-fontello';
	font-size: 18px;
}
/* menu style - 100 year icon */
header#header #header_main #header_main_alternate nav.main_menu div > ul > li.ico-100-year{
	display: none !important;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li.ico-100-year a{
	cursor: default !important;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li.ico-100-year img{
	margin-bottom: -8.5px;
}
/* menu style - search icon */
header#header #header_main #header_main_alternate nav.main_menu div > ul > li#menu-item-search a:before{
	color: #fff;
	text-shadow: 1px 1px #666;
}
/* menu style - WPML language switcher */
header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal{
	display: block !important;
	opacity: 1 !important;
	border: none !important;
	padding: 0px !important;
	background-color: transparent !important;
	height: 50px !important;
	line-height: 50px !important;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal ul{
	background-color: transparent !important;
	box-shadow: none !important;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal ul li{
	width: auto !important;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal ul li a{
	padding: 0px 13px !important;
	background-color: transparent !important;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal ul li a img.wpml-ls-flag{
	margin-right: 5px;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal ul li a span.wpml-ls-native{
	color: #fff !important;
	text-shadow: 1px 1px #666 !important;
	font-size: 16px !important;
	height: 50px !important;
	line-height: 50px !important;
}
header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal a:hover span.wpml-ls-native{
	text-decoration: underline !important;
}
/* second level menu style */
header#header #header_main #header_main_alternate nav.main_menu ul ul li a{
	border: none;
	padding: 15px 20px;
}
header#header #header_main #header_main_alternate nav.main_menu ul ul li a span.avia-menu-text{ 
	color: #494c4f;
	font-size: 14px;
}
header#header #header_main #header_main_alternate nav.main_menu ul ul li a:hover{
	background-color: #55595c;
	transition: .4s;
}
header#header #header_main #header_main_alternate nav.main_menu ul ul li a:hover span.avia-menu-text{ /* make sub-menu text colour to blank */
	color: #FFF;
}

/* scrolled header style */
header#header.header-scrolled-full .header_bg{
	background-color: #2B2B2B; /* add back the header background colour */
}
header#header.header-scrolled-full #header_main{
	width: 1310px;
	padding-left: 50px;
	padding-right: 50px;
	margin-left: auto;
	margin-right: auto;	
}
header#header.header-scrolled-full #header_main .av-logo-container,
header#header.header-scrolled-full #header_main #header_main_alternate{
	/* make logo and menu not using the full row */
	display: inline-block; 
	clear: none;
	width: auto;
}
header#header.header-scrolled-full #header_main .av-logo-container{
	padding: 15px;
	height: 80px !important;
	line-height: 80px !important;
	vertical-align: top;
}
header#header.header-scrolled-full #header_main .av-logo-container a,
header#header.header-scrolled-full #header_main .av-logo-container a img{ /* adjust logo size and spacing */
	height: 50px !important;
	max-height: 50px !important;
}
header#header.header-scrolled-full #header_main .av-logo-container span.avia-standard-logo{
	position: relative;
	left: 0px;
	transform: none;
}
header#header.header-scrolled-full #header_main #header_main_alternate{ /* add some padding to the menu */
	padding-top: 15px;
	padding-bottom: 15px;
	vertical-align: top;
}

body#top #main{
	padding-top: 0px; /* make page content start behind the header */
}

@media only screen and (max-width: 1200px) {
	header#header #header_main{
		padding-left: 0px !important;
		padding-right: 0px !important;
	}
	header#header #header_main #header_main_alternate .container{
		padding-left: 0px !important;
		padding-right: 0px !important;
	}
}
@media only screen and (max-width: 1100px) {
	header#header #header_main #header_main_alternate nav.main_menu ul li a,
	header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal ul li a{
		padding-left: 5px !important;
		padding-right: 5px !important;
	}
	header#header #header_main #header_main_alternate nav.main_menu ul li ul li a{
		padding: 15px 20px !important;
	}
	header#header #header_main #header_main_alternate nav.main_menu ul li a .avia-menu-text,
	header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal ul li a span.wpml-ls-native{
		font-size: 12px !important;
	}
}
@media only screen and (max-width: 800px) {
	header#header #header_main #header_main_alternate nav.main_menu ul li a,
	header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal ul li a{
		padding-left: 4px !important;
		padding-right: 4px !important;
	}
	header#header #header_main #header_main_alternate nav.main_menu ul li ul li a{
		padding: 15px 20px !important;
	}
	header#header #header_main #header_main_alternate nav.main_menu ul li a .avia-menu-text,
	header#header #header_main #header_main_alternate nav.main_menu div > ul > li .wpml-ls-legacy-list-horizontal ul li a span.wpml-ls-native{
		font-size: 11px !important;
	}
}
@media only screen and (max-width: 767px) { /* mobile header */
	header#header{
		background-color: #2B2B2B; /* add back the header background colour */
	}
	header#header #header_main .av-logo-container{
		height: auto !important;
		line-height: auto !important;
	}
	header#header #header_main .av-logo-container span.logo a{
		padding-top: 15px;
		padding-bottom: 15px;
	}
	header#header #header_main .av-logo-container span.logo a img{
		width: 50% !important;
		max-width: 150px !important;
		height: auto !important;
	}
	header#header #header_main nav.main_menu ul > li,
	header#header #header_main nav.main_menu ul > li a{
		height: 100px !important;
		line-height: 100px !important;
	}
	header#header #header_main nav.main_menu #menu-item-search a:before{
		color: #969696;
		line-height: 100px !important;
	}
	header#header #header_main .av-burger-overlay-scroll{
		width: 100% !important
	}
	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul{
		vertical-align: top !important;
	}
	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul li,
	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul li a{
		height: auto !important;
		line-height: unset !important;
	}
	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul li a.cart-icon{
		font-family: 'entypo-fontello';
		margin-top: 80px; /* fixing unknown extra height from the WPML switcher in mobile version */
	}

	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul li a.cart-icon .counter{
		background: #D9534F;
		border-radius: 54px;
		color: #fff;
		width: 24px;
		height: 24px;
		line-height: 24px;
		font-size: 16px;
		font-weight: 200;
		text-align: center;
		display: inline-block;
		margin-left: 10px
	}
	
	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul li.ico-100-year{
		display: none !important;
	}

	/* menu style - Mobile WPML language switcher */
	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul li .wpml-ls-legacy-list-horizontal{
		display: block !important;
		opacity: 1 !important;
		border: none !important;
		padding: 0px !important;
		background-color: transparent !important;
		height: 50px !important;
		line-height: 50px !important;
	}
	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul > li .wpml-ls-legacy-list-horizontal ul{
		background-color: transparent !important;
		box-shadow: none !important;
		display: block;
		clear: both;
		float: left;
		width: 100%;
	}
	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul li .wpml-ls-legacy-list-horizontal ul li{
		width: 100% !important;
		float: left;
		height: 60px !important;
		line-height: 60px !important;
	}
	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul li .wpml-ls-legacy-list-horizontal ul li a{
		padding: 15px 50px !important;
		padding-top: 0px !important;
		background-color: transparent !important;
		height: 60px !important;
		line-height: 60px !important;
	}
	header#header #header_main .av-burger-overlay-scroll .av-burger-overlay-inner ul#av-burger-menu-ul li .wpml-ls-legacy-list-horizontal ul li a img{
		height: auto !important;
	}

}

/*
    Footer
 */

#footer-section .footer-block .block-header{
	margin-bottom: 30px;
	text-transform: uppercase;
	font-size: 18px;
	color: #7b7a7a;
}
#footer-section .footer-block .block-links a{
	display: block;
	clear: both;
	float: left;
	width: 100%;
	cursor: pointer;
	margin-bottom: 15px;
	color: #8e8e8e;
	font-size: 16px;	
}

#footer-section .footer-block .block-links a:hover{
	color: #cf896b;
}

#footer-section .footer-block .block-content{
	color: #8e8e8e;
	font-size: 16px;	
	line-height: 32px;
	margin-top: -10px;
}
#footer-section .footer-block .block-content a{
	color: #8e8e8e;
	font-size: 16px;	
}
#footer-section .footer-block .block-content a:hover{
	color: #cf896b;
}
#footer-section .footer-icon-block{
	color: #8e8e8e;
	font-size: 16px;	
}
#footer-section .footer-icon-block .footer-paypal-icon{
	width: 43px;
	vertical-align: middle;
	margin-left: 10px;
}
#footer-section .footer-icon-block a{
	display: inline-block;	
	margin-right: 10px;
}
#footer-section .footer-copyright{
	color: #8e8e8e;
	font-size: 16px;	
}

/* 
 *  Others
 */
 
.image-overlay{
	display: none !important; /* hide all image overlay by enfold */
}
.otgs-development-site-front-end{ /* disable WPML development message in the footer */
	display: none !important;
}

/*
 *  Homepage
 */
#home-find-mattress-header-text h1{
	font-weight: 600 !important;
}
#btn-mattress-quiz a{
	margin-top: 40px;
	padding: 15px 50px;
	border: 2px solid #000;
	border-radius: 5px;
	border-color: #000 !important;
	background-color: transparent;
}
#btn-mattress-quiz a .avia_iconbox_title{
	font-size: 18px;
	font-weight: 500;
	color: #000;
}
#btn-world-of-comfort a{
	margin-top: 40px;
	padding: 15px 50px;
	border: 2px solid #fff;
	border-radius: 5px;
	border-color: #fff !important;
	background-color: transparent;
}
#btn-world-of-comfort a .avia_iconbox_title{
	font-size: 18px;
	font-weight: 500;
	color: #fff;
}
.full-width-slider-row .container{
	max-width: 100% !important;
	padding: 0px !important;
}
.full-width-slider-row .container .homepage-heading-text{
	padding-top: 50px;
}
.full-width-slider-row .container .avia-content-slider-element-container{
	margin-top: 30px !important;
}
.full-width-slider-row .container .avia-content-slider-element-container .avia-smallarrow-slider-heading{
	display: none !important;
}
.full-width-slider-row .container .avia-content-slider-element-container .slide-entry-wrap{
	display: flex;
}
.full-width-slider-row .container .avia-content-slider-element-container .slide-entry-wrap .btnLearnMore{
	display: block;
	width: 200px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	font-size: 18px;
	margin-top: 10px;
	margin-bottom: 10px;
	background-color: #ED7D31;
	color: #fff;
	border-radius: 5px;
	padding: 10px 20px;
}
.full-width-slider-row .container .avia-content-slider-element-container section{
	width: 33.3333333% !important;	
	cursor: pointer;
}
.full-width-slider-row .container .avia-content-slider-element-container section .slide-entry-title{
	display: none !important;
}
.full-width-slider-row .container .avia-content-slider-element-container section img{
	width: 100%;
}
.full-width-slider-row .container .avia-content-slider-element-container section p.desc{
	font-size: 16px;
	line-height: 24px;
	padding-left: 15px;
	padding-right: 15px;
}
.full-width-slider-row .container .avia-content-slider-element-container section h3{
	padding: 10px;
	margin-top: 0px;
}
@media only screen and (max-width: 767px) { /* Mobile */
	#home_find_mattress_desktop_row #home-find-mattress-header-text{
		margin-top: 50px;
	}
	#home_find_mattress_desktop_row #btn-mattress-quiz{
		margin-bottom: 50px;
	}
	.full-width-slider-row .container .avia-content-slider-inner{
		height: 100% !important;
	}
	.full-width-slider-row .container .avia-content-slider-inner .slide-entry-wrap{
		display: flex;
		flex-direction: column;
	}
	.full-width-slider-row .container .avia-content-slider-element-container section{
		width: 100% !important;
	}
}

/*
 *	Our Brand
 */
 
#our-brand-banner-1 .avia-caption-content{
	text-align: center;
	font-size: 48px;
	font-weight: 600;
	line-height: 60px;
	text-shadow: 1px 1px 10px #000;
}

#our-brand-banner-2 .avia-caption-content p{
	color: #000;
	text-align: left;
	font-size: 16px;
	line-height: 24px;
	font-weight: 200;
}
#our-brand-banner-2 .avia-caption-content h3{
	text-align: left;
	font-size: 28px;
	line-height: 36px;
	margin-bottom: 10px;
	color: #000;
	font-weight: 400;
}
#our-brand-banner-3 .avia-caption-content p{
	color: #000;
	text-align: left;
	font-size: 16px;
	line-height: 24px;
	font-weight: 200;
	color: #FFF;
}
#our-brand-banner-3 .avia-caption-content h3{
	text-align: left;
	font-size: 28px;
	line-height: 36px;
	margin-bottom: 10px;
	color: #FFF;
	font-weight: 400;
}
#our-brand-banner-4 .avia-caption-content ul{
	padding:0px;
	margin:0px;
}
#our-brand-banner-4 .avia-caption-content li{
	color: #FFF;
	text-align: left;
	font-size: 16px;
	line-height: 24px;
	font-weight: 200;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
	margin-bottom: 5px;
	/* list-style-position: inside;
	list-style-type: disc;
	text-indent: -1em !important;
	padding-left: 1em;	 */
}
#our-brand-banner-4 .avia-caption-content li:before{
	content: '●';
	margin-right: 5px;
}
#our-brand-banner-4 .avia-caption-content h3{
	text-align: left;
	font-size: 28px;
	line-height: 36px;
	margin-bottom: 10px;
	color: #FFF;
	font-weight: 400;
}

#our-brand-banner-5 .avia-caption-content p{
	color: #000;
	text-align: center;
	font-size: 16px;
	line-height: 24px;
	font-weight: 200;
	color: #000;
}
#our-brand-banner-5 .avia-caption-content h3{
	text-align: center;
	font-size: 28px;
	line-height: 36px;
	margin-bottom: 10px;
	color: #000;
	font-weight: 400;
}

#our-brand-banner-8 .avia-caption-content h3{
	text-align: center;
	font-size: 28px;
	line-height: 36px;
	margin-bottom: 10px;
	color: #000;
	font-weight: 400;
}
#our-brand-banner-8 .avia-caption-content{
	text-align: center;
}
#our-brand-banner-8 .avia-caption-content button{
	border: 1px solid #000;
	border-radius: 5px;
	padding: 10px 30px;
	background-color: transparent;
	cursor: pointer;
	font-size: 16px;
}
#our-brand-banner-8 .image-overlay{
	display: none !important;
}

/* 
 *	Sleeping Tips
 */
#sleeping-tips-blog .slide-entry-wrap{
	display: flex;
}
#sleeping-tips-blog .slide-entry-wrap article{
	border: 1px solid #ddd;
	border-radius: 5px;
	box-shadow: 2px 2px 10px #ccc;
}
#sleeping-tips-blog .slide-entry-wrap article .slide-content{
	padding: 20px;
}
#sleeping-tips-blog .slide-entry-wrap article .slide-content h3 a{
	display: block;
	font-size: 20px;
	line-height: 28px;
	font-weight: 400;
	text-align: center;
	min-height: 56px;
	color: #c87957;
}
#sleeping-tips-blog .slide-entry-wrap article .slide-content .slide-meta-comments,
#sleeping-tips-blog .slide-entry-wrap article .slide-content .slide-meta-del{
	display: none;
}
#sleeping-tips-blog .slide-entry-wrap article .slide-content .slide-meta{
	text-align: center;
	margin-top: 10px;
	margin-bottom: 20px;
	font-style: italic;
}
#sleeping-tips-blog .slide-entry-wrap article .slide-content .entry-content{
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	color: #777;	
}
#sleeping-tips-blog .slide-entry-wrap article .slide-content .read-more-link a{
	padding: 8px 50px;
	border: 1px solid #c87957;
	cursor: pointer;
	margin-top: 30px;
	color: #c87957;
}
#sleeping-tips-blog .slide-entry-wrap article .slide-content .read-more-link a:hover{
	background-color: #c87957;
	color: #fff;
}

/*
 *  Product List Page
 */
 
#product-list .inner_product_header .btnLearnMore{
	display: block;
	width: 200px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	font-size: 18px;
	background-color: #ED7D31;
	color: #fff;
	border-radius: 5px;
	padding: 10px 20px;	
}

/*
 *  Product Page
 */
 
#spec-content td{
	color: #777;
	background-color: #fff;
}


/*
 *  Chinese Version 
 */
 
html[lang="zh-hant"] body#top #main h1, h2, h3, h4, h5, h6{
	font-weight: 400;
}

/*
 *  Warranty form
 */
 
 .gform_wrapper *{
	font-size: 16px;
	color: #000;
 }
 
 .gform_title{
	display: none;
 }
 
 .gform_wrapper th,
 .gform_wrapper td{
	border-color: #CCC !important;
 }
 
 /*
  * Locations
  */
  
#location_table td{
	border: none !important;
	background-color: #fff !important;
	font-size: 16px;
}

#location_table .main-store-name strong{
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #800000 !important;
}

@media only screen and (max-width: 767px) { /* Mobile */
	
	#location_table td{
		display: block;
		float: left;
		clear: both;
		width: 100%;
		height: auto !important;
	}	

	#location_table td img{
		width: 100%;
		height: auto !important;
		min-height: unset !important;
	}

}


/*
 * Cart
 */
 
body.woocommerce-cart td,
body.woocommerce-cart th{
	color: #000;
}

/*
 *  Checkout
 */
 
body.woocommerce-checkout td,
body.woocommerce-checkout th{
	color: #000;
}

/*
 * Location
 */
 
#top section#location_table table tr:nth-child(even){
	color: #000;
}

#top section#location_table table img{
	width: 100%;
	min-height: 100px;
}

/*
 * Post Style 
 */

body.single-post .avia-image-overlay-wrap img{
	background-color: transparent !important;
}


/*
 *	Temporary CSS
 */

/* #btn-add-to-cart,
.menu-cart-icon{
	display: none !important;
} */