/* Insert your custom CSS here */

.SiteContent .Grid .Banner {
	margin-top: 25px;
}

.Drawer {
	display: none;
}

.DrawerContainer .Drawer {
	display: block;
}

.PreviewButton {
	color: #80ba27;
	box-shadow: 0 0 0 20px #fff;
}

.easyupgradebutton:hover {
	background: #d5dbe3;
}

/* Trade-in summary component on EDU list products */
.tradein-details {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 1px solid #e4e7ee;
	border-radius: 12px;
	background-color: #f8f9fb;
	font-size: 0.95rem;
}

.tradein-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 5px;
}

.tradein-label {
	flex: 1 1 100%;
	font-weight: 700;
	color: #1d1f26;
	display: block;
	text-align: left;
}

.tradein-value {
	flex: 1 1 100%;
	display: block;
	text-align: left;
	font-weight: 300;
	color: #111;
	word-break: break-word;
	margin-top: 2px;
}

.tradein-row--hidden {
	display: none;
}

@media (max-width: 640px) {
	.tradein-value {
		text-align: left;
	}
	.tradein-row {
		gap: 6px;
	}
}

/* Stack easy device tab buttons nicely on narrow viewports */
.easydevicebar .nav-item {
	margin-bottom: 8px;
}

@media (max-width: 576px) {
	.easydevicebar {
		flex-direction: column;
		align-items: stretch;
		padding: 12px 0;
	}

	.easydevicebar .nav-item {
		width: 100%;
	}

	.easydevicebar .easy-link {
		display: block;
		width: 100%;
		margin: 5px 0;
		text-align: center;
	}
}

/* Category description shortener */

.CategoryDescription--collapsible {
	position: relative;
}

.CategoryDescription--collapsed {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.CategoryDescription--collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.5rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 80%);
}

.CategoryDescription--expanded::after {
	opacity: 0;
	visibility: hidden;
}

.CategoryDescriptionToggle {
	margin: 1rem auto;
	display: block;
	font-weight: 600;
	cursor: pointer;
}

.CategoryDescriptionToggle:focus-visible {
	outline: 2px solid #5cbb00;
	outline-offset: 2px;
}

.product-energy-extra {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: 10px;
	background-color: var(--color-notification-neutral-bg);
    border: 1px solid #ccc;
	max-width: 500px;
}

.product-energy-extra__label {
	font-weight: 700;
	color: #333;
	width: 100%;
}

.product-energy-extra button {
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
}

.product-common-charger-images {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.product-common-charger-images img {
	max-height: 60px;
}

.common-charger-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #556070;
	cursor: pointer;
}

.common-charger-info-icon:hover {
	color: #1f2933;
}

.energy-arrow-button .energy-arrow {
	max-height: 40px;
}

/* NEW FOOTER STYLES START - 17.5.21 NPE  */

.footer_2021 {
	width: 100%;
	position: relative;
	height: auto;
	background-color: #fafafa;
}

.footer_2021 .col_footer_2021 h2 {
	/*margin: 0;
	padding: 0;*/
	font-family: inherit;
	font-size: 12px;
	line-height: 17px;
	padding: 20px 0px 5px 0px;
	font-weight: normal;
	text-transform: uppercase;
	letter-spacing: 0.25em;
}

.footer_2021 .col_footer_2021 ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.footer_2021 .col_footer_2021 ul li {
	font-size: 14px;
	font-family: inherit;
	font-weight: bold;
	padding: 5px 0px 5px 0px;
	cursor: pointer;
	transition: 0.2s;
	-webkit-transition: 0.2s;
	-moz-transition: 0.2s;
}

.footer_2021_social ul li {
	display: inline-block;
	padding-right: 5px !important;
}

.footer_2021 .col_footer_2021 ul li:hover {
	color: #80ba27;
	transition: 0.1s;
	-webkit-transition: 0.1s;
	-moz-transition: 0.1s;
}

#footer_2021Link {
	color: inherit;
	text-decoration: none;
}

/* NEW FOOTER STYLES FINISH - 17.5.21 NPE  */

/* NEW SERVICE PAGE STYLES START - 17.5.21 NPE  */
.ServiceTimes p {
	margin: 0 !important;
}
.service-faq-template.h3 {
	display: inline-block;
}

.accordion {
	width: 100%;
	color: black;
	background-color: transparent;
}

.Accordion table > tbody > tr:nth-child(even) > td {
	background-color: #eee;
}
.Accordion table > tbody > tr:nth-child(odd) > td {
	background-color: #fff;
}

.Accordion table > tbody > tr > td:nth-child(even) {
	text-align: right;
	white-space: pre;
}

.Accordion table {
	width: 100%;
}

