/*
 * Newsletter form [hk_newsletter] – inc/newsletter.php.
 * Site tokens: blue #00A2FF, dark #0E1014, text #1A1815 / #52504A, Schibsted Grotesk, square corners.
 */

.hk-nl {
	--hk-nl-blue: #00a2ff;
	--hk-nl-blue-hover: #008fe0;
	--hk-nl-error: #e5484d;
	--hk-nl-h: 56px;
	font-family: "Schibsted Grotesk", sans-serif;
	width: 100%;
	max-width: 620px;
}

.hk-nl--dark {
	--hk-nl-field-bg: rgba(255, 255, 255, 0.06);
	--hk-nl-field-border: rgba(255, 255, 255, 0.22);
	--hk-nl-field-text: #ffffff;
	--hk-nl-placeholder: rgba(255, 255, 255, 0.55);
	--hk-nl-legal: rgba(255, 255, 255, 0.6);
	--hk-nl-msg-text: #ffffff;
}

.hk-nl--light {
	--hk-nl-field-bg: #ffffff;
	--hk-nl-field-border: #d9d6cf;
	--hk-nl-field-text: #1a1815;
	--hk-nl-placeholder: #8a877f;
	--hk-nl-legal: #6b6962;
	--hk-nl-msg-text: #1a1815;
}

.hk-nl__form {
	margin: 0;
}

.hk-nl__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hk-nl__row {
	display: flex;
	align-items: stretch;
}

.hk-nl .hk-nl__input {
	flex: 1 1 auto;
	min-width: 0;
	height: var(--hk-nl-h);
	margin: 0;
	padding: 0 18px;
	font-family: inherit;
	font-size: 16px;
	color: var(--hk-nl-field-text);
	background: var(--hk-nl-field-bg);
	border: 1px solid var(--hk-nl-field-border);
	border-right: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease;
}

.hk-nl .hk-nl__input::placeholder {
	color: var(--hk-nl-placeholder);
	opacity: 1;
}

.hk-nl .hk-nl__input:focus {
	border-color: var(--hk-nl-blue);
}

.hk-nl .hk-nl__input[aria-invalid="true"] {
	border-color: var(--hk-nl-error);
}

.hk-nl .hk-nl__btn {
	flex: 0 0 auto;
	height: var(--hk-nl-h);
	margin: 0;
	padding: 0 28px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	color: #ffffff;
	background: var(--hk-nl-blue);
	border: 1px solid var(--hk-nl-blue);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hk-nl .hk-nl__btn:hover,
.hk-nl .hk-nl__btn:focus-visible {
	color: #ffffff;
	background: var(--hk-nl-blue-hover);
	border-color: var(--hk-nl-blue-hover);
}

.hk-nl .hk-nl__btn[disabled] {
	opacity: 0.65;
	cursor: wait;
}

.hk-nl__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.hk-nl .hk-nl__legal {
	margin: 12px 0 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--hk-nl-legal);
}

.hk-nl .hk-nl__legal a {
	color: inherit;
	text-decoration: underline;
}

.hk-nl__msg {
	margin-top: 14px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--hk-nl-msg-text);
	border-left: 3px solid var(--hk-nl-blue);
	background: rgba(0, 162, 255, 0.12);
}

.hk-nl__msg[hidden] {
	display: none;
}

.hk-nl__msg.is-error {
	border-left-color: var(--hk-nl-error);
	background: rgba(229, 72, 77, 0.12);
}

.hk-nl.is-done .hk-nl__row,
.hk-nl.is-done .hk-nl__legal {
	display: none;
}

.hk-nl.is-done .hk-nl__msg {
	margin-top: 0;
}

@media (max-width: 600px) {
	.hk-nl__row {
		flex-direction: column;
	}

	.hk-nl .hk-nl__input {
		border-right: 1px solid var(--hk-nl-field-border);
	}

	.hk-nl .hk-nl__input:focus {
		border-color: var(--hk-nl-blue);
	}

	.hk-nl .hk-nl__btn {
		width: 100%;
		margin-top: 10px;
	}
}
