*:not(i):not(input) {
	text-transform: uppercase;
}
h1,
h1 * {

}
h2,
h2 * {

}
h3,
h3 * {

}
h4,
h4 * {

}
h5,
h5 * {

}
h6,
h6 * {

}
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top:0;
	margin-bottom:0;
}

img {
	max-width: 100%;
	height:auto;
}
.fancybox-content {
	max-width:500px !important;
	max-height:500px !important;
	height:100% !important;
	width:100% !important;
	transform: translate(-50%, -50%) !important;
	-webkit-transform: translate(-50%, -50%) !important;
	left:50% !important;
	top:50% !important;
	overflow: hidden;
	display: inline-block;
	img.fancybox-image {
		width: 100%;
		height: 100%;
		object-fit: cover; /* Ensures the image covers the square without distortion */
	}
}

.container {
	width:100%;
	max-width: 1460px;
}
body {
	overflow-x:hidden;
}
body,
p {
	font-size:14px;
}
a,
a:hover {
	text-decoration: none;
}
/* Header */
header {
	background: #182857;
	padding: 30px 15px;
	width: 100%;
	text-align: center;	
}
header img {
    max-width: 260px;	
}
header a {
	width:100%;
	color:#fff;
	display: inline-block;
	margin-top: 3.75px;
	margin-left: 43px;
}
header a:hover {
	color:#fff;
}
/* Home Page */
.main_mattress_container {
	padding-top: 15px;
}
.mattress_builder {
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	flex-wrap: wrap;

}
.mattress_builder div {
	text-align: center;
}
.mattress_builder img {
	width:100%;
}
.mattress_img_4 {
	margin-bottom: -24.5%;
	position:relative;
	z-index:4;
	
}
.mattress_img_4.piece-3 {
	
}
.mattress_img_4.piece-3 {
	margin-bottom:-27%;
}

.mattress_img_2.piece-3,
.mattress_img_1.piece-3 {

}
.mattress_img_2.piece-3:after {
	position: absolute;
	top:0;
	left:0;
	width:100%;
	height: 7%;
	content:'';
	background:#fff;

}
.mattress_img_2.piece-3 img{

}
.mattress_img_1.piece-3 img{

}
.mattress_img_3 {
	margin-bottom: -27.2%;
	position:relative;
	z-index:3;
}
.mattress_img_2 {
	margin-bottom: -34%;
	position:relative;
	z-index:2;
}
.mattress_img_1 {
	position:relative;
	z-index:1;
}
.mattress_img_1 img {
	max-width: calc(100% - 2px);
}
.mattress_selector {
	margin-top:0px;
	text-align: center;
	margin-bottom:60px;
}
.mattress_selector select {
	width:100%;
	height:35px;
	padding:0 10px;
	text-align: left;
	margin-right:15px;
}
.mattress_selector select,
.mattress_selector select * {
	text-transform: uppercase;
}
.content_area_mattress {
	margin-top:0px;
	border-bottom:none;
	padding:0px 15px 0;
}
.content_area_mattress h3 {
	font-size:18px;
	border-bottom:solid thin #ebebeb;
	padding: 0 0 15px;
	max-width:calc(100% - 60px);
}
.content_area_mattress > div {
	border-bottom:solid thin #ebebeb;
    padding: 0 0 15px;
    margin-top: 15px;
    max-width:calc(100% - 60px);
}
.content_area_mattress > div p {
	margin-bottom:0px;
}

.mattress_selector form {
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	justify-content: space-between;
}
.mattress_selector form .selection_con{
	width:100%;
	max-width:calc(25% - 30px);
	text-align: left;
}
.mattress_selector form  label {
	width:100%;
	display: inline-block;
	font-weight:500;
}
.scrim_panel:after {
	content: '';
	background:url(img/scrim-3.png?v=9) no-repeat;
	background-size: 100% 100%;
	background-position:top right;
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:2;
}
.mattress_img_4:before {
	content: '';
	background:url(img/coverall_scrim.png?v=1) no-repeat;
	background-size: 100% 100%;
	background-position:top right;
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:2;
	pointer-events: none;
}
.shading_panel:after {
	content: '';
	background:url(img/overlay-3.png) no-repeat;
	background-size: 100% 100%;
	background-position:top right;
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:1;
}
.tml .tml-label {
	margin:0 0 3.5px;
}
.tml .tml-field{
	height:40px;
	padding:0 10px;
}
.tml .tml-field-wrap {
	margin-bottom: 15px;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
	height:40px;
	background:#182857;
	border:solid thin #182857;
	color:#fff;
	padding:0 30px;
	border-radius: 0;
	cursor: pointer;
	text-transform: uppercase;
}
.tml-links {
	list-style: none;
	padding-left:0;
	margin-bottom:0;
	display: none;
}
.tml-links a {
	color: #182857;
	text-decoration: underline;
}
.menu_system {
	margin-bottom:15px;
}
.menu_system a {
	display: inline-block;
	background:#182857;
	border:solid thin #182857;
	color:#fff;
	padding:7.5px 30px;
	border-radius: 0;
	cursor: pointer;
	margin-right:7.5px;
	min-width:125px;
	text-align: center;
}
.menu_system a:hover {
	color:#182857;
	background:transparent;
	text-decoration: none;
}
.overlap_loading {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.6);
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index:10000;
}
.overlap_loading  * {
	color:#fff;
	font-size: 32px;
}
/* Define an animation behavior */
@keyframes spinner {
  to { transform: rotate(360deg); }
}
/* This is the class name given by the Font Awesome component when icon contains 'spinner' */
.spin {
  /* Apply 'spinner' keyframes looping once every second (1s)  */
  animation: spinner 6s linear infinite;
}
.mattress_selector form label span {
	margin-left: 7.5px;
	margin-right:7.5px;
}
.mattress_selector form label input {
	margin-left: 3.5px;
}
.mattress_selector form label {
	margin-left: 15px;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 0;
}
.login_screen {

}
.login_screen a {
	color:#000;
}
.wpcf7 {
	display: none;
	margin-top:3.5px;
}
.wpcf7 input[type="url"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"] {
	height: 40px;
	padding: 0 10px;
	width: 100%;
	margin-bottom:3.75px;
        
}
.wpcf7-form-control-wrap {
	margin-bottom:12.25px;
	display: inline-block;
	width:100%;
}
.view_item {
	position:absolute;
	right:15px;
	top:50%;
	transform:translate(-50%,-50%);
	-webkit-transform:translate(-50%,-50%);
	font-size:20px;
	color:#000;
}
.view_4 {
	top:10%;
}
.view_3 {
	top:33%;
}
.view_2 {
	top:43%;
}
.view_1 {
	top:57%;
}


.filter_3  .view_4 {
	top:10%;
}
.filter_3  .view_2 {
	top:40%;
}
.filter_3  .view_1 {
	top:57%;
}

.zoom_functionality {
	padding-right:60px;
}
@media (max-width: 767.98px) {
	.menu_system a {
		width:100%;
		margin-bottom:7.5px;
		margin-right: 0;
	}
	.mattress_selector form {
		flex-wrap: wrap;
	}
	.mattress_selector select {
		margin-bottom:7.5px;
		margin-right: 0;
	}
	.mattress_selector form label {
		margin-left:0;
		margin-top:7.5px;
	}
	.mattress_builder {
		margin-top:30px;
		margin-bottom: 30px;
	}
}