/****** General ******/
*:focus {
	outline: none !important;
}
button {
	transition: all 0.5s ease-in-out;
}
button:disabled,
button[disabled] {
	filter: grayscale( 1 );
}
div.flex {
	display: flex;
}
.spacer-invis {
	display: block;
	clear: both;
	height: 1px;
	margin: 78px auto;
}

.visualiser-section {
	display: inline-block;
	width: 100%;
	font-size: 14px;
}
.visualiser-section main {
	min-height: calc(100vh - 66px);
	height: auto !important;
	position: relative;
	height: 100%;
	padding: 20px;
}
.visualiser-section .col-xs-6 {
	width: 50% !important;
}
.visualiser-section main:not(.home) {
	max-width: 1000px;
	margin: auto;
	width: 100%;
}
.visualiser-section h1,
.visualiser-section h2,
.visualiser-section h3 {
	font-family: 'Steelfish Regular', Arial, Helvetica, sans-serif;
}
.visualiser-section h1 {
	font-size: 3em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/****** Icons ******/
.vis-icon:before {
	content: "";
	width: 12px;
	height: 12px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 5px;
	background-repeat: no-repeat;
	background-size: contain;
	margin-top: -3px;
}
.vis-icon.vis-icon-home:before {
	background-image: url(/wp-content/plugins/cap-visualiser/images/icons/house-chimney-solid.svg);
}
.vis-icon.vis-icon-arrow-left:before {
	background-image: url(/wp-content/plugins/cap-visualiser/images/icons/arrow-left-solid.svg);
}
.vis-icon.vis-icon-angle-left:before {
	background-image: url(/wp-content/plugins/cap-visualiser/images/icons/angle-left-solid.svg);
}
.vis-icon.vis-icon-share:before {
	background-image: url(/wp-content/plugins/cap-visualiser/images/icons/share-solid.svg);
	filter: invert(1);
}

/****** Visualiser Nav Bar ******/
.top-nav {
	width: 100%;
	padding: 0 10px;
	z-index: 100;
	background-color: #000000CC;
	background-color: var(--e-global-color-57c8da2);
}
.top-nav .row {
	display: flex;
	flex-flow: wrap;
	align-items: center;
}
.top-nav .title {
	display: inline-block;
	color: white;
}
/* - Thumbnails */
.top-nav .col-xs-8 {
	display: flex;
	flex-flow: wrap;
	align-items: center;
	justify-content: flex-end;
}
.thumb {
	width: 50px;
	height: 50px;
	background-color: #fff;
	padding-top: 5px;
	float: right;
	position: relative;
	border: 1px solid #2380c2;
}
.thumb .thumb-container {
	width: 100%;
	background-size: cover;
	overflow-y: hidden;
	position: relative;
	margin: auto;
	height: 100%;
	overflow: hidden;
}
.thumb .thumb-container img {
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
}
.thumb-new:after {
	font-size: 14px;
	position: absolute;
	width: 100%;
	height: 100%;
	left: -2px;
	top: 7px;
	text-align: center;
	line-height: 1.2;
}
/* -- Table Thumbnail */
#table-thumb .thumb-new:after {
	content: "add base";
}
#table-thumb .thumb-container img {
	height: 60%;
	object-fit: cover;
	object-position: bottom;
	transform: translateY(-50%);
	top: 50%;
}
/* -- Screen Thumbnail */
#screen-thumb .thumb-new:after {
	content: "add screen";
}
#screen-thumb .thumb-container {
	margin: 4px 0 0 -14px;
}
#screen-thumb .screen-thumb-container img {
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
}
/* - Preview */
.hint-tooltip-container {
	position: relative;
}
.hint-tooltip-container .btn-dark {
	margin-top: 0 !important;
	height: 50px;
	border-radius: 0 !important;
}
.hint-tooltip-container .hint-tooltip {
	position: absolute;
	right: 5px;
	top: 66px;
	padding: 15px;
	margin: 1em 0 3em;
	color: #fcfcfc;
	border-radius: 10px;
	background: rgba(0,0,0,0.85);
	width: 320px;
	z-index: 1;
	display: none;
}
.hint-tooltip-container:hover .hint-tooltip {
	display: block;
}
@media screen and (max-width: 992px) {
	.top-nav {
		padding-top: 0;
	}
	#table-container {
		width: 100%;
		position: absolute;
		bottom: 0;
		left: 0;
	}
}


/****** Page ******/
div.page {
	padding-top: 0;
	position: relative;
	height: 100%;
}
.page h3 {
	text-transform: uppercase;
	font-size: 2em;
}
.page .main .loader {
	position: absolute;
	left: 50%;
	top: 15px;
}
.voption {
	height: 100%;
}
.container-fluid.options-row {
	display: flex;
	align-items: center;
}
@media  screen and ( max-width: 992px ) {
	.page h3 {
		padding-top: 10px;
	}
	.table-title {
		display: inline-block;
		vertical-align: middle;
		height: 100%;
		width: auto;
	}
	aside ~ .main {
		width: 100%;
		height: auto !important;
	}
}

