.detail-view-wrapper {
	overflow: scroll;
	-webkit-overflow-scrolling: touch;
	z-index: 1000;
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background-color: rgba(0,0,0,0.6);

	@include responsive('>', 'phones', (
		padding-top: 50px,
		padding-bottom: 150px
	));

	&.open {
		display: block;
	}

	.loader.large {
		position: fixed;
		left: 50%;
		top: 40%;
		transform: translate(-50%);
	}
	
	.modal-warning {
		display: none;
		position: relative;
		color: white;
	}
}

.detail-view-container {
	@extend .content-width;

	opacity: 0;
	position: relative;
	margin-bottom: 0;
	text-align: left;
	background-color: white;

	@include responsive('>', 'phones', (
		margin-bottom: $globalMargin
	));

	.col-1-3 {
		width: 100%;

		@include responsive('>', 'tablets', (
			width: 33.33%
		));
	}

	.col-2-3 {
		width: 100%;

		@include responsive('>', 'tablets', (
			width: 66.66%
		));
	}

	.detail-sidebar {
		@include responsive('>', 'tablets', (
			padding-left: 40px
		));
	}

	.cta-ask-question {
		display: block;
		margin-top: $globalMargin;
		margin-bottom: $globalMargin;
		background-color: $colorRed;


		@include responsive('>', 'tablets', (
			display: block,
			width: 100%,
			height: 0,
			margin-top: 0,
			padding-bottom: 100%,
			background-color: transparent,
			background-image: url(images/bubble-small-yellow.png),
			background-position: left top,
			background-size: contain,
			background-repeat: no-repeat
		));

		&:hover {
			text-decoration: none;
		}

		h3,
		p {
			margin-top: 0;
			line-height: 1em;
			font-size: 1.335em;

			@include responsive('>', 'tablets-l', (
				font-size: 1.87em
			));
		}

		p {
			padding: $globalPadding;
			color: white;
		}

		h3 {
			padding: 0 $globalPadding $globalPadding;
			color: white;

			@include responsive('>', 'tablets', (
				padding: $globalPadding,
				color: $colorRed
			));
		}
	}

	.related {
		h2 {
			color: $colorRed;
		}

		a {
			display: block;
			font-weight: normal;
			line-height: 1.2em;
			font-style: italic;
			color: black;

			&:hover {
				text-decoration: underline;
			}
		}

		.bubble {
			padding: $globalPadding;
			margin-bottom: $globalMargin;
		}
	}

	.featured-slider {
		ul {
			padding: 0px;
			margin: 0px;

			li {
				padding: 10px;
				background-color: white;
				border: 1px solid $colorGrey;

				&:hover {
					h4 {
						text-decoration: underline;
					}
				}

				h4 {
					min-height: 60px;
				}
			}
		}

		.featured-product-image {
			height: 0;
			padding-bottom: 100%;
			background-repeat: no-repeat;
			background-position: center;
			background-size: contain;
		}
	}

	.bx-wrapper {
		margin-bottom: 10px;

		.bx-viewport {
			background-color: $colorYellow;
		}

		.bx-pager {
			&.bx-default-pager {
				a {
					width: 6px;
					height: 6px;
				}
			}
		}
	}

	.bx-prev {
		left: -50px;
	}

	.bx-next {
		right: -40px;
	}

	.bx-loading {
		display: none;
	}
}

.detail-view-inner {
	padding-top: $globalMargin;

	@include responsive('>', 'phones', (
		padding: $globalPadding
	));
}

.media-wrapper {
	position: relative;
	margin-bottom: $globalMargin-1-5;

	&.active {
		width: 100%;
		height: 0;
		padding-bottom: 56.25%;
	}

	> iframe,
	> .question-image {
		width: 100%;
		height: 100%;
		position: absolute;
		left: 0;
		top: 0;
	}

	> .question-image {
		background-repeat: no-repeat;
		background-position: center;
		background-size: cover;
	}
}

.question-text {
	position: relative;
	padding: 20px;

	h1 {
		margin-bottom: 0;
		font-size: 1.8em;
		font-style: italic;
		color: white;
	}
}

.inquirer-name {
	margin-bottom: 0;
	padding-left: 60px;
	color: black;
}

.inquirer-location {
	font-size: 0.75em;
}

.answer-wrapper {
	padding: 20px 0;
	color: white;
	background-color: white;

	h3,
	h4 {
		color: white;
	}

	h3 {
		font-size: 0.75em;
	}

	&.hide {
		.amtech-says {
			display: none;
		}

		.answer-text-wrapper {
			height: 0;
			padding: 0;

			&:after {
				display: none;
			}
		}
	}

	.answer-text-wrapper {
		position: relative;
		margin-left: 0;
		padding: 20px;
		color: black;
		border: 1px solid $colorGrey;
		margin: 60px 0 0;

		@include responsive('>', 'tablets', (
			margin: 60px $globalMargin 0 $globalMargin
		));

		button {
			float: right;
		}
	}

	.answer-text {
		padding: 10px 0 20px;
	}

	.amtech-text {
		color: black;
		margin: 20px 50px 0 0;
		text-align: right;
	}

	.amtech-says {
		float: right;
		position: relative;
		bottom: 10px;
		right: 60px;
		color: black;

		@include responsive('>', 'tablets', (
			bottom: 15px,
			right: 90px
		));

		.logo.small {
			display: inline-block;
			vertical-align: middle;
			height: 29px;
			margin-bottom: 10px;
			background-size: contain;
		}
	}

	.share-wrapper {
		position: absolute;
		right: 15px;
		bottom: -16px;
	}
}

.featured {
	display : none;
	padding: $globalPadding $globalPadding $globalMargin;
	background-color: $colorYellow;

	&.show {
		display: block;
	}

	h3 {
		font-size: 1.618em;
		color: black;
	}

	h4 {
		padding: 10px 0 0;
		margin-bottom: 0;
		font-size: 0.7em;
		color: black;
	}
	.featured-inner {
		padding-left: 60px;
		padding-right: 60px;
	}

	.col-inner {
		padding: 10px;
		border: 1px solid $colorGrey;

		&:hover {
			h4 {
				text-decoration: underline;
			}
		}
	}
}

/** HOMEPAGE MODAL VIEW **/
.detail-view-container {
	padding-bottom: $globalMargin;

	&.modal--small {
		max-width: 600px;
		margin-top: 50px;

		@include responsive('>', 'tablets', (
			margin-top: 0
		));
	}

	&.modal {
		@include responsive('>', 'phones', (
			margin-top: 50px,
			padding-bottom: 0
		));

		.btn-goback {
			position: absolute;
			width: 40px;
			height: 40px;
			font-size: 1em;

			&:before {
				display: block;
				padding-top: 10px;
				padding-left: 10px;
				color: black;
			}

			&.top {
				left: 0;
				top: 0;
			}

			&.bottom {
				left: 0;
				bottom: 0;
			}
		}
	}
}


/** SINGLE DETAIL PAGE **/
.detail-view-container {
	&.single {
		opacity: 1;
	}
}