/**
 * Hei Aurora — Taksitoimitus
 * Mobile-first. Marka renkleri: #2D6A4F Aurora Green, #1B2845 Midnight Navy,
 * #FAFAF7 Soft White, #2C2C2C Charcoal.
 */

/* ---------------------------------------------------- tuotesivun tietolaatikko */

.hei-ex {
	margin: 18px 0;
	padding: 14px 16px;
	border: 1px solid rgba( 45, 106, 79, 0.28 );
	border-left: 3px solid #2d6a4f;
	border-radius: 8px;
	background: #fafaf7;
	color: #2c2c2c;
	font-size: 14px;
	line-height: 1.5;
}

/* Taksitoimitus pois käytöstä → koko lohko piiloon. */
.hei-ex--empty {
	display: none;
}

.hei-ex__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hei-ex__list li {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hei-ex__list li + li {
	margin-top: 9px;
	padding-top: 9px;
	border-top: 1px solid rgba( 45, 106, 79, 0.14 );
}

.hei-ex__ico {
	flex: 0 0 auto;
	color: #2d6a4f;
	font-size: 15px;
	line-height: 1.45;
}

.hei-ex__list strong {
	color: #1b2845;
	font-weight: 700;
}

.hei-ex__meta {
	display: block;
	margin-top: 3px;
	color: #5a5a5a;
	font-size: 13px;
}

/* Ilmaisen toimituksen kampanjarivi — keskiostoksen nostaja, saa erottua. */
.hei-ex__list li.hei-ex__promo {
	margin-top: 9px;
	padding: 9px 11px;
	border-top: 0;
	border-radius: 6px;
	background: rgba( 45, 106, 79, 0.09 );
	color: #1b2845;
}

.hei-ex__list li.hei-ex__promo strong {
	color: #2d6a4f;
}

.hei-ex__meta .amount {
	color: #2c2c2c;
	font-weight: 700;
}

/* ------------------------------------------------------------- kassan kentät */

.hei-ex-fields {
	margin: 18px 0 8px;
	padding: 14px 16px;
	border: 1px solid rgba( 45, 106, 79, 0.28 );
	border-radius: 8px;
	background: #fafaf7;
}

.hei-ex-fields h3 {
	margin: 0 0 10px;
	font-size: 16px;
}

.hei-ex-fields__summary {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #e4e4de;
	list-style: none;
	font-size: 13.5px;
	line-height: 1.45;
}

.hei-ex-fields__summary li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hei-ex-fields__summary li + li {
	margin-top: 5px;
}

.hei-ex-fields__summary span:last-child {
	color: #1b2845;
	font-weight: 600;
}

/* Vihje tilausyhteenvedossa: taksi näkyy vasta postinumerolla */
.hei-ex-hint-row td {
	padding-top: 4px !important;
	border-top: 0 !important;
}

.hei-ex-hint {
	display: block;
	padding: 8px 10px;
	border-left: 3px solid #2d6a4f;
	border-radius: 4px;
	background: #fafaf7;
	color: #5a5a5a;
	font-size: 12.5px;
	line-height: 1.45;
	text-align: left;
}

.hei-ex-hint__rule {
	display: block;
	margin-top: 3px;
	color: #1b2845;
	font-weight: 600;
}

/* Lahja toiselle -kehote */
.hei-ex-fields__gift {
	margin: 0 0 10px;
	color: #2c2c2c;
	font-size: 13.5px;
}

.hei-ex-fields__giftbtn {
	margin-left: 4px;
	padding: 4px 10px;
	border: 1px solid #2d6a4f;
	border-radius: 6px;
	background: transparent;
	color: #2d6a4f;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.hei-ex-fields__giftbtn:hover,
.hei-ex-fields__giftbtn:focus {
	background: #2d6a4f;
	color: #fff;
}

.hei-ex-fields__intro {
	margin: 0 0 12px;
	color: #5a5a5a;
	font-size: 13px;
}

/* Woon oma “Toimitus toiseen osoitteeseen” — korostetaan kun taksi valittuna,
   koska lahja menee usein toiselle eikä ostaja huomaa ruutua. */
.woocommerce-shipping-fields.hei-ex-highlight {
	margin: 14px 0;
	padding: 12px 14px;
	border: 1px solid rgba( 45, 106, 79, 0.35 );
	border-left: 3px solid #2d6a4f;
	border-radius: 8px;
	background: #fafaf7;
}

.woocommerce-shipping-fields.hei-ex-highlight #ship-to-different-address,
.woocommerce-shipping-fields.hei-ex-highlight .woocommerce-form__label-for-checkbox span {
	color: #1b2845;
	font-weight: 700;
}

.hei-ex-fields .hei-ex-field--dep {
	display: none;
}

.hei-ex-fields .hei-ex-field--dep.is-visible {
	display: block;
}

/* Toimitusehdot. Kassalla suppeana (<details>), omalla sivulla auki. */
.hei-ex-terms {
	margin: 14px 0;
	color: #2c2c2c;
	font-size: 13px;
	line-height: 1.6;
}

.hei-ex-terms__title {
	margin: 0 0 10px;
	color: #1b2845;
	font-size: 17px;
	line-height: 1.3;
}

.hei-ex-terms__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hei-ex-terms__list li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 16px;
}

.hei-ex-terms__list li::before {
	position: absolute;
	top: 0;
	left: 0;
	color: #2d6a4f;
	content: "\2013";
}

.hei-ex-terms__list strong {
	color: #1b2845;
}

.hei-ex-terms--compact {
	margin: 12px 0 4px;
	padding: 10px 12px;
	border: 1px solid rgba( 27, 40, 69, 0.15 );
	border-radius: 8px;
	background: #fafaf7;
}

.hei-ex-terms--compact > summary {
	color: #1b2845;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
}

.hei-ex-terms--compact[open] > summary {
	margin-bottom: 10px;
}

@media ( min-width: 768px ) {
	.hei-ex {
		padding: 16px 18px;
	}
}
