/* Anmälan till nyhetsbrevet, se ../newsletter.php och newsletter.js. */

.wan-nl {
	color: #111;
	font-family: inherit;
}

.wan-nl__inner {
	max-width: 520px;
	margin: 0 auto;
}

.wan-nl .wan-nl__title {
	margin: 0 0 6px;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
}

.wan-nl__text {
	margin: 0 0 14px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.wan-nl__row {
	display: flex;
	gap: 8px;
}

.wan-nl .wan-nl__email {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	padding: 0 12px;
	border: 1px solid #8a8a8a;
	border-radius: 0;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 1rem;
}

.wan-nl .wan-nl__button {
	flex: 0 0 auto;
	height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: #111;
	color: #fff;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.wan-nl .wan-nl__button--block {
	display: block;
	width: 100%;
	height: 48px;
	margin-top: 14px;
	font-weight: 600;
}

.wan-nl .wan-nl__button:disabled {
	opacity: 0.6;
	cursor: default;
}

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

.wan-nl .wan-nl__interests-title {
	margin: 16px 0 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

.wan-nl__interests {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 10px;
	font-size: 1rem;
}

.wan-nl__interest {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

/* Större rutor - lättare att träffa på mobilen (intressen och samtycke) */
.wan-nl .wan-nl__interest input[type="checkbox"],
.wan-nl .wan-nl__agree input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #111;
	cursor: pointer;
}

.wan-nl__consent {
	margin: 10px 0 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: #555;
}

.wan-nl__status {
	margin: 8px 0 0;
	font-size: 0.85rem;
}

.wan-nl__status:empty {
	display: none;
}

.wan-nl__status.is-error {
	color: #8a1c0f;
}

.wan-nl__done {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
}

.wan-nl__done--small {
	margin-top: 12px;
	font-size: 0.875rem;
	font-weight: 400;
	color: #555;
}

/* Svaret efter anmälan: stor bock i mitten, rubrik och text under (även ovanför rabattkoden) */
.wan-nl__result {
	margin: 0 0 16px;
	text-align: center;
}

.wan-nl__check {
	display: flex;
	justify-content: center;
	margin: 4px 0 14px;
	color: #15803d;
}

.wan-nl__check svg {
	display: block;
	width: 56px;
	height: 56px;
}

.wan-nl .wan-nl__result-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.wan-nl .wan-nl__result-text {
	margin: 10px 0 0;
	font-size: 1rem;
	line-height: 1.5;
}

/* Rabattkoden direkt efter anmälan */
.wan-nl__coupon-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 1.0625rem;
	font-weight: 600;
}

.wan-nl__coupon-title svg {
	flex: 0 0 auto;
	color: #15803d;
}

.wan-nl__coupon-text {
	margin: 0 0 14px;
	font-size: 1rem;
}

.wan-nl__coupon-code {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 12px 16px;
	border: 1px solid #d6d3d1;
	border-radius: 8px;
	background: #f5f5f4;
	color: #111;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	user-select: all;
}

.wan-nl .wan-nl__coupon-copy {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 10px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: #111;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.wan-nl__agree {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 0;
	font-size: 1rem;
	line-height: 1.4;
	cursor: pointer;
}

.wan-nl .wan-nl__agree input[type="checkbox"] {
	margin-top: 1px;
}

.wan-nl__consent a {
	color: inherit;
	text-decoration: underline;
}

.wan-nl__coupon-note {
	margin: 8px 0 0;
	font-size: 0.8125rem;
	color: #555;
}

/* Sidfoten: två spalter som Klaviyos block - stor rubrik till vänster, formuläret till höger */
.wan-nl--footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
	/* Samma bredd som temats .grid-container (Klaviyos block): 1365 px och 15 px kant */
	max-width: 1365px;
	margin: 3rem auto;
	padding: 0 15px;
	text-align: left;
}

.wan-nl.wan-nl--footer .wan-nl__intro-title {
	margin: 0 0 1rem;
	font-size: 3rem;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
}

.wan-nl--footer .wan-nl__intro-text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.wan-nl--footer .wan-nl__inner {
	max-width: none;
}

@media (max-width: 639px) {
	.wan-nl--footer {
		grid-template-columns: 1fr;
		gap: 20px;
		margin: 2rem auto;
		padding: 0 16px;
	}

	.wan-nl.wan-nl--footer .wan-nl__intro-title {
		margin-bottom: 0.75rem;
		font-size: 1.625rem;
		line-height: 1.2;
	}

	/* Kategorierna en per rad */
	.wan-nl--footer .wan-nl__interests {
		flex-direction: column;
		gap: 12px;
	}
}

.wan-nl--page {
	padding: 24px 0;
}

/* Meddela mig när den finns igen (produktsidan) */
.wan-nl-stock {
	margin: 12px 0 16px;
	padding: 14px 16px;
	border: 1px solid #e6e6e6;
	background: #fafafa;
}

.wan-nl-stock[hidden] {
	display: none;
}

.wan-nl .wan-nl-stock__title {
	font-size: 1rem;
	margin-bottom: 8px;
}

/* Popup */
.wan-nl-popup {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.45);
}

.wan-nl--popup {
	position: relative;
	width: min(480px, 100%);
	padding: 32px 24px 24px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.wan-nl-popup__close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	background: none;
	color: #111;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.wan-nl-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 99999;
	transform: translateX(-50%);
	max-width: calc(100% - 32px);
	padding: 14px 18px;
	background: #111;
	color: #fff;
	font-size: 0.95rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

	.wan-nl .wan-nl__button {
		width: 100%;
	}
}
