section.compare {
	max-width: 100vw;
	padding: 1em 0 5em 0;
	/*overflow-x: hidden;*/ /*issues about 'laptop-model-selection' (laptop model) position:sticky*/
}

section.compare .row.compare-products {
	position: relative;
	margin: 0 auto;
}

section.compare .row.compare-products .loader-ripple {
	top: 30px;
}

@media (min-width: 992px) {

	section.compare .row.compare-products {
		width: 640px;
	}

	/* shows title in top left corner on desktop */
	section.compare .container-lg > h2.featured-title {
		position: absolute;
	}

	section.compare .container-lg > h2.featured-title b {
		display: block;
	}

}

@media (min-width: 1200px) {

	section.compare .row.compare-products {
		width: 840px;
	}

}



/* ===== compare tips ===== */

#sliderCompareTips {
	max-width: 720px;
	margin: 2em auto;
	padding: 0 50px 20px 50px;
	border-radius: 4px;
	background-color: #fff;
	box-shadow: 0px 3px 16px 0px rgba(26,43,51,0.14);
}

#sliderCompareTips .thumbnail {
	position: relative;
	text-align: center;
}

#sliderCompareTips .thumbnail:first-child:after {
	content: "";
	position: absolute;
	width: 50px;
	height: 50px;
	top: 50%;
	left: 100%;
	margin-top: -25px;
	margin-left: -25px;
	background: url(../images/lBrVbxJOd2rr.svg) center no-repeat;
}

#sliderCompareTips .thumbnail span {
	display: inline-block;
	padding: 0.2em 0.4em;
	font-size: 0.9em;
	font-weight: bold;
	border: 1px solid rgba(0,197,229,0.5);
	border-radius: 3px;
	background-color: rgba(0,197,229,0.2);
}

#sliderCompareTips .thumbnail img {
	width: 180px;
	margin: 0 auto;
}

#sliderCompareTips .text {
	padding: 1em;
	font-size: 0.8em;
}

#sliderCompareTips .btn {
	text-align: center;
}



/* ===== add to compare box ===== */

section.compare .product {
	position: relative;
}

section.compare.qty-0 .product.add-to-compare {
	margin-bottom: 4em;
}

section.compare .product > .thumbnail {
	position: relative;
	padding: 0 !important;
}

section.compare .product > .thumbnail div {
	position: relative;
	width: 175px;
	height: 150px;
	margin: 0 auto;
	background-color: #e8e9ea; /* required for blending mode to work on transition */
}

section.compare.qty-0 .product.add-to-compare.first > .thumbnail div img:hover,
section.compare:not(.qty-0) .product.add-to-compare:not(.first) > .thumbnail div img:hover {
	cursor: pointer;
}

section.compare .product.full-specs > .thumbnail div img {
	mix-blend-mode: multiply;
}

section.compare .product.first > .thumbnail:after {
	content: "";
	position: absolute;
	width: 50px;
	height: 50px;
	top: 50%;
	left: 100%;
	margin-top: -25px;
	margin-left: -25px;
	background: url(../images/lBrVbxJOd2rr.svg) center no-repeat;
}

section.compare .product .laptop-model-selection {
	/* sticky does not work on qty-0 because container height is small */
	position: sticky;
	top: 80px;
	background-color: #e8e9ea !important;
	box-shadow: 0px 14px 10px -10px rgba(26,43,51,0.3);
	z-index: 9998;
}

@media (min-width: 992px) {

	section.compare .product.first .laptop-model-selection:before {
		content: "";
		position: absolute;
		display: block;
		width: 1920px;
		height: 100%;
		top: 0;
		right: 0;
		background-color: #e8e9ea;
		z-index: -1;
	}

}

.compare-model-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	height: 70px;
	padding: 10px;
}

.compare-model-container a.compare-model-title {
	display: block;
	width: 100%;
	font-size: 20px;
	line-height: 38px;
	text-align: center;
	color: rgba(0,197,229,1);
	cursor: pointer;
}

