/* ==========================================================================
   Hinnasto korttiruudukkona (T-482)
   Elementorin Price List -widget, jolla luokka vu-hinnasto. Sisältö widgetissä:
   otsikko = kesto, hinta = summa + <small>-rivit (alv, hinta per viikko),
   kuvaus = tunnusluvut <br>-riveinä. Valitsimet ovat tarkempia kuin widgetin
   omat Tyyli-asetukset, jotta ruudukko ei riipu niistä.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Ruudukko
   -------------------------------------------------------------------------- */

.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Widgetin Kohteiden väli -asetus (li:not(:last-child) margin-bottom) on tarkempi valitsin; ruudukossa väli tulee gapista. */
.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list > li {
	margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Kortti
   -------------------------------------------------------------------------- */

.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-item {
	display: flex;
	box-sizing: border-box;
	height: 100%;
	padding: 26px 24px 24px;
	border: 1px solid #e6e2f2;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(57, 45, 120, 0.08);
	text-align: left;
}

.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-text {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
}

.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-separator {
	display: none;
}

.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-title {
	max-width: none;
	padding: 0;
	color: #5d5680;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.3px;
}

.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0;
	color: #392d78;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.1;
	white-space: normal;
}

.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-price small {
	display: block;
	color: #5d5680;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-price small + small {
	margin-top: 4px;
	color: #392d78;
	font-weight: 500;
}

.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-description {
	box-sizing: border-box;
	width: 100%;
	margin: auto 0 0 !important;
	padding: 16px 0 0;
	border-top: 1px solid #e6e2f2;
	color: #392d78;
	font-family: "Futura PT", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Listatyyli: lisäluokka vu-hinnasto--lista (Ossin toive 10.11.)
   Yksi valkoinen kortti, jokainen paketti omalla rivillään: vasemmalla kesto ja
   tunnusluvut yhdellä rivillä, oikealla hinta. Kuvauksen luvut erotetaan " · ".
   -------------------------------------------------------------------------- */

.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list {
	display: block;
	overflow: hidden;
	border: 1px solid #e6e2f2;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(57, 45, 120, 0.08);
}

.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-item {
	display: block;
	height: auto;
	padding: 18px 28px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transition: background-color 0.15s ease;
}

/* Tarkempi kuin yllä oleva border: 0 */
.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list > li.elementor-price-list-item + li.elementor-price-list-item {
	border-top: 1px solid #eeebf6;
}

.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-item:hover {
	background-color: #faf9fd;
}

/* Otsikko ja hinta riviruudukkoon: otsake-elementti "läpinäkyväksi" (display: contents) */
.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-text {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"title price"
		"desc price";
	column-gap: 24px;
	align-items: center;
}

.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-header {
	display: contents;
}

.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-title {
	grid-area: title;
	align-self: end;
	color: #392d78;
	font-size: 20px;
}

.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-price {
	grid-area: price;
	align-items: flex-end;
	font-size: 26px;
	text-align: right;
}

.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-price small {
	font-size: 13px;
}

.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-description {
	grid-area: desc;
	align-self: start;
	margin: 4px 0 0 !important;
	padding: 0;
	border: 0;
	color: #5d5680;
	font-size: 15px;
	line-height: 1.5;
}

/* ==========================================================================
   Tabletti (max 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
	.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

/* ==========================================================================
   Mobiili (max 767px)
   ========================================================================== */

@media (max-width: 767px) {
	.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-item {
		padding: 22px 20px 20px;
	}

	.elementor .elementor-widget-price-list.vu-hinnasto .elementor-price-list .elementor-price-list-price {
		font-size: 30px;
	}

	.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-item {
		padding: 16px 18px;
	}

	/* Tunnusluvut koko leveydelle hinnan alle, ettei kapea sarake rivity neljälle riville */
	.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-text {
		grid-template-areas:
			"title price"
			"desc desc";
		column-gap: 14px;
		align-items: start;
	}

	.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-title {
		align-self: start;
		padding-top: 2px;
	}

	.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-description {
		margin-top: 8px !important;
	}

	.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-title {
		font-size: 17px;
	}

	.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-price {
		font-size: 21px;
	}

	.elementor .elementor-widget-price-list.vu-hinnasto.vu-hinnasto--lista .elementor-price-list .elementor-price-list-description {
		font-size: 14px;
	}
}