/******* Page Layout *****/
.visualiser-grid {
	display: grid;
	grid-template-columns: 320px 1fr;
}
@media screen and (max-width: 992px) {
	.visualiser-grid {
		grid-template-columns: 1fr;
	}
}


/****** Options Sidebar ******/
.sidebar {
	background-color: #F5F2F0;
	float: left;
	min-height: calc(100vh - 66px);
	height: calc(100vh - 66px);
	box-shadow: 0 -24px 24px rgba(0, 0, 0, 0.1) inset;
	overflow-x: hidden;
}
.sidebar img {
	max-width: 80%;
}
.sidebar-screen .option {
	border-radius: 5px;
	padding: 20px 12px 12px 12px;
	cursor: pointer;
	border: 1px solid transparent;
	background-color: rgba(255, 255, 255, 0.5);
	position: relative;
}
.option,
.option:hover {
	border-radius: 5px !important;
}
.option.flex {
	padding: 0;
	justify-content: center;
	margin: 10px 0;
}
#view_2 .option {
	padding: 20px 12px 0 12px;
	margin: 10px 0;
}
#view_2 button.option:disabled img {
	opacity: 0.2;
}
#view_2 button.option:disabled:after {
	content: "LOADING";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 100%;
}
#inner-sidebar {
	transition: all 0.7s ease;
}
@media  screen and ( min-width: 992px ) {
	#inner-sidebar {
		width: 640px;
	}
	#inner-sidebar.show3 {
		transform: translateX(-320px);
	}
	.sidebar-screen {
		position: relative;
		float: left;
		display: block;
		width: 320px;
	}
	.sidebar-screen .option {
		display: block;
		width: 100%;
		margin: 10px 0;
	}
}
@media  screen and ( max-width: 992px ) {
	.sidebar {
		position: relative;
		z-index: 50;
		min-height: auto;
		height: auto;
		overflow: hidden;
	}
	#inner-sidebar {
		width: auto;
		position: relative;
		height: 200px;
		overflow-x: auto;
		overflow-y: hidden;
	}
	#inner-sidebar.show2 #view_3 {
		top: 100%;
	}
	#inner-sidebar.show3 #view_2 {
		top: 100%;
	}
	.sidebar-screen {
		position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		width: 100%;
		float: none;
		min-height: auto;
		white-space:nowrap;
		overflow-x: auto;
		transition: top 0.7s ease-in-out;
	}
	.sidebar-screen .option {
		display: inline-block;
		width: 140px;
		min-height: 140px;
		margin: 0 12px 14px 0;
		vertical-align: text-top;
	}
	#view_2 {
		padding-left: 10px !important;
	}
	#view_2 .option {
		padding: 20px 0 0;
	}
	#view_3 div[class*="col-"] {
		padding: 7px !important;
	}
	.button-container {
		display: none;
	}
	#view_3 .button-container {
		top: 600px;
	}
	.visualiser-section .inner-options,
	.option.flex {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
	.options-row {
		display: inline-block;
	}
	.options-row .col-xs-6 {
		padding-left: 0;
		padding-right: 5px;
	}
	.option.flex {
		width: auto;
		vertical-align: middle;
		margin: 0;
	}
}


