/* Aitio Evästeet – perustyylit. Sivuston fontit ja painikkeen tyyli asetetaan
   ajonaikaisesti (aitio-evasteet.js, #aitio-ev-site-style). */

#cc-main {
	--cc-modal-border-radius: 12px;
	--cc-link-color: inherit;
	/* Aition oletusmitat (speksi 2.1). Ulkoasu-välilehden säätimet ohittavat nämä (aitio-evasteet.js). */
	--aitio-pad: 24px;
	--aitio-gap: 8px;
	--aitio-maxw: 420px;
	--aitio-shadow: 0 8px 28px rgba(0, 0, 0, .12);
	--aitio-border-w: 0px;
	--aitio-border-c: var(--cc-separator-border-color);
}
#cc-main .cm,
#cc-main .pm {
	box-shadow: var(--aitio-shadow);
	border: var(--aitio-border-w) solid var(--aitio-border-c);
}
/* Käyttöjärjestelmän vähennetty liike koskee myös palkkimuotoja, joilla CookieConsent asettaa oman keston. */
@media (prefers-reduced-motion: reduce) {
	#cc-main .cm,
	#cc-main .pm,
	#cc-main .cm-wrapper::before {
		--cc-modal-transition-duration: 0s;
	}
}
#cc-main .aitio-ev-logo {
	display: block;
	width: auto;
	max-width: 70%;
	margin: 0 var(--aitio-pad) 12px;
}

/* Teeman otsikko- ja painiketyylit eivät saa vuotaa banneriin. */
#cc-main h2,
#cc-main h3 {
	margin: 0;
	padding: 0;
	line-height: 1.3;
	color: var(--cc-primary-color);
}
#cc-main button {
	box-shadow: none;
	min-height: 0;
}

/* Upotus ennen suostumusta */
.aitio-ev-embed {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 200px;
	box-sizing: border-box;
	background: #f3f4f6;
	color: #1f2937;
	border-radius: 6px;
	overflow: hidden;
}
.aitio-ev-embed iframe[hidden] {
	display: none !important;
}
.aitio-ev-embed__ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
}
.aitio-ev-embed__text {
	margin: 0;
	max-width: 46ch;
}
.aitio-ev-embed__actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
}
.aitio-ev-embed__btn {
	appearance: none;
	border: 0;
	border-radius: 6px;
	padding: 10px 18px;
	background: #1f2937;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.aitio-ev-embed__btn:focus-visible,
.aitio-ev-embed__more:focus-visible,
.aitio-ev-fab:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.aitio-ev-embed__more {
	color: inherit;
	text-decoration: underline;
}

/* Kelluva asetuspainike (speksi 6.6): pyöreä, pilleri tai välilehti alareunassa. */
.aitio-ev-fab {
	--aitio-fab-size: 46px;
	--aitio-fab-icon: 22px;
	--aitio-fab-font: 14px;
	--aitio-fab-off: 16px;
	position: fixed;
	bottom: var(--aitio-fab-off);
	z-index: 2147483000;
	box-sizing: border-box;
	width: var(--aitio-fab-size);
	height: var(--aitio-fab-size);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #1f2937;
	color: #fff;
	font: inherit;
	font-size: var(--aitio-fab-font);
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	cursor: pointer;
}
.aitio-ev-fab--small {
	--aitio-fab-size: 38px;
	--aitio-fab-icon: 18px;
	--aitio-fab-font: 13px;
}
.aitio-ev-fab--large {
	--aitio-fab-size: 56px;
	--aitio-fab-icon: 26px;
	--aitio-fab-font: 16px;
}
.aitio-ev-fab__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: var(--aitio-fab-icon);
	height: var(--aitio-fab-icon);
}
.aitio-ev-fab__icon svg,
.aitio-ev-fab__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.aitio-ev-fab__text {
	display: inline-block;
}
.aitio-ev-fab--pill,
.aitio-ev-fab--tab {
	width: auto;
	padding: 0 calc(var(--aitio-fab-size) * .4);
	border-radius: 999px;
}
.aitio-ev-fab--tab {
	bottom: 0;
	height: calc(var(--aitio-fab-size) - 6px);
	border-radius: 8px 8px 0 0;
}
.aitio-ev-fab[hidden],
html.show--consent .aitio-ev-fab {
	display: none;
}
.aitio-ev-fab--left {
	left: var(--aitio-fab-off);
}
.aitio-ev-fab--right {
	right: var(--aitio-fab-off);
}
@media (prefers-reduced-motion: no-preference) {
	.aitio-ev-fab {
		transition: transform .15s ease;
	}
	.aitio-ev-fab:hover {
		transform: scale(1.06);
	}
	.aitio-ev-fab--tab:hover {
		transform: translateY(-2px);
	}
}

