/*
 * Credit-warning notice (partials/credit-warning.php), Finora.fi.
 * Hand-written: there is no Sass source and gulp does not build this file. Enqueued on every front-end page by
 * functions/theme_styles.php (handle fi_credit_warning, versioned by filemtime). The notice is scoped under .fi-cw;
 * the form/CTA-band rules of the 2026-11 content review are at the end of the file.
 * Colours come from the live theme (assets/css/style.css): body text and headings #171717, divider #e5e5e5
 * ($color-line, the offer-card border), footer = white background with #646464 text.
 */

.fi-cw p {
	margin: 0;
}

.fi-cw__text,
.fi-cw__ad {
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

.fi-cw strong {
	font-weight: 700;
}

.fi-cw__icon {
	display: inline-block;
	vertical-align: -2px;
	margin-right: 5px;
	color: #d92d20;
}

/* form = bottom of the calculator card; offers = under the offer cards */
.fi-cw--form,
.fi-cw--offers {
	border-top: 1px solid #e5e5e5;
	color: #171717;
	padding-top: 12px;
}

.fi-cw--form strong,
.fi-cw--offers strong {
	color: #171717;
}

.fi-cw--form {
	margin-top: 16px;
}

/* above the offers-hero background layers, like .offer */
.fi-cw--offers {
	margin: 24px 0;
	position: relative;
	z-index: 2;
}

/* footer (every page): footer text colour; the footer is white, so the bold lead-in uses the dark heading colour */
.fi-cw--footer {
	color: inherit;
	margin-bottom: 16px;
	padding-right: 40px;
}

.fi-cw--footer strong {
	color: #171717;
}

/* footer text is 14px (.footer); keep the notice at the same size, not smaller */
.fi-cw--footer .fi-cw__text,
.fi-cw--footer .fi-cw__ad {
	font-size: 14px;
}

.fi-cw--footer .fi-cw__ad {
	margin-top: 8px;
}

/* same right padding as .footer-text */
@media (max-width: 767px) {
	.fi-cw--footer {
		padding-right: 0;
	}
}

/*
 * Lead form and text-only bands, Finnish credit-marketing review 2026-11 (partials/calculator.php, pages/home.php,
 * pages/landing.php). Kept here because this file is versioned by filemtime and style.css is built by gulp.
 */

/* the marketing consent is mandatory: the button stays disabled until the toggle is on */
.calculator-button:disabled,
.calculator-button[disabled] {
	background-color: #128fa0;
	cursor: not-allowed;
	opacity: .45;
}

.calculator-button:disabled:hover,
.calculator-button[disabled]:hover {
	background-color: #128fa0;
}

/* the loader state keeps its own look (it is also disabled while sending) */
.calculator-button.loading:disabled {
	opacity: .8;
}

.calculator-consent-required {
	color: #646464;
	font-size: 13px;
	line-height: 1.4;
	margin-top: 8px;
	text-align: center;
}

.toggle-wrap:focus-visible {
	border-radius: 8px;
	outline: 2px solid #128fa0;
	outline-offset: 4px;
}

/*
 * "Offers are ads" note (option calculator_example), owner request 2026-11-18: printed BELOW the
 * whole form box (after .calculator, on the hero's lavender gradient #ececff -> #d8d8f3), small and in a muted
 * lavender-grey so it blends with the background; inset like the white card's text.
 */
.calculator-footnote {
	color: #7d7d96;
	font-size: 12px;
	line-height: 1.5;
	margin: 14px 0 0;
	padding: 0 48px;
	text-align: center;
}

@media (max-width: 767px) {
	.calculator-footnote {
		padding: 0 16px;
	}
}

/* CTA bands without the cta.png image: the image used to give the band its height */
.home-help--text {
	padding: 80px 0;
}

@media (max-width: 767px) {
	.home-help--text {
		padding: 50px 0;
	}
}

/*
 * Offers page /tarjous (pages/offers.php), card layout 2026-11-18, owner request "arrange it like the Lainapilotti
 * cards": lavender page, white cards in a row (three from 992px, stacked and centred below), partner name, loan
 * amount in the teal accent, bullet rows in light teal boxes with the theme's check icon, full-width button; the
 * partner's representative example is small print UNDER its card. The grid + subgrid give every card in a row the
 * same height (the buttons line up) and start the examples on one line; without subgrid each card hugs its content.
 * Colours from the theme: teal #128fa0 (hover #0f7b89), text #171717, muted #646464, lavender #ececff.
 */

/* one lavender surface from the hero down to the footer (was lavender -> peach, cut off by #fafafa at 500px) */
.offers-hero:before {
	background: linear-gradient(180deg, #ececff 0%, #f2f2fd 100%);
}

/* the hero grid lines fade out instead of ending in a hard edge behind the cards */
.offers-hero:after {
	-webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}

.offers-hero {
	padding-bottom: 36px;
}

.offers-hero-title {
	margin-left: auto;
	margin-right: auto;
	max-width: 920px;
	text-wrap: balance;
}

.offers-hero-subtitle {
	font-size: 17px;
	line-height: 1.55;
}

.offers-list {
	background-color: #f2f2fd;
	padding: 8px 0 64px;
}

.offers-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1fr);
	list-style: none;
	margin: 0 auto;
	max-width: 560px;
	padding: 0;
	position: relative;
	z-index: 2;
}