.compare-model-container a.compare-model-title:hover {
	color: rgba(0,197,229,0.8);
}

.compare-model-select {
	width: 100%;
	overflow: hidden;
	z-index: 99999;
}

.compare-model-select input {
	width: 100%;
	height: 40px;
	margin-bottom: 8px;
	border: 1px solid rgba(0,197,229,0.4);
}

.compare-model-items {
	height: calc( 100vh - 180px );
	padding: 0 5px;
	overflow-y: scroll;
}

.compare-model-items a {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	position: relative;
	padding: 5px 10px;
	border-radius: 3px;
	overflow: hidden;
	transition: all 0.4s;
}

.compare-model-items a:hover {
	background-color: rgba(0,197,229,0.3);
}

.compare-model-items a.clicked:hover {
	background-color: transparent;
}

.compare-model-items a div.thumbnail {
	flex-basis: 60px;
}

.compare-model-items a div.thumbnail img {
	max-width: 50px;
}

.compare-model-items a div.infos {
	flex-basis: calc(100% - 60px);
}

.compare-model-items a div.infos div.laptop-model {
	font-size: 14px;
	white-space: nowrap;
}

.compare-model-items a div.infos div.laptop-model b {
	display: block;
}

.compare-model-items a div.infos ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.compare-model-items a div.infos ul li {
	margin: 1px;
	padding: 2px 4px 0 4px;
	font-size: 11px;
	line-height: 14px;
	color: rgba(26,43,51,1);
	border: 1px solid rgba(26,43,51,0.1);
	border-radius: 3px;
	background-color: rgba(255,255,255,1.0);
}

.compare-model-items a:hover div.infos ul li {
	border-color: transparent;
}

.compare-model-items a div.infos div.availability {
	width: fit-content;
	margin: 1px;
	padding: 2px 4px 0 4px;
	font-size: 11px;
	line-height: 14px;
	border-radius: 3px;
}

.compare-model-items a div.infos div.availability.in-stock {
	font-weight: bold;
	color: #FFF;
	background-color: #99cc33;
}

.compare-model-items a div.infos div.availability.out-of-stock {
	color: rgba(26,43,51,0.8);
	font-style: italic;
	background-color: rgba(26,43,51,0.14);
}

/* laptop's name — models added to comparison) */
.compare-model-container h3 {
	position: relative;
	margin: 0;
	font-size: 18px;
	padding: 7px 12px 5px 12px;
	line-height: 1em;
	white-space: nowrap;
	border: 1px solid rgba(0,197,229,0.5);
	border-radius: 4px;
	background-color: rgba(0,197,229,0.2);
}

.compare-model-container h3 a {
	color: #1A2B33;
}

.compare-model-container h3 a b {
	display: block;
	white-space: nowrap;
}

.compare-model-container h3 a.remove-btn {
	position: absolute;
	width: 18px;
	height: 18px;
	top: 0;
	right: 0;
	transform: translate(40%, -40%);
	font-size: 18px;
	color: rgba(26,43,51,0.5);
	border-radius: 50%;
	background-color: #FFF;
	z-index: 1;
}

.compare-model-container h3 a.remove-btn:hover {
	color: rgba(26,43,51,1.0);
}

a.compare-change-title { /* Btn Change Laptop */
	display: block;
	position: absolute;
	padding: 0 4px;
	right: 5px;
	bottom: 5px;
	font-size: 16px;
	line-height: 20px;
	color: #00a9c4;
	background-color: #fff;
	border-radius: 4px;
}

a.compare-change-title > i {
	width: 14px;
	height: 14px;
	margin-right: 4px;
	font-size: 14px;
}

@media (min-width: 992px) {

	.compare-change-container > .compare-model-select {
		top: 49px;
	}

}