/* ---------- Evästeseloste [evasteseloste] ---------- */
/* Fontit, koot ja värit tulevat teemasta. Vain rakenne ja ohuet viivat määritellään. */
.aitio-ev-policy {
	max-width: 100%;
}
.aitio-ev-policy__status {
	margin: 0 0 2em;
}
.aitio-ev-policy__status-title {
	margin: 0 0 .4em;
}
.aitio-ev-policy__status-list {
	margin: 0 0 1em;
	padding-left: 1.2em;
}
.aitio-ev-policy__btn {
	display: inline-block;
	padding: .7em 1.4em;
	border: 0;
	border-radius: 6px;
	background: #1f2937;
	color: #fff;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}
.aitio-ev-policy__section {
	margin: 0 0 2em;
}
.aitio-ev-policy__title {
	margin: 0 0 .3em;
}
.aitio-ev-policy__desc {
	margin: 0 0 .8em;
	opacity: .8;
}
.aitio-ev-policy__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: .9em;
	overflow-wrap: anywhere;
}
.aitio-ev-policy__table th,
.aitio-ev-policy__table td {
	padding: .6em .75em;
	border: 0;
	border-bottom: 1px solid rgba(128, 128, 128, .25);
	text-align: left;
	vertical-align: top;
	background: transparent;
}
.aitio-ev-policy__table th {
	font-weight: 600;
}
/* Sarakkeet: Eväste, Palvelu, Osapuoli, Vastaanottaja, Tarkoitus, Voimassa. Tarkoitus saa eniten tilaa. */
.aitio-ev-policy__table th:nth-child(1) { width: 20%; }
.aitio-ev-policy__table th:nth-child(2) { width: 15%; }
.aitio-ev-policy__table th:nth-child(3) { width: 11%; }
.aitio-ev-policy__table th:nth-child(4) { width: 14%; }
.aitio-ev-policy__table th:nth-child(6) { width: 9%; }
.aitio-ev-policy__table code {
	display: inline-block;
	margin: 0 .2em .2em 0;
	padding: .1em .4em;
	border-radius: 3px;
	background: rgba(128, 128, 128, .15);
	color: inherit;
	font-size: .95em;
}
.aitio-ev-policy__updated {
	opacity: .7;
	font-size: .9em;
}
@media (max-width: 640px) {
	.aitio-ev-policy__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.aitio-ev-policy__table,
	.aitio-ev-policy__table tbody,
	.aitio-ev-policy__table tr,
	.aitio-ev-policy__table td {
		display: block;
		width: 100%;
	}
	.aitio-ev-policy__table tr {
		padding: .6em 0;
		border-bottom: 1px solid rgba(128, 128, 128, .25);
	}
	.aitio-ev-policy__table td {
		padding: .2em 0;
		border: 0;
	}
	.aitio-ev-policy__table td::before {
		content: attr(data-label);
		display: block;
		font-weight: 600;
	}
}
.aitio-ev-policy__browser-list {
	margin: 0 0 1em;
	padding-left: 1.2em;
}
/* Linkkien pitää erottua tekstistä muutenkin kuin värillä (WCAG 1.4.1), vaikka teema poistaisi alleviivauksen. */
.aitio-ev-policy a {
	text-decoration: underline;
	text-underline-offset: .15em;
}
/* Suostumustunniste: koko tunniste valitaan yhdellä napsautuksella kopioitavaksi. */
[data-aitio-ev-id] {
	user-select: all;
	overflow-wrap: anywhere;
}

