@import 'https://neon.epson-europe.com/files/repo/2016/mwd_framework/css/sweetalert.min.css';

main {
	overflow: hidden;
}

/* Breacrumb */

@media (min-width: 768px) {
	.page--content .breadcrumb a,
	.page--content .breadcrumb .current { color: #575756; }
	.page--content .breadcrumb a:after { background: #575756; }
}

/* Hero */

main > header {
	display: flex;
	height: calc(100vh - 58px);
	min-height: 630px;
	flex-flow: column;
	justify-content: flex-end;
	background: #EDEFEE url(../img/hero_mobile.jpg) no-repeat top/cover;
}
[dir=rtl] main > header {
	background-image: url(../img/hero_rtl_mobile.jpg);
}
main > header h1 {
	text-transform: uppercase;
}
main > header h1 + p {
	margin-bottom: 7px;
	font-weight: bold;
}
@media (min-width:481px) {
	main > header {
		background-image: url(../img/hero_smalltablet.jpg);
	}
	[dir=rtl] main > header {
		background-image: url(../img/hero_rtl_smalltablet.jpg);
	}
}
@media (min-width:600px) {
	main > header {
		height: auto;
		min-height: 500px;
		padding-bottom: 180px;
		background-image: url(../img/hero_tablet.jpg);
		background-size: auto;
		background-position: top;
	}
	[dir=rtl] main > header {
		background-image: url(../img/hero_rtl_tablet.jpg);
	}
	main > header > * {
		max-width: calc(50% - 10px);
	}
}
@media (min-width:768px) {
	main > header {
		padding-bottom: 190px;
		background-image: url(../img/hero_smalldesktop.jpg);
	}
	[dir=rtl] main > header {
		background-image: url(../img/hero_rtl_smalldesktop.jpg);
	}
}
@media (min-width: 960px) {
	main > header {
		background-image: url(../img/hero.jpg)
	}
	[dir=rtl] main > header {
		background-image: url(../img/hero_rtl.jpg);
	}
}

/* Scan */

#scan {
	background: url(../img/section_scan-tablet.jpg) no-repeat top/contain;
	padding-top: calc(58% + 30px);
}

@media (min-width: 768px) {
	#scan {
		display: flex;
		flex-flow: column;
		justify-content: center;
		min-height: 500px;
		padding-top: 145px;
		margin-top: -95px;
		background: url(../img/section_scan.jpg) no-repeat center top/cover;
	}
	#scan > * {
		width: 50%;
	}
	[dir=rtl] #scan {
		align-items: flex-end;
	}
}

/* Reveiw */

#review {
	background: url(../img/section_review-and-edit_tablet.jpg) no-repeat center top/contain;
	padding-top: calc(58% + 30px);
}

@media (min-width: 768px) {
	#review {
		display: flex;
		flex-flow: column;
		justify-content: center;
		align-items: flex-end;
		padding-top: 50px;
		min-height: 400px;
		background: url(../img/section_review-and-edit.jpg) no-repeat center top/cover;
	}
	[dir=rtl] #review {
		align-items: flex-start;
	}
	#review > * {
		width: 50%;
	}
}

/* Save */

#save {
	background: url(../img/section_save_tablet.jpg) no-repeat center top/contain;
	padding-top: calc(58% + 30px);
}

@media (min-width: 768px) {
	#save {
		display: flex;
		flex-flow: column;
		justify-content: center;
		padding-top: 50px;
		min-height: 400px;
		background: url(../img/section_save.jpg) no-repeat center top/cover;
	}
	[dir=rtl] #save {
		align-items: flex-end;
	}
	#save > * {
		width: 50%;
	}
}

/* OCR */

#ocr {
    background: #f6f6f6 url(../img/section_ocr_tablet.jpg) no-repeat top/contain;
    padding-top: calc(58% + 30px);
}

@media (min-width: 768px) {
	#ocr {
		position: relative;
		display: flex;
        overflow: hidden;
		flex-flow: column;
		justify-content: center;
		align-items: flex-end;
		padding-top: 50px;
		min-height: 500px;
		background-image: none;
	}
	[dir=rtl] #ocr {
		align-items: flex-start;
	}
	#ocr:after {
		content: '';
		position: absolute;
		right: 50%;
		top: 0;
		left: 0;
		bottom: 0;
		background: url(../img/img_OCR.jpg) no-repeat left top/cover;
	}
	#ocr > *:not(a) {
		width: calc(50% - 20px);
	}
}
@media (max-width: 960px) {
	#ocr:after {
		background-position: -200px 0;
	}
}

/* Benefits */

#benefits {
	display: flex;
	flex-flow: row wrap;
	margin-left: -20px;
	padding-top: 60px;
}