@media (max-width: 992px) {

	a.compare-change-title {
		right: 0;
		bottom: 0;
		font-size: 12px;
		line-height: 16px;
	}
	
	a.compare-change-title > i {
		width: 12px;
		height: 12px;
		font-size: 12px;
	}
	
}



/* ===== added laptops ===== */

section.compare .product.full-specs .spec-row {
	padding: 14px 14px 24px 14px;
	font-size: 0.9em;
}

@media (min-width: 992px) {

	section.compare.qty-1 .product.first .spec-row:nth-child(even):before,
	section.compare .product:not(.first) .spec-row:nth-child(even):before {
		content: "";
		position: absolute;
		display: block;
		width: 1920px;
		height: 100%;
		top: 0;
		right: 0;
		background-color: rgba(255,255,255,0.5);
		z-index: -1;
	}

}

section.compare .product.full-specs .spec-row > h4 {
	left: -200px;
}

section.compare .product.full-specs:not(.first) .spec-row > h4 {
	display: none;
}

section.compare .spec-row.price {
	padding: 0 0 14px 0;
}

section.compare .buy-box {
	height: 100%;
}

section.compare .buy-box div.lowest-price i:hover {
	opacity: 0;
}

section.compare div.footer-infos {
	display: none;
}

section.compare .product.full-specs .spec-row.total-points > h4 + p {
	display: block;
	max-width: fit-content;
	margin: 0 auto 10px auto;
	padding: 4px 8px 0 8px;
	font-size: 2em;
}

section.compare .product.full-specs .spec-row.total-points .expert-tips { /* verify */
	padding: 10px 14px;
}

section.compare .product.full-specs .spec-row.total-points .expert-tips h4 { /* verify */
	margin: 0 0 8px;
	font-size: 13px;
}

section.compare .product.full-specs .spec-row.total-points .expert-tips p { /* verify */
	font-size: 13px;
}

section.compare .small .usage-recommendations > div {
	max-width: 120px;
}

section.compare .small .usage-recommendations > div > h3 {
	opacity: 0.55;
}

section.compare .product.full-specs .spec-row p {
	margin-bottom: 2px;
	transition: 0.4s all;
}

section.compare .product.full-specs .spec-row p:last-child {
	margin-bottom: 0;
}

section.compare .product.full-specs .spec-row p.different-specs {
	border-color: rgba(204,198,41,0.2);
	background-color: rgba(204,198,41,0.3);
	transition: 0.4s all;
}

/* ram, ssd and ports */
section.compare .product.full-specs ul li {
	transition: 0.4s all;
}

/* ram, ssd and ports */
section.compare .product.full-specs .spec-row.ram ul li:not(.not-available).different-specs,
section.compare .product.full-specs .spec-row.m2 ul li:not(.not-available).different-specs,
section.compare .product.full-specs .spec-row.ports ul li:not(.not-available).different-specs {
	border-color: rgba(204,198,41,0.2);
	background-color: rgba(204,198,41,0.3);
	transition: 0.4s all;
}



/* ===== show differences between models ===== */

div.show-differences {
	position: fixed;
	bottom: 18px;
	left: 18px;
	border-radius: 4px;
	background-color: #FFF;
	opacity: 0;
	transition: 0.4s all;
	z-index: 9998;
}

div.show-differences.show {
	opacity: 0.9;
}

div.show-differences div {
	padding: 8px 12px;
	opacity: 0.7;
	transition: 0.4s all;
}

div.show-differences.show:hover {
	opacity: 1.0;
}

div.show-differences.show:hover div {
	opacity: 1.0;
}

/* the switch - the box around the slider */
div.show-differences.show .switch {
	display: inline-block;
	position: relative;
	padding-left: 70px;
	font-size: 20px;
	font-weight: bold;
	line-height: 30px;
	letter-spacing: -0.01em;
	cursor: pointer;
}

/* hide default HTML checkbox */
div.show-differences.show .switch input {
	display: none;
}

