/* Disclaimer Gate – tyylit (Salient) */

html.dg-locked,
body.dg-locked {
	overflow: hidden !important;
}

.dg-gate {
	--dg-text: #3a3a3a;
	--dg-heading: #111;
	--dg-muted: #9a9a9a;
	--dg-border: #8c8c8c;
	--dg-bg: #fff;

	position: fixed;
	inset: 0;
	z-index: 2147483000; /* Salientin headerin ja muiden overlayden yläpuolelle */
	background: var(--dg-bg);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 64px 16px;
	color: var(--dg-text);
	font-size: 15px;
	line-height: 1.45;
}

.dg-inner {
	width: 100%;
	max-width: 880px;
	margin: auto 0; /* pystykeskitys kun sisältöä on vähän */
}

.dg-step:focus { outline: none; }
.dg-gate template,
.dg-gate [hidden] { display: none !important; }

.dg-gate .dg-title {
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--dg-heading);
	margin: 0 0 16px;
	padding: 0;
}
.dg-step--disclaimer .dg-title { text-transform: uppercase; font-weight: 500; }
.dg-gate .dg-title:focus { outline: none; }

.dg-gate p,
.dg-gate .dg-text {
	margin: 0 0 16px;
	padding: 0;
	color: var(--dg-text);
	font-size: 15px;
	line-height: 1.45;
}
.dg-disclaimer strong { color: var(--dg-heading); font-weight: 600; }

/* Ääriviivallinen valintakenttä (kuten mallikuvassa) */
.dg-field {
	position: relative;
	margin: 28px 0 8px;
}
.dg-gate .dg-label {
	position: absolute;
	top: -8px;
	left: 10px;
	padding: 0 6px;
	background: var(--dg-bg);
	font-size: 11px;
	line-height: 16px;
	color: #666;
	pointer-events: none;
	z-index: 1;
}
.dg-gate select.dg-select {
	display: block;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 44px 0 14px;
	border: 1px solid var(--dg-border);
	border-radius: 4px;
	background: var(--dg-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5'%3E%3Cpath d='M0 0l5 5 5-5z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 16px center;
	color: var(--dg-heading);
	font: inherit;
	font-size: 15px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.dg-gate select.dg-select:hover { border-color: #333; }
.dg-gate select.dg-select:focus {
	outline: none;
	border-color: #111;
	box-shadow: 0 0 0 1px #111;
}

/* Painikkeet – tekstipainikkeet kuten mallikuvassa */
.dg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}
.dg-gate .dg-btn {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	border-radius: 4px;
	margin: 0;
	padding: 8px 10px;
	font: inherit;
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #555;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.dg-gate .dg-btn:hover { background: #f2f2f2; color: #111; }
.dg-gate .dg-btn:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.dg-gate .dg-btn--primary { color: #111; font-weight: 600; }
.dg-gate .dg-btn[disabled] {
	color: #c4c4c4;
	font-weight: 400;
	background: transparent;
	cursor: default;
}

.dg-noscript {
	padding: 12px 16px;
	border: 1px solid #e0b4b4;
	background: #fff6f6;
}

@media (max-width: 600px) {
	.dg-gate { padding: 32px 16px; font-size: 14px; }
	.dg-gate p, .dg-gate .dg-text { font-size: 14px; }
}