#benefits > *,
#benefits:after {
	flex: 1 1 275px;
	margin-left: 20px;
}

#benefits:after {
	content: '';
}

#benefits h2 {
	flex: 100%;
	margin-bottom: 22px;
	text-align: center;
	font-size: 22px;
}

#benefits h3 {
	margin: 0 0 5px;
	padding-top: 130px;
	font-size: 16px;
	font-weight: bold;
	line-height: 26px;
	color: #10218b;
	background-repeat: no-repeat;
}

#benefits > section:nth-of-type(1) h3 { background-image: url(../img/icon_name.png); }
#benefits > section:nth-of-type(2) h3 { background-image: url(../img/icon_pdf.png); }
#benefits > section:nth-of-type(3) h3 { background-image: url(../img/icon_pow.png); background-position: 0 20px; }

[dir=rtl] #benefits > section h3 {
	background-position: right top;
}

#benefits > section {
	margin-bottom: 60px;
}

@media (min-width:768px) {
    #benefits {
        padding-bottom: 0;
    }
}

/* How to */

#how {
    background: #f6f6f6 url(../img/how-to-gwt_tablet.jpg) no-repeat top/contain;
    padding-top: calc(58% + 30px);
}

#how h2 + p {
	font-weight: bold;
    font-size: inherit;
    margin-bottom: 20px;
}
#how p {
    font-size: 13px;
    margin-bottom: 10px;
}

#how a {
    margin-bottom: 25px;
	display: table;
}

@media (min-width: 768px) {
	#how {
		position: relative;
		display: flex;
        overflow: hidden;
		flex-flow: column;
		justify-content: center;
		padding-top: 50px;
		min-height: 500px;
		background-image: none;
	}
	[dir=rtl] #how {
		padding-right: calc(50% + 70px);
	}
	#how:after {
		content: '';
		position: absolute;
		left: 50%;
		top: 0;
		right: 0;
		bottom: 0;
		background: url(../img/img_how-to-get.jpg) no-repeat left top/cover;
	}
	#how > *:not(a) {
		width: calc(50% - 20px);
	}
	[dir=rtl] #how > *:not(a) {
		width: auto;
	}
}
@media (max-width: 960px) {
	#how:after {
		background-position: -200px 0;
	}
}

/* globals */

