/**
 * Ofcore Newsletter — front styles
 */

.ofcore-newsletter-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0 4px;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
}

.news-form {
	flex-wrap: wrap;
}

.news-form .ofcore-newsletter-consent {
	flex: 1 0 100%;
	order: 3;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
}

.ofcore-newsletter-consent input {
	margin-top: 2px;
	flex-shrink: 0;
}

.ofcore-checkout-optin {
	margin: 12px 0;
}

.ofcore-nl-status {
	max-width: 640px;
	margin: 60px auto;
	padding: 0 20px;
	text-align: center;
}

.ofcore-nl-status h2 {
	font-size: 24px;
	margin-bottom: 12px;
}

.ofcore-nl-status p {
	color: #666;
}

.ofcore-nl-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #1b1815;
	color: #fff;
	padding: 12px 20px;
	border-radius: 4px;
	font-size: 14px;
	transform: translateY(20px);
	opacity: 0;
	transition: all 0.3s;
	z-index: 999999;
	pointer-events: none;
	max-width: min(360px, calc(100vw - 24px));
}

.ofcore-nl-toast.is-error {
	background: #8a1f1f;
}

.ofcore-nl-toast.show {
	transform: none;
	opacity: 1;
}

@media (max-width: 767px) {
	.ofcore-nl-toast {
		bottom: calc(72px + env(safe-area-inset-bottom, 0px));
		left: 12px;
		right: 12px;
		text-align: center;
	}
}
