@media screen and (max-width: 1600px){
.how-icons {
    width: 900px;
}
#m-how:before {
    left: 15px;
}
}
@media screen and (max-width: 1400px){
      #mattress-lp .m-banner {
        overflow: hidden;
      }
  #mattress-lp .m-banner .cloud1{
        left: -100px;
    }
     #mattress-lp .m-banner .cloud2{
        right: -50px;
    }
	#m-how:before {
   
    width: 134px;
    height: 284.5px;
}

#mattress-lp #m-featured{
	overflow: hidden;
}
	#mattress-lp #m-featured .right {
   
    width: 320px;
}
#mattress-lp #m-featured .cloud1 {

    left: -50px;
}
#mattress-lp #m-featured .cloud2 {
top: 30px;
    right: -50px;
}
#mattress-lp #m-featured .right img {
    top: 0;
    position: relative;
}

}
@media screen and (max-width: 1200px){
    #m-brands .center img {
    margin: 0 7.5px;
}
    #mattress-lp .m-banner .cloud1,
    #mattress-lp .m-banner .cloud2{
        display: none;
    }
	#m-quiz h2 {
  
    font-size: 31px;
}
	#m-brands .left {
    
    width: 300px;
}
	#m-brands .center {
  width: calc(100% - 305px);
    padding-right: 0;
}
#m-how:before{
	display: none;
}

	#mattress-lp #m-featured .cloud1 {
display: none;
}
#mattress-lp #m-featured .cloud2 {
display: none;
}

}

@media screen and (max-width: 991px){
    .m-favorite-categories >div{
        width: 50%;
    }
    #m-brands .center a {
    padding-left: 5px;
    padding-right: 5px;
    width: 33.333333%;
    display: inline-block;
   vertical-align: middle;
}
    #m-brands .center img {
        margin:0!important;
        vertical-align: middle;
        max-width: 100%;
        height: auto;
    }
    .m-banner{
        /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#fbf500+49,ee1c25+50 */
background: #fbf500; /* Old browsers */
background: -moz-linear-gradient(top, #fbf500 49.99%, #ee1c25 50%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #fbf500 49.99%,#ee1c25 50%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #fbf500 49.99%,#ee1c25 50%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fbf500', endColorstr='#ee1c25',GradientType=0 ); /* IE6-9 */
     
    }
    .m-banner div.center {
    display: block;
    vertical-align: middle;
    text-align: center;
margin-top: 10px;
}
    .m-banner div.right {
    display: block;
    padding-top: 0;
    text-align: center;
}
    .m-banner div.left {
    display: block;
    margin-right: 0;
}
	#m-results h2 {
    font-size: 35px;
}
	.product-info > .right {
    width: 60%;
}
	.product-info > .left {
    width: 40%;
    padding-right: 15px;
}
	#m-quiz .q-item .question {
    font-size: 16px;
      padding: 15px;
      height: auto;

    line-height: 1.3;
}
	#m-quiz .q-item[data-q="5"] .answer {
    margin: 0 15px 30px 15px;
}
	#m-quiz .q-item .answer {
   
    margin: 0 30px 30px 30px;
}
	#m-quiz {

    padding: 60px 15px 60px 15px;
}
	#m-quiz .q-item h3 {
    font-size: 24px;
    margin: 30px 0;
}
	#m-quiz h2 {
    font-size: 28px;
}
	#m-why .why-icons > .w-item p {
    font-size: 16px;
}
#m-why .title {
    font-size: 39px;
    margin-bottom: 10px;
}
	#m-accessories {
    padding: 45px 15px 60px 15px;
}
	#m-accessories .title {
    font-size: 39px;
    margin-bottom: 45px;
}
	#m-brands .center img {
    margin: 0 10px;
    max-height: 50px;
}
	#m-brands .center {
    width: calc(100% - 205px);
    padding-right: 0;
}
	#m-brands .left {
    width: 200px;
}
	#m-favorites .title span {
    font-size: 80px;
}
	#m-favorites .title {
    font-size: 30px;
    margin-bottom: 10px;
}
	#m-favorites {
    padding: 60px 15px;
}
	.m-favorite-categories {
    padding-left: 30px;
    padding-right: 30px;
}
#m-how .title .right .r-bottom {
    font-size: 44px;
    text-align: left;
}
	#m-how .title .right .r-top {
    font-size: 30px;
}
	#m-how .title .left {
 
    font-size: 80px;
}
	.how-icons p {
   
    font-size: 14px;
    line-height: 1.3;
}
	.how-icons .image + p {
    font-size: 17px;
}
	#m-how{
		padding-left: 15px;
		padding-right: 15px;
	}
	#mattress-lp #m-featured .right {
    width: 200px;
}
	#mattress-lp #m-featured .center {
   
    margin: 0 15px;
}
	#mattress-lp #m-hero h1{

	font-size: 58px;
	}
	#mattress-lp #m-hero p {
    font-size: 20px;
    line-height: 1.3;
}  
#mattress-lp #m-hero {
    height: 430px;
}

}