div.show-differences.show .slider {
	position: absolute;
	width: 60px;
	height: 30px;
	top: 0;
	left: 0;
	background-color: rgba(26,43,51,0.2);
	transition: 0.4s all;
	cursor: pointer;
}

div.show-differences.show .slider:before {
	content: "";
	position: absolute;
	width: 24px;
	height: 24px;
	top: 3px;
	left: 3px;
	background-color: white;
	transition: 0.4s all;
}

div.show-differences.show input:checked + .slider {
	background-color: rgba(204,198,41,1.0);
}

div.show-differences.show input:focus + .slider {
	box-shadow: 0 0 1px rgba(204,198,41,1.0);
}

div.show-differences.show input:checked + .slider:before {
	-webkit-transform: translateX(30px);
	-ms-transform: translateX(30px);
	transform: translateX(30px);
}

div.show-differences.show .slider.round {
	border-radius: 15px;
}

div.show-differences.show .slider.round:before {
	border-radius: 50%;
}

.arrow {
	width: 100px;
	height: 100px;
	position: fixed;
	bottom: 80px;
	left: 40px;
	text-align: center;
	z-index: 9998;
}

.arrow img {
	width: 100%;
	height: 100%;
}

.bounce {
	opacity: 0;
}

.bounce.show {
	-moz-animation: bounce 3s 3 0s;
	-webkit-animation: bounce 3s 3 0s;
	animation: bounce 3s 3 0s;
}

@keyframes bounce {

	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-30px);
	}

	60% {
		transform: translateY(-15px);
	}

	0%,
	20% {
		opacity: 0;
	}

	20%,
	60% {
		opacity: 1;
	}

	80%,
	100% {
		opacity: 0;
	}
}



@media (max-width: 991.98px) {

	#sliderCompareTips {
		padding: 0 10px 20px 10px;
	}
	
	#sliderCompareTips .thumbnail span {
		font-size: 0.8em;
	}
	
	#sliderCompareTips .thumbnail img {
		width: 100px;
	}
	
	#sliderCompareTips .text {
		padding: 1em 0;
	}

	#sliderCompareTips button.splide__arrow {
		top: 35%;
	}

	section.compare.qty-0 .product.add-to-compare {
		margin-bottom: 2em;
	}	

	section.compare .row.compare-products {
		width: 520px;
		max-width: 100%;
	}

	section.compare .product > .thumbnail div {
		max-width: 120px;
		height: auto;
	}

	section.compare .product .laptop-model-selection {
		top: 60px;
	}

	.compare-model-container {
		height: auto;
	}

	.compare-model-container a.compare-model-title {
		font-size: 14px;
	}

	.compare-model-container h3 {
		font-size: 12px;
	}

	.compare-model-container h3 b {
		font-size: 14px;
	}

	section.compare .product .spec-row:nth-child(even) {
		background-color: rgba(255,255,255,0.5);
	}

	section.compare .product.full-specs .spec-row {
		padding: 8px 8px 14px 8px;
	}

	section.compare .product.full-specs:not(.first) .spec-row > h4 {
		display: block;
		opacity: 0;
	}

	section.compare .spec-row.price h4 {
		display: none !important;
	}

	section.compare .small .usage-recommendations > div > h3 {
		position: relative;
		width: auto;
		top: auto;
		left: auto;
		line-height: 8px;
		text-align: left;
	}

	div.show-differences.show .switch {
		padding-left: 60px;
		font-size: 16px;
		line-height: 24px;
	}
	
	div.show-differences.show .slider {
		width: 50px;
		height: 24px;
	}
	
	div.show-differences.show .slider:before {
		width: 18px;
		height: 18px;
		top: 3px;
		left: 3px;
	}
	
	div.show-differences.show input:checked + .slider:before {
		-webkit-transform: translateX(25px);
		-ms-transform: translateX(25px);
		transform: translateX(25px);
	}
	
	div.show-differences.show .slider.round {
		border-radius: 12px;
	}

	.arrow {
		width: 50px;
		height: 50px;
	}

}