.service-white-wrap {
	background-color: #fbfdfa;
	border-radius: 25px;
	padding: 20px;
	margin: 40px 20px;
	height: 100%;
	box-shadow: rgba(17,17,26,.1) 0px 1px 0px,rgba(17,17,26,.1) 0px 4px 12px,rgba(17,17,26,.1) 0px 8px 12px;
}

.service-color-wrap {
	background-color: #cbcbcb1f;
	border-radius: 25px;
	padding: 20px;
	margin: 40px 20px;
	height: 100%;
	box-shadow: rgba(17,17,26,.1) 0px 1px 0px,rgba(17,17,26,.1) 0px 4px 12px,rgba(17,17,26,.1) 0px 8px 12px;
}

/* Shared info section wrapper (used on payment / delivery / service pages) */
.InfoSection {
	margin: 40px 10px;
	padding: 32px;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	background: #fdfdfd;
	box-shadow: 0 24px 45px rgba(15, 23, 42, 0.05);
}

.InfoSection + .InfoSection {
	margin-top: 60px;
}

.InfoSection--highlight {
	background: linear-gradient(180deg, #fcfffc 0%, #f4faf5 100%);
}

.InfoSection--muted {
	background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%);
}

.accordion .container {
	position: relative;
	margin: 5px;
}

/* Positions the labels relative to the .container. Adds padding to the top and bottom and increases font size. Also makes its cursor a pointer */

.accordion .label {
	position: relative;
	padding: 5px 30px 5px 0;
	color: black;
	cursor: pointer;
}

/* Positions the plus sign 5px from the right. Centers it using the transform property. */

.accordion .label::before {
	content: "+";
	position: absolute;
	top: 50%;
	right: 0;
	font-size: 30px;
	transform: translateY(-50%);
}

/* Hides the content (height: 0), decreases font size, justifies text and adds transition */

.accordion .content {
	position: relative;
	padding: 0;
	height: 0;
	text-align: left;
	width: 100%;
	overflow-x: auto;
}

/* Adds a horizontal line between the contents */

.accordion hr {
	width: 100%;
	margin: 0;
	border: 1px solid #c8c8c8;
	height: 0;
}

/* Unhides the content part when active. Sets the height */

.accordion .container.active .content {
	height: 100%;
}

/* Changes from plus sign to negative sign once active */

.accordion .container.active .label::before {
	content: "-";
	font-size: 30px;
}

@media screen and (max-width: 400px) {
	.service-white-wrap {
		padding: 10px;
		margin: 10px auto;
	}
	.service-color-wrap {
		padding: 10px;
		margin: 10px auto;
	}
	.accordion {
		padding: 10px 0;
	}
	.accordion .container {
		margin: 10px 0;
	}
}

.serviceGrid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.serviceItem {
	width: 32%;
	/* Same as width, sets height */
	margin-bottom: 2%;
	/* (100-32*3)/2 */
	position: relative;
}

.serviceItemImage:hover {
	filter: brightness(50%);
}

.greenTextService {
	color: #80ba27;
	text-align: center;
	margin: 20px auto;
}

.blackTextService {
	color: black;
	margin: 20px auto;
	text-align: left;
}

.boldTextService {
	font-weight: 700;
}

.serviceImage {
	width: 200px;
	margin: 20px auto;
	display: block;
}

.imageCaptionService {
	color: #80ba27;
	font-weight: bold;
	font-size: 0.8em;
	margin: 5px auto;
}

.ServiceRowFlex {
	display: flex;
	flex-direction: row-reverse;
}

.ServiceColFlex {
	flex: 1;
	margin-bottom: 10px;
	margin-top: 10px;
}
/*
.GetSupporButton {
	background-color: #80ba27;
	color: #ffffff;
	font-weight: 700;
}
*/
.serviceIcon {
	max-width: 100%;
}

.serviceContactGrid {
	display: grid;
	gap: var(--grid-gutter);
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	align-items: center;
}

.serviceContactGrid img {
	margin-left: auto;
	margin-right: 0;
}

.serviceContactGrid .serviceIcon {
	margin: 0;
}

.authorised-service-link {
	display: block;
	margin: 10px auto;
}

@media screen and (max-width: 800px) {
	.ServiceRowFlex {
		flex-direction: column;
	}
	.ServiceGridTemplate {
		padding: 10px;
	}
	.serviceIcon {
		max-width: 60%;
	}
	.ServiceColFlex {
		margin-bottom: 0;
		margin-top: 0;
	}
	.serviceContactGrid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.serviceContactGrid img {
		margin: 0 auto;
	}
}

@media screen and (max-width: 400px) {
	.serviceIcon {
		max-width: 100%;
	}
}

@media screen and (min-width: 601px) {
	.serviceIcon {
		margin: 20px auto;
	}
}