/* ---------- Aition oletusmitat (speksi 2.1, päätetty 23.11.2026) ---------- */
/* Laatikkomuodot: sisämarginaali 24 px, painikkeiden väli 8 px, pyöristys 12 px, pehmeä varjo. */
#cc-main .cm.cm--box {
	border-radius: var(--cc-modal-border-radius);
}
#cc-main .cm.cm--box .cm__texts {
	padding: var(--aitio-pad) 0 0;
}
#cc-main .cm.cm--box .cm__title,
#cc-main .cm.cm--box .cm__desc {
	padding-left: var(--aitio-pad);
	padding-right: var(--aitio-pad);
}
#cc-main .cm.cm--box .cm__desc {
	padding-bottom: 8px;
}
#cc-main .cm.cm--box .cm__btns {
	padding: 16px var(--aitio-pad) var(--aitio-pad);
	gap: var(--aitio-gap);
	border-top: 0;
}
#cc-main .cm.cm--box .cm__btn-group {
	gap: var(--aitio-gap);
}
#cc-main .cm.cm--box .cm__btn + .cm__btn,
#cc-main .cm.cm--box .cm__btn-group + .cm__btn-group {
	margin: 0;
}

/* Kulmabanneri enintään 420 px. Kolme painiketta ei mahdu riviin, joten Hyväksy kaikki ja
   Hylkää kaikki ovat rinnakkain yhtä leveinä ja Muokkaa omalla rivillään koko leveydeltä. */
#cc-main .cm.cm--box.cm--left,
#cc-main .cm.cm--box.cm--right {
	max-width: var(--aitio-maxw);
	width: calc(100% - 32px);
}
#cc-main .cm.cm--box.cm--left .cm__btns,
#cc-main .cm.cm--box.cm--right .cm__btns {
	flex-direction: row;
	flex-wrap: wrap;
}
#cc-main .cm.cm--box.cm--left .cm__btn-group,
#cc-main .cm.cm--box.cm--right .cm__btn-group {
	width: 100%;
	flex-direction: row;
	flex-wrap: nowrap;
}
#cc-main .cm.cm--box.cm--left .cm__btn,
#cc-main .cm.cm--box.cm--right .cm__btn {
	flex: 1 1 0;
	white-space: nowrap;
}

/* Puhelimessa alle 480 px: painikkeet allekkain koko leveydeltä. */
@media (max-width: 480px) {
	#cc-main .cm .cm__btns,
	#cc-main .cm .cm__btn-group {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		width: 100%;
		gap: var(--aitio-gap);
	}
	#cc-main .cm .cm__btn,
	#cc-main .cm .cm__btn-group + .cm__btn-group {
		width: 100%;
		flex: 0 0 auto !important;
		margin: 0 !important;
	}
}

/* Avaa chat -painike (Kattava-tila): chat ladataan vasta klikkauksesta */
.aitio-ev-chat {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 2147483000;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: #1f2937;
	color: #fff;
	font: inherit;
	font-size: 15px;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	cursor: pointer;
}
.aitio-ev-chat--stacked {
	bottom: 72px; /* Kelluva asetuspainike on myös oikealla. */
}
.aitio-ev-chat:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.aitio-ev-chat[disabled] {
	opacity: .7;
	cursor: progress;
}
html.show--consent .aitio-ev-chat {
	display: none;
}

/* Osoitesääntö ilman paikkamerkkiä: iframe vain piilotetaan suostumukseen asti, ei laatikkoa. */
.aitio-ev-embed.aitio-ev-embed--bare {
	display: contents;
	background: none;
	min-height: 0;
	padding: 0;
	border: 0;
}
/* Calendlyn kalenterin paikkamerkki täyttää kalenteri-divin, kunnes kalenteri ladataan. */
.aitio-ev-embed.aitio-ev-embed--script {
	min-height: 160px;
	height: 100%;
}