@media (min-width: 992px) {
	.offers-grid {
		gap: 28px 24px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: none;
	}
}

.offers-cell {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

@supports (grid-template-rows: subgrid) {
	.offers-cell {
		display: grid;
		grid-row: span 2;
		grid-template-rows: subgrid;
		row-gap: 10px;
	}
}

.offer-card {
	background-color: #fff;
	border: 1px solid #e3e3f3;
	border-radius: 16px;
	box-shadow: 0 10px 28px -14px rgba(40, 40, 110, .28);
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 30px 24px 24px;
}

.offer-card-name {
	color: #171717;
	font-family: 'DM Serif Display', serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.1;
	margin: 0;
	text-align: center;
}

.offer-card-amount {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	text-align: center;
}

.offer-card-amount-label {
	color: #646464;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.offer-card-amount-value {
	color: #128fa0;
	font-size: clamp(24px, 2.4vw, 30px);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
	text-wrap: balance;
}

.offer-card-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.offer-card-list li {
	align-items: center;
	background-color: rgba(18, 143, 160, .08);
	border-radius: 10px;
	color: #171717;
	display: flex;
	font-size: 15px;
	font-weight: 500;
	gap: 12px;
	line-height: 1.35;
	padding: 11px 14px;
}

/* the theme's own check icon (teal circle, white tick) */
.offer-card-check {
	background: url(../images/check.svg) center / 22px 22px no-repeat;
	flex: none;
	height: 22px;
	width: 22px;
}

.offer-card-cta {
	margin-top: auto;
}

/* .offer-button (style.css) keeps its teal colours; the arrow moves into a span so the label can wrap and centre */
.offer-card .offer-button {
	align-items: center;
	background-image: none;
	border-radius: 10px;
	box-shadow: 0 8px 16px -10px rgba(18, 143, 160, .8);
	display: flex;
	font-size: 17px;
	gap: 10px;
	height: auto;
	justify-content: center;
	line-height: 1.3;
	margin: 0;
	min-height: 54px;
	padding: 14px 18px;
	text-align: center;
}

.offer-card .offer-button:focus-visible {
	outline: 2px solid #128fa0;
	outline-offset: 3px;
}

.offer-button-arrow {
	background: url(../images/arrow-right.svg) center / 22px 22px no-repeat;
	flex: none;
	height: 22px;
	width: 22px;
}

/* 992-1199px: three narrower cards; tighter insides keep the button label on one line */
@media (min-width: 992px) and (max-width: 1199px) {
	.offers-grid {
		column-gap: 20px;
	}

	.offer-card {
		padding: 28px 18px 20px;
	}

	.offer-card-list li {
		font-size: 14px;
		gap: 10px;
		padding: 10px 12px;
	}

	.offer-card .offer-button {
		font-size: 15px;
		gap: 6px;
		padding: 14px 10px;
	}

	.offer-button-arrow {
		background-size: 18px 18px;
		width: 18px;
	}
}

/* the partner's representative example: small muted print under its card */
.offer-card-example {
	color: #5f5f78;
	font-size: 12px;
	line-height: 1.5;
	margin: 0;
	padding: 0 4px;
	text-align: left;
}

/* the credit warning under the cards spans the card row */
.offers-list .fi-cw--offers {
	border-top-color: #dadaf0;
	margin: 36px 0 0;
}

@media (max-width: 767px) {
	.offers-hero {
		padding-bottom: 28px;
	}

	.offers-hero-title {
		font-size: 38px;
		line-height: 1.05;
	}

	.offers-hero-subtitle {
		font-size: 16px;
	}

	.offers-list {
		padding: 0 0 56px;
	}

	.offer-card {
		padding: 26px 18px 18px;
	}

	.offer-card-name {
		font-size: 28px;
	}

	.offer-card-amount-value {
		font-size: 28px;
	}

	.offer-card-list li {
		font-size: 14px;
		padding: 10px 12px;
	}

	.offer-card .offer-button {
		font-size: 16px;
		padding: 14px 16px;
	}
}