@media screen and (max-width: 260px) {
	.serviceItem {
		width: 45%;
	}
}

/* NEW SERVICE PAGE STYLES FINISH - 17.5.21 NPE  */

.productsListAnchor {
	padding-top: 115px;
	margin-top: -115px;
}

@media screen and (max-width: 600px) {
	.productsListAnchor {
		padding-top: 85;
		margin-top: -85;
	}
}

/* Resurs */

.PaymentMethodID-17 .additional_payments_select label {
	clear: both;
	padding: 0 0 0 30px;
	line-height: 1.25em;
}

.PaymentMethodID-17 .additional_payments_select label input[type="radio"] {
	margin-left: -20px;
	min-height: auto;
}

.PaymentMethodID-17 .additional_payments_select {
	display: block !important;
}

/*Cart product variations */

.MiniCartProduct {
	padding-right: 40px;
}

.MiniCartProducts dt.ProductOption {
	font-weight: bold;
}

.MiniCartProducts dd.ProductOption {
	margin-left: 0;
}

/* Lisää ostoskoriin ja Lähetä tilaus nappien koko ja väri */


@media screen and (min-width: 601px) {
	#CheckoutForm .SubmitButton {
		width: 50%;
	}
}

@media screen and (max-width: 600px) {
	#CheckoutForm .SubmitButton {
		width: 100%;
	}
}

.StoreStockWrap {
	display: inline-block;
	margin: 0 15px 0 0;
	max-width: 50%;
	vertical-align: top;
}

@media screen and (max-width: 400px) {
	.StoreStockWrap {
		max-width: 100%;
	}
}

.Stock-Button {
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	cursor: pointer;
	margin: 10px auto;
	display: block;
	width: max-content;
	font-weight: 300;
	color: #fff;
	background-color: rgb(122, 193, 65);
	text-align: center;
	text-decoration: none;
	transition-duration: 0.15s;
	vertical-align: middle;
	padding: 6px 12px;
}

.Stock-Button:hover {
	background-color: rgb(122, 193, 65);
	color: #fff;
}

.CategoryListNoImage {
	margin: 5px !important;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	color: #333;
	cursor: pointer;
	font-weight: 400;
	text-align: center;
	text-decoration: none;
	transition-duration: 0.15s;
	vertical-align: middle;
	overflow: auto;
	white-space: normal;
}

.CategoryListItem {
	margin: 5px !important;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	color: #333;
	cursor: pointer;
	font-weight: 400;
	padding: 6px 12px;
	text-align: center;
	text-decoration: none;
	transition-duration: 0.15s;
	vertical-align: middle;
	overflow: auto;
	white-space: normal;
	min-height: 280px;
}

.CategoryListItemLink {
	margin: 5px !important;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	color: #333;
	cursor: pointer;
	font-weight: 400;
	padding: 6px 12px;
	text-align: left;
	text-decoration: none;
	transition-duration: 0.15s;
	vertical-align: middle;
	overflow: auto;
	white-space: normal;
	display: block;
}

.CategoryListItemNameMobile {
	margin-left: 20px;
	font-size: 1.2em;
}

.CategoryListItemImageMobile {
	width: 50px;
	display: inline-block;
}

.CategoryListItemImage {
	background: #fff;
	border-radius: 25px;
}

.CategoryList-Left {
	justify-content: flex-start;
}

.CategoryListItem:hover,
.CategoryListItemLink:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 4px rgb(0 0 0 / 5%);
}

.CategoryList-Center {
	justify-content: start;
}

.ContentSection-ProductList {
	padding-top: 20px;
	padding-bottom: 20px;
	margin: 50px auto;
}

.ContentSection-ProductList {
	width: 95%;
	border-radius: 25px;
}

.ContentSection .ContentSection-ProductList:nth-of-type(odd) {
	background: #ededed;
}

.ContentSection .ContentSection-ProductList:nth-of-type(even) {
	background: #fbfdfa;
}

.ContentSection-ProductList .ListItem {
	padding: 5px;
}

@media screen and (max-width: 600px) {
	.CategoryListItemImage > img {
		height: 50px;
		display: inline-block;
	}
	.CategoryListItemImage > a {
		display: inline-block;
	}
	.CategoryList-Center {
		display: block !important;
	}
}

.DrawerTitle {
	padding-top: 20px;
	text-align: center;
}

.ProductListLink {
	text-align: center;
	padding-top: 20px;
}

.CategoryImage-AppleDigital {
	margin: auto;
	display: block;
	padding: 20px;
}

.DrawerContainer .Drawer {
	padding-bottom: 60px;
}
#apple_digital_product_page .badge {
	background-color: transparent !important;
}
#apple_digital_product_page img {
	max-width: inherit !important;
}
.CategoryBanner-EasyUpgrade-Price {
	font-size: 20px;
	font-weight: 400;
}
.Product_Page_Banner {
	margin: 10px auto;
}