/****** Home Button ******/
a.home-button {
	position: absolute;
	left: 20px;
	top: 20px;
	border-radius: 3px;
	padding-top: 10px;
	padding-bottom: 10px;
	cursor: pointer;
	z-index: 999;
	text-decoration: none;
}
.btn.btn-dark {
	background-color: #2881c0;
	background-image: linear-gradient(to right , #2881c0, #2ba1e3);
	color: #fff;
	transition: all 0.3s ease;
	background-size: 150%;
	box-shadow: none;
	border-radius: 5px;
}
.btn-default .vis-icon {
	color: #333;
	color: var(--e-global-color-primary);
}
.btn.btn-dark:hover {
	color: #fff;
	background-position: 70%;
	box-shadow: none;
	border-radius: 5px;
}
.btn-wide {
	padding-left: 40px;
	padding-right: 40px;
}
.base-colours-btn:hover {
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
	text-decoration: none;
}
.base-colours-btn:hover a, .base-colours-btn:focus a, .base-colours-btn a:hover, .base-colours-btn a:focus {
	text-decoration: none;
	color: #f5f5f5;
	outline: none;
}

.base-colours-btn a {
	color: #ddd;
	font-size: 0.9em;
	font-weight: bold;
}
.base-colours-btn img {
	width: 40px;
	margin-left: 12px;
}
@media screen and (max-width: 768px) {
	a.home-button, .home-button {
		position: initial;
		display: block;
	}
	.btn-wide {
		padding-left: 18px;
		padding-right: 18px;
	}
}

/* Options */
.option-title {
	padding: 2px 4px 3px;
	position: absolute;
	left: -1px;
	top: 10px;
	font-size: 1.1em;
	font-weight: 500;
    border-radius: 0 3px 3px 0;
}
.visualiser-section .option:hover {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	border: 1px solid;
	border-color: #999;
	border-color: var(--e-global-color-primary);
}
.option h3 {
	margin-top: 0;
}
.base-colours-btn {
	position: fixed;
	top: 10px;
	right: -2px;
	border-radius: 3px;
	padding: 6px 12px;
	cursor: pointer;
	z-index: 999;
	background-color: #2881c0;
	background-image: linear-gradient(to right , #2881c0, #2ba1e3);
	color: #fff;
}
.base-colours-btn:hover {
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
.base-colours-btn a {
	color: #fff;
	font-size: 0.9em;
	font-weight: bold;
}
.base-colours-btn:hover a,
.base-colours-btn:focus a,
.base-colours-btn a:hover,
.base-colours-btn a:focus {
	text-decoration: none;
	color: #f5f5f5;
	outline: none;
}
.base-colours-btn img {
	width: 40px;
	margin-left: 12px;
}


/****** Product CSS ******/
.product-view {
	height: 0;
	padding-top: 47%;
	position: relative;
	max-width: 1800px;
	margin: auto;
	top: 50px;
}
@media screen and ( max-width: 992px ) {
	.product-view {
		padding-top: 80%;
	}
	.product-view #screen-container img {
		width: 80%;
		left: -10%;
	}
}

/* Tables */
.table-view {
	position: relative;
	padding-top: 53%;
	height: 0;
	margin-top: 50px;
}
.table-style {
	display: block;
	margin: 24px 0;
	border-radius: 8px;
	padding: 0 12px;
}
/* Table Options Styles */
.table-title,
.screen-title {
	font-size: 3em;
	text-transform: uppercase;
	color: #000;
	padding-right: 20px;
}
h2.table-title,
h2.screen-title {
	display: inline-block;
	vertical-align: middle;
}
h3.table-title,
h3.screen-title {
	text-align: center;
}

.table-container {
	background-size: cover;
	margin: auto;
	position: absolute;
	bottom: 0;
	height: 100% !important;
	width: 100%;
	z-index: -1;
}
.table-container img {
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
}
.screen-container img {
	width: 50%;
	position: absolute;
	bottom: 0;
	left: 0;
}
@media (min-width:992px) {
	h3.table-title,
	h3.screen-title {
		width: 100%;
	}
	.container-fluid.options-row {
		flex-flow: wrap;
	}
}
@media  screen and ( max-width: 420px ) {
	.main {
		padding-top: 60px;
	}
}

#mobile-button-container {
	position: fixed;
	bottom: 24px;
	left: 10px;
	z-index: 1000;
	width: calc(100vw - 24px);
}


/* LE */
.visualiser-section .inner-options {
	position: relative;
	font-size: 1rem;
}
.visualiser-section .inner-options .option {
	cursor: initial;
}
.visualiser-section .inner-options .option:hover {
	border-color: transparent;
}
.visualiser-section .inner-option {
	position: relative;
	right: 0;
	z-index: 1;
	width: 72px;
	padding: 10px;
	margin: 0;
	background-color: transparent;
	border-radius: 5px;
	cursor: pointer;
	border: none;
}

.visualiser-section .inner-option img {
	border-radius: 50%;
}

.visualiser-section .inner-option:hover {
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
	border-radius: 5px;
	border-color: #333;
	border-color: var(--e-global-color-primary);
}
.option.inner-options {
	cursor: inherit;
}
.inner-option .label {
	font-weight: 300;
	padding: 2px 3px 3px;
	font-size: 1.1em;
	margin-top: 2px;
	text-transform: uppercase;
	background-color: #424242;
}
@media  screen and (max-width: 992px) {
	.options-row .option.inner-options {
		width: 160px;
		padding-right: 47px;
	}
	.visualiser-section .inner-option {
		padding: 5px;
		width: 60px;
		display: block;
		margin-top: 5px;
	}
	.inner-options > img {
		width: 100px;
		height: 100px;
		max-width: inherit;
		vertical-align: middle;
		margin-right: 10px;
	}
	.inner-option .option-title {
		font-size: 10px;
		font-weight: normal;
		padding-top: 2px;
	}
	.inner-option:hover {
		box-shadow: none;
	}
}

/****** Preview ******/
div.visualiser-container {
	width: 100%;
	padding: 30px;
}
div.visualiser-container-content {
	min-height: calc(100vh - 60px);
}
.visualiser-container .table-container {
	width: 100%;
	min-height: calc(100vh - 60px);
	padding: 24px
}
.table-container .block-content {
	position: relative;
}
.voption {
	border-radius: 5px;
	padding: 20px 12px 12px 12px;
	cursor: pointer;
	border: 1px solid #EEE;
	position: relative;
}
.voption:hover {
	box-shadow: 0 0 3px rgba(0,0,0,0.1);
	border: 1px solid #aaa;
    background: #f1f1f1;
}
.voption .cta {
	display: none;
	align-content: center;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	height: 100%;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: rgba(0,0,0,0.7);
	z-index: 10;
	color: white;
	border-radius: 3px;
}
.voption.v-inactive .cta {
	display: flex;
}
.visualiser-modal-content p {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 1.1em;
}
.visualiser-modal-content img{
	max-width: 100%;
	opacity: 0.7;
}
#visualise-modal-content {
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}
#modal-visualiser .modal-dialog {
	margin: 0;
}
.back-to-visual {
	position: absolute;
	z-index: 1000;
	width: 140px;
	margin: 40px;
}
.visual {
	overflow: hidden;
	position: relative;
	height: 100%;
	max-height: 1250px;
}
.disclaimer {
	float: right;
	font-size: 12px;
	color: #aaa;
	margin: 20px 12px ;
}
@media (max-width: 680px) {
	.disclaimer {
		width: 100%;
		text-align: center;
		margin: 5px 0;
		float: none;
		line-height: 1.8;
	}
	.disclaimer.modal-disclaimer {
		position: relative;
		top: auto;
	}
}
@media (max-width: 768px) {
	.visualiser-container {
		width: calc(100% - 20px);
	}
}