[hidden] {
	display: none !important;
}
* {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
body {
    margin: 0;
    padding: 0;
}
main {
    display: flex;
    flex-flow: column;
	font: 16px/1.5 Helvetica, sans-serif;
	color: #575756;
}
main h1,
main h2,
main p,
main ul,
main ol{
	margin: 0 0 20px;
}
main p:last-child {
	margin-bottom: 0;
}
main h1 {
	font-size: 36px; line-height: 48px;
}
main h2 {
	font-size: 28px; line-height: 33px;
}
main h1,
main h2 {
	font-weight: 300; color: #10218b
}

/* links and button */

main a {
	color: #10218b;
	font-weight: bold;
	text-decoration: none;
}
main a:hover {
	text-decoration: underline;
	opacity: 0.8;
}
main > * > a,
button {
	display: inline-block;
	width: fit-content;
	width: -moz-fit-content;
	margin: 0;
	padding: 8px 17px;
	line-height: 1.7;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: opacity .2s ease;
	background: #f48f44;
	color: white;
	border: none;
	cursor: pointer;
}
main > * > a:hover {
	text-decoration: none;
}
.ie11 main > * > a,
.ie11 main button {
	display: table;
	width: auto;
}

/* container */

@media (max-width:480px) { main > * { padding:50px calc((100% - 300px) / 2) }}
@media (min-width:481px) { main > * { padding:50px calc((100% - 480px) / 2) }}
@media (min-width:600px) { main > * { padding:50px calc((100% - 576px) / 2) }}
@media (min-width:768px) { main > * { padding:50px calc((100% - 704px) / 2) }}
@media (min-width:960px) { main > * { padding:50px calc((100% - 940px) / 2) }}

/* Anchorbar */

@media (min-width: 768px) {
	main > nav [href="#scan"],
	main > nav [href="#ocr"]{
		min-width: 192px;
	}
}

main > nav [href="#scan"] { background-image: url(../img/anchor_compact_disc.png); }
main > nav [href="#ocr"] { background-image: url(../img/anchor_bulb.png); }
main > nav [href="#how"] { background-image: url(../img/anchor_circle_plus.png); }
main > nav [href="#compat"] { background-image: url(https://neon.epson-europe.com/files/repo/2016/mwd_framework/img/icons/anchorbar/anchor_scanner-products.png); } /* change to relative */
main > nav {
	display: flex;
	position: relative;
	top: 0;
	z-index: 10;
	padding-top: 0;
	padding-bottom: 0;
	font-size: 13px;
	line-height: 1.7;
}
main > nav > p {
	display: none;
	margin: 0 25px 0 0;
	align-self: center;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
	color: white;
}
[dir=rtl] main > nav p {
	margin-left: 2.5rem;
	margin-right: 0;
}
main > nav ul {
	background-color: #10218b;
	flex: 1;
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1;
}
main > nav ul::before {
	position: absolute;
	left: 0;
	z-index: -1;
	width: 100vw;
	height: 100%;
	content: '';
}
main > nav ul::before {
	background-color: #10218b;
}
main > nav li {
	flex: 1;
}
main > nav ul a {
	display: block;
	margin: 0 auto;
	max-width: 150px;
	height: 75px;
	padding: 0 10px;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	opacity: 0.75;
	background-position: center;
	background-repeat: no-repeat;
	color: white;
}
main > nav ul a:hover {
	text-decoration: none;
}
main > nav ul a:hover,
main > nav ul a[aria-selected="true"] {
	opacity: 1;
}
main > nav ul a[aria-selected="true"] {
	background-color: #010e68;
}
@supports (position: sticky) or (position: -webkit-sticky) {
	main > nav {
		position: sticky;
		position: -webkit-sticky;
	}
}
@media (max-width: 767px) {
	main > nav li {
		font-size: 0;
	}
}
@media (min-width: 768px) {
	main > nav li {
		text-indent: 0;
	}
	main > nav ul a {
		height: 95px;
		padding-top: 65px;
		background-position:
			center 23px;
	}
	main > nav p {
		display: block
	}
}
@media (min-width: 1131px) {
	main > nav ul {
		position: relative;
	}
	main > nav ul::before {
		left: -200%;
		width: 200%;
	}
	[dir=rtl] main > nav ul::before {
		right: -100%;
		left: auto;
	}
	main > nav ul::after {
		position: absolute;
		right: -94px;
		border-top: 95px solid #10218b;
		border-right: 95px solid transparent;
		content: '';
	}
	[dir=rtl] main > nav ul::after {
		left: -95px;
		right: auto;
		border-left: 95px solid transparent;
		border-right: none;
	}
}
.site-wrapper { overflow: visible; }
@media (max-width: 767px) {
	.site-header > .container > div:nth-child(2) { overflow: hidden; }
}
@media (max-width: 876px) {
	.site-header .header-nav > li:last-of-type { position: relative; }
	.site-header .header-nav > li:last-of-type .header-nav__sub,
 	.site-header .header-nav > li:last-of-type .second-level { right: 0 !important; }
}
@media (max-width: 959px) {
	.breadcrumb { left: auto !important; right: auto !important; }
	.breadcrumb > ul > li:first-child { padding-left: 5px; }
}

/* Range (cms-module )*/

.solr-search-header h1  {
    font-size: 26px;
    line-height: 28px;
    text-align: center;
    margin-bottom: 30px;
}

/* Contact */

#contact {
	background: #f6f6f6;
}
#contact > header {
	margin-bottom: 50px;
}
#contact > header > small {
	font-weight: bold;
}
#contact form div {
	display: flex;
	flex-flow: row wrap;
}
#contact div > *,
#contact textarea {
	width: 100% !important; /* override cms */
}
#contact div > *:not(label) {
	margin-bottom: 20px;
}
#contact label {
	display: flex;
	margin-bottom: 15px;
	font-size: 12px;
	line-height: 18px;
}
#contact label input {
	margin: 2px 6px 0 0;
	flex-shrink: 0;
}
[dir=rtl] #contact [type=checkbox] {
	margin-left: 6px;
	margin-right: 0;
}
#contact fieldset {
	margin: 15px 0 0;
	padding: 0;
	border: none;
}
#contact fieldset:nth-of-type(2) small {
	display: block;
	margin: 10px 0 20px;
	font-size: 11px;
}
#contact fieldset:nth-of-type(3) {
	margin: 50px 0 15px;
}
#contact textarea {
	height: 120px;
}
#contact legend {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 5px;
	padding: 0;
}
#contact [type=text],
#contact [type=tel],
#contact [type=email],
#contact select,
#contact select.is-invisible,
#contact textarea {
    padding: 10px 5px;
    font-size: 13px;
	line-height: 15px !important;
    font-family: inherit;
    border-color: #D8D7D7;
    box-shadow: none;
	background-color: transparent;
}
#contact [type=text],
#contact [type=tel],
#contact [type=email],
#contact select {
    border-width: 0 0 1px 0;
    border-style: solid;
	overflow: hidden;
}
#contact select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    color: inherit;
    background: url(../img/select-arrow.svg) no-repeat right center;
    box-sizing: border-box; /* cms */
	text-overflow: ellipsis;
}
.chrome #contact select {
	white-space: pre-wrap;
}
[dir=rtl] #contact select {
	background-position: left center;
}
#contact select::-ms-expand {
    display: none;
}
#contact form > button {
	margin-top: 20px;
}
#contact form.submitted *:invalid {
    border-color: red !important;
}
#contact form.submitted [type=checkbox]:invalid {
	outline: 1px solid red;
}
@media (min-width:481px) and (max-width:600px), (min-width:768px) and (max-width:960px) {
	[lang=es] #contact [name=Email] {
		font-size: 10px;
	}
}
/* cms */
#contact select.is-invisible + div,
#contact select.is-invisible + div + div {
    display: none !important;
}
#contact select.is-invisible {
    height: auto !important;
    clip: auto !important;
    outline: initial !important;
    position: static !important;
}
@media (min-width: 481px) {
	#contact form div > * {
		width: calc(50% - 20px) !important;
		margin-right: 20px;
	}
	[dir=rtl] #contact form div > * {
		margin-right: 0;
		margin-left: 20px;
	}
}
@media (min-width: 768px) {
	#contact form div > * {
		width: calc(33.333% - 20px) !important;
	}
}