/* Omnibus Prices 2023 */

.DiscountProduct .ProductCurrentPrice,
.ProductPrices[data-compare-price] {
	color: #7ac141;
}

.OmnibusPrices .ProductDiscountPrice {
	font-size: 18px;
	font-weight: 700;
}

/* Piilotetaan maksutavat, jotka ei saatavilla 

.Checks .DisabledPaymentMethod, .Checks .DisabledShippingMethod {
	display: none;
}
*/
.videoly-cta__title {
	max-width: fit-content;
}
.CategoryImage {
	margin: var(--default-margin) auto;
	display: block;
	box-shadow: rgba(17, 17, 26, .1) 0px 1px 0px, rgba(17, 17, 26, .1) 0px 4px 12px, rgba(17, 17, 26, .1) 0px 8px 12px !important;
}
.CategoryHeader {
	overflow: visible;
}

/* Apple Digital PDP iframe*/
.iframe-apple-pdp-container {
	width: 100%;
	margin: auto;
	overflow: hidden;
}
.iframe-apple-pdp {
	width: 100%;
	height: 100%;
	border: none;
	overflow: hidden;
	scrollbar-width: none;
	display: block;
	background-color: transparent; /* Or match the background color of the parent */
	outline: none;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	transform: translateZ(0); /* Forces proper GPU rendering */
	backface-visibility: hidden;
	will-change: transform;
}
.iframe-apple-pdp::-webkit-scrollbar {
	display: none; /* Hide scrollbar in Chrome, Safari */
}

.Tab .ShippingCosts .ShippingMethodName {
	margin: 10px 0 0 0;
}
.Tab .ShippingCosts .ShippingMethodInfo {
	display: none;
}


.StudentDiscountBadge {
	position: absolute;
	top: 5px;
	left: 5px;
	background-color: #f57933;
	color: #ffffff;
	padding: 0 0.5em;
	border-radius: 3px;
	font-size: 12.8px;
	text-decoration: none;
	font-weight: 400;
	z-index: 10;
}

.StudentCampaignNotice {
	background-color: #fff3ec;
	border-left: 4px solid #f57933;
	padding: 10px 15px;
	margin-bottom: 15px;
	font-size: 14px;
	line-height: 1.4;
}
.StudentCampaignNotice a {
	color: #f57933;
	font-weight: bold;
	text-decoration: underline;
}

.ContentSection-FullWidth {
	-moz-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	width: 100vw;
	position: relative;
	left: 50%;
}

.ContentSection-SemiNarrow,
.ContentSection-Narrow {
	margin-left: auto;
	margin-right: auto;
	max-width: 600px;
}

.ContentSection-SemiNarrow {
	max-width: 1024px;
}
/* Nuoli tuotekuvan päälle */


/* Modal tausta */
/* Modal tausta */
.energy-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  overflow: auto; /* jos sisältö on iso */
}

/* Modal sisältö */
.energy-modal-content {
  background: #fff;
  margin: 3% auto;
  padding: 20px;
  max-width: 900px;   /* kasvatettu max leveys */
  width: 90%;         /* lähes koko ruutu */
  text-align: center;
  border-radius: 8px;
  position: relative;
}

.energy-modal-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 16px !important;
  padding: 8px 14px !important;
  min-height: auto !important;
  line-height: 1.2;
  cursor: pointer;
}

/* Common charger info modal: force centered layout and right-aligned close button */
#modal.modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

#modal.modal .modal-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  width: min(90vw, 560px) !important;
  max-width: 560px !important;
  max-height: calc(100vh - 48px) !important;
  overflow: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

#modal.modal #close-modal {
  display: inline-flex !important;
  margin-left: auto !important;
}

/* Kuva täyteen leveyteen */
.energy-label-img {
  width: 100%;
  height: auto;
  max-height: 85vh;   /* ettei ylitä ruutua */
  object-fit: contain;
}

/* Tuotesivun energianuoli hinnan vieressä */
/* Tuotesivu: nuoli hinnan vieressä */
/* Arrow päätuotteen hinnan jälkeen */
body[class*="ProductID-"] .energy-arrow{
  display: inline-block;
  width: 28px;
  height: auto;
  margin-left: 8px;
  vertical-align: middle;
  cursor: pointer;
}

/* Arrow listauksissa (kuvan päällä) */
.ListProductImage .energy-arrow {
  position: absolute !important;
  top: unset !important;
  right: 5px !important;
  bottom: 5px !important;
  left: unset !important;
  width: 28px;
  height: auto;
  cursor: pointer;
}

.energy-modal-body iframe {
  max-width: 100%;
  max-height: 80vh;
}