@media screen and (max-width: 767px){
    #m-categories {
   
    margin: 0 auto 0 auto;
}
    .m-favorite-categories .image {
    height: auto;
    line-height: 1;
    text-align: center;
    margin-bottom: 23px;
}
#m-accessories {
    padding: 40px 15px 0px 15px;
}
    #m-why .title + p br{
        display: none;
    }
    .m-favorite-categories >div {
    width: 100%;
}
    #m-favorites > p{
        margin-bottom: 30px;
    }
    .m-favorite-categories >div{
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
    }

		#m-brands {
   
    margin-top: 45px;
}

	.product-info > .left p {
    font-size: 14px;
}
	#m-results h2 {
    font-size: 22px;
}
	.product-image {
    padding-top: 0;
    text-align: center;
}
	#m-results {
    padding: 0 0 60px 0;
}
	.product-info > .right{
		margin-top: 30px;
	}
	#m-quiz h2 br{
		display: none;
	}
	#m-quiz .q-item h3 br{
		display: none;
	}
	#m-quiz h2 {
    margin-bottom: 30px;
}
	#m-quiz .q-item h3 {
    font-size: 18px;
    margin: 30px 0 30px 0;
}
	#m-quiz .q-item .answer {
        margin: 0 0 30px 0!important;
        width: 50%;
}
	#m-quiz {
 
    padding: 30px 15px 30px 15px;
}
	#m-quiz h2 {
    font-size: 20px;
}
	#m-accessories .m-favorite-categories .image img {
    max-width: 100%;
    max-height: 150px;
}
	#m-why .why-icons {
    margin-top: 30px;
}
	#m-why {
    padding: 15px 0 30px 0;
}
	#m-why .why-icons > .w-item {
   
    width: 50%;
    margin-bottom: 30px;
}
	#m-accessories .m-favorite-categories p {
    font-size: 17px;
}
		#m-accessories .m-favorite-categories .image {
    height: 150px;
    margin-bottom: 30px;
    line-height: 150px;
}
	#m-brands .center p {
    font-size: 26.95px;
}
	#m-brands .center {
    width: 100%;
    padding: 30px 0;
}
	#m-brands .left{
		display: none;
	}
	#m-how {

    padding-bottom: 60px;
}
	.how-icons .h-icon {
    width: 50%;
    margin-bottom: 30px;
}
#m-how .shop-all a {
    margin: 0 auto 0 auto;
}
	#mattress-lp #m-featured {
    padding: 15px 0;
}
	
	#mattress-lp #m-featured .right{
	display: block;
	margin:15px auto 0 auto;
	}
#mattress-lp #m-hero h1 {
    font-size: 38px;
}
#mattress-lp #m-hero p {
    font-size: 18px;
    line-height: 1.3;
}
#mattress-lp #m-hero p br{
	display: none;
}
#m-how .title .left {
    font-size: 70px;
}
}
@media screen and (max-width: 600px){
	#m-accessories .m-favorite-categories a {
 
    max-width: calc(100% - 10px);
}
	#m-accessories {
    padding: 30px 15px 15px 15px;
}
	#m-accessories .title {
    font-size: 29px;
    margin-bottom: 30px;
}
	#m-brands .center img {
    margin: 10px;
    max-height: 50px;
}
	.m-favorite-categories p {
    font-size: 15px;
}
	#m-favorites .title span {
    font-size: 50px;
    margin: 0;
}

	#m-how .title .right .r-bottom {
    font-size: 55px;
    text-align: center;
}
	#m-how .title .right .r-top {
    font-size: 34px;
}
	#m-how .title .left {
    font-size: 60px;
    display: block;  
}
#m-how .title .right {
    display: block;  
     margin-left: 0;
}
		.how-icons .h-icon {
    width: 100%;
    margin-bottom: 30px;
}
	#mattress-lp #m-featured .left h2 br{
		display: none;
	}
	#mattress-lp #m-featured {
  background-image: none;
}
#mattress-lp #m-featured .left,
	#mattress-lp #m-featured .center{
	display: block;
	margin:0 auto!important;
	text-align: center;
	}
	#m-favorites {
    padding: 30px 15px;
}
}