/* 'Contact us' button on the side */

main > nav > a {
	position: fixed;
	right: 0;
	top: 50%;
	transform-origin: bottom right;
	transform: rotate(-90deg) translateX(50%);
	margin-top: -46px;
	width: auto;
	text-transform: uppercase;
	padding: 12px 15px 12px 38px;
	background-image: url(../img/icon-misc-email.svg);
	background-repeat: no-repeat;
	background-size: 20px;
	background-position: 10px center
}
[dir=rtl] main > nav > a {
	right: auto;
	left: -64px;
	width: 110px;
}
@media (max-width:767px) {
	main > nav > a {
		display: none;
	}
}

/* Popup sections */

main > section.pop {
	background: white !important;
	position: absolute;
	z-index: 99999;
	left: 50%;
	top: 0;
	transform: translate(-50%, 0);
	width: 100vw;
	max-width: 960px;
	max-height: 100%;
	overflow: auto;
	padding: 40px;
}
main > section.pop span.close {
	width: 15px;
	height: 15px;
	background: url(../img/popup-close-icon.svg) no-repeat;
	position: absolute;
	right: 15px;
	top: 15px;
	content: '';
	cursor: pointer;
}
[dir=rtl] main > section.pop span.close {
	right: auto;
	left: 15px;
}
body.overlay {
	position: relative;
}
body.overlay::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 99998;
	background: rgba(0,0,0,0.85);
}
@media (min-width:960px) {
	main > section.pop {
		margin: 40px 0;
	}
}

/* Footer Tiles */

#footlinks { display: flex; flex-wrap: wrap; padding: 0; margin: 40px 0 -20px; }
#footlinks > li, #footlinks:after { flex:  1 300px; position: relative; display: flex; flex-direction: column; padding: 0 40px 0 50px; margin-bottom: 60px; }
.ie11 #footlinks > li, .ie11 #footlinks:after { flex-basis: 200px; }
#footlinks:after { display: block; content: ''; margin-bottom: 0; }
#footlinks > li::before { content: ''; position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: url(../img/footlinks.png) no-repeat center top; }
#footlinks h2 { margin-top: 0; color: #575755; font-size: 18px; line-height: 24px; margin-bottom: 15px; font-weight: normal; }
#footlinks p { font-size: 14px; margin-top: auto; margin-bottom: 15px; }
#footlinks li > a { width: fit-content; width: -moz-fit-content; border: 1px solid #E2E2E2; color: inherit; font-size: 14px; padding: 6px 20px;}
#footlinks li > a:hover {text-decoration: none; opacity: 0.7;}
.ie11 #footlinks li > a { display: table-cell; }
#footlinks b:first-child { color: #10218b; font-weight: normal; font-size: 12px; font-weight: 400; line-height: 1.8; }
[dir=rtl] #footlinks > li { padding-left: 50; padding-right: 40px; }
[dir=rtl] #footlinks > li::before { left: auto; right: 0; }
#footlinks > li:nth-child(1)::before { background-position: -126px -10px; }
#footlinks > li:nth-child(2)::before { background-position: -68px -10px; }
#footlinks > li:nth-child(3)::before { background-position: -10px -10px; }

/* Stuff */

body.ie11 {
	overflow-x: hidden !important;
}

.sweet-overlay {
	z-index: 99999;
}
.product-listing .meta {
	height: auto !important;
}

@media (max-width: 767px) and (orientation: landscape) {
	.compare-window.is-active {
		overflow: auto;
		top: 50% !important;
	}
}

.btn, .btn-blue, .btn-info, .btn-primary,
main > nav > a {
	text-transform: none !important;
}