/* Table/Screen Preview */
.t-container {
	height: 100% !important;
	bottom: 0;
}

.t-container img {
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
	height: 100%;
	width: 100%;
	object-fit: contain;
}
.s-container {
	position: relative;
}
.s-container img {
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
}
#table-container1 {
	z-index: 40;
}

/* Single Table */
.visual.single-table .t-container {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
}
.single-table .t-container img {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 100%;
	width: 100%;
	object-fit: contain;
}

/* Triple Table */
.visual.triple-table {
	display: flex;
}
.triple-table .t-container {
	position: relative;
	width: 33.3333%;
}
.triple-table #table-container1 img {
	margin-left: 44%;
	transform: translateY(3%) scale(1.1);
	transform-origin: bottom;
}
.triple-table #table-container2 {
	z-index: 30;
}
.triple-table #table-container2 img {
	transform: translate(-2%, -9%) scale(0.9);
	transform-origin: bottom;
}
.triple-table #table-container3 {
	z-index: 10;
}
.triple-table #table-container3 img {
	transform: translate(-57%, -18.5%) scale(0.75);
	transform-origin: bottom;
}

/* Single Table Screen */
.single-table.screen {
	display: flex;
}
.single-table.screen .t-container,
.single-table.screen .s-container{
	width: 50%;
	position: relative;
}
.single-table.screen .t-container img {
	height: 90%;
}
#screen-container-1 {
	height: 100% !important;
}
#screen-container-1 img {
	position: absolute;
	bottom: 0;
	left: -35%;
	height: 100%;
	width: 100%;
	object-fit: contain;
	transform: translateX(-16%) translateY(0) scale(1.6);
	bottom: 8vh;
}

/* Triple Table Screen */
.triple-table.screen .s-container{
	width: 25%;
    position: relative;
}
#screen-container-3 {
	height: 100% !important;
}
#screen-container-3 img {
	height: 100%;
	object-fit: contain;
	transform: translate(-186%, -10%) scale(1.65);
}

@media  screen and (max-width: 768px){
	.visual {
		padding-top: 20%;
	}
}
@media  screen and (max-width: 480px){
	.visual {
		padding-top: 20%;
	}
}
#table_container_fascia {
	display: none;
}
#screen-container {
	z-index: 9;
}

/****** Share Form ******/
.item-spec {
    text-transform: capitalize;
}
#gform_wrapper_14 {
	max-width: 800px;
	margin: 50px auto !important;
	background: #ececec;
	padding: 50px;
	border-radius: 10px;
}
#gform_wrapper_14 input {
	width: 100%;
}
#gform_wrapper_14 .gform_footer {
	text-align: center;
}
#gform_submit_button_14 {
	width: auto !important;
	margin: auto;
	padding: 10px 20px;
	border: none;
	border-radius: 10px;
	color: white;
	background: #2881c0;
}
#gform_submit_button_14:hover {
	color: black;
}