@media screen and (max-width: 480px){
    .m-favorite-categories p br{
        display: none;
    }
    .m-banner div.left >div:nth-child(2) span {
  
    font-size: 17.5px;
}
 .m-banner div.left >div:nth-child(2){
    font-size: 35px;
 }
.m-banner div.left {
    margin-bottom: 0;
}
    .m-banner div.center{
     margin-top: 0;
    }
    .m-banner div.left >div:nth-child(3) {
    font-size: 14px;
}
    .m-banner div.left >div:nth-child(1) {
    font-size: 19px;
}
    .m-banner div.right > div:nth-child(2) span {
    font-size: 24.5px;
}
    .m-banner div.right > div:nth-child(2) {
 
    font-size: 22px;
}
.m-banner div.right > div:nth-child(1)  span{
    font-size: 30px;
}
.m-banner div.right > div:nth-child(1) {
    

    font-size: 60px;
}
    .m-banner div.left >div:nth-child(2) {
    font-size: 49.6px;
}
	#mattress-lp #m-hero a {

    z-index: 3;
    position: relative;
}
	#mattress-lp #m-hero:before {

    height: 160px;
    background-position: 50% 0;
        background-size: cover;
 
    z-index: 0;
}
	#mattress-lp #m-featured .left h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
}
	#m-brands {
   
    margin-top: 30px;
}
	#m-accessories .m-favorite-categories .image {
    height: auto;
    margin-bottom: 15px;
    line-height: 1;
}
	.same-day-deliver {
    margin-top: 30px;
}
	#m-results {

    padding: 0 0 30px 0;
}
	#m-results h2{
		padding: 0 15px;
	}
	a.product-get-it-now-button +a {
    
    display: block;
    width: auto;
    margin: 15px auto 0 auto;
    text-align: center;
}
a.product-get-it-now-button{
	width: 100%;
}
	.product-info > .right .product-by2{
		text-align: center;
	}
	.product-info > .right .product-name {
    font-size: 16px !important;
    line-height: 1.3!important;
}
#m-why .why-icons > .w-item .image{
    height: auto;
    line-height: 1;
}
#m-why .why-icons > .w-item {
    width: 50%;
    margin-bottom: 30px;
}
#m-why .why-icons > .w-item p{
    line-height: 1;
}
#m-why .why-icons > .w-item .image {
}
#m-why .why-icons > .w-item {
    width: 100%;
}
#m-why .why-icons > .w-item p {
    font-size: 14px;
}
#m-accessories{
	padding-bottom: 45px;
}
#m-why .why-icons > .w-item img{
 max-width: 50px;
}
		#m-why .title + p br{
			display: none;
		}
	#m-why .title + p {
    font-size: 14px;
    line-height: 1.3;
}
	#m-why .title {
    font-size: 26px;
    margin-bottom: 10px;
}
	#m-brands .center p br{
		display: none;
	}
	#m-brands .center p strong{
		display: block;
	}
#mattress-lp #m-hero h1 {
    font-size: 55px;
    line-height: 40px;
}
#mattress-lp #m-hero h1 strong{
	margin-right: 0;
	font-size: 40px;
}
#m-favorites .title span {
    font-size: 40px;
    margin: 0;
}
#m-favorites .category-switcher a {
    width: 120px;
    margin: 0 7.5px;
}
#m-quiz .q-item .answer p br{
	display: none;
}
#m-quiz .q-item .answer p {
padding: 0 5px;
    font-size: 14px;
    line-height: 16px;
}
#m-brands .center img {
    max-width: 100%;
    margin: 0;
}
}

@media screen and (max-width: 420px){
    #m-brands .center a{
        display: block;
        width: 100%;
        padding: 5px 15px;
    }
		#m-quiz .q-item p br{

		}
	#m-quiz .q-item h3{
		font-size: 14px;
	}
	
}