/* Mortgage Lane cookie consent banner (self-hosted, replaces iubenda) */

#ml-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: #2A2C36;
	color: #FFFFFF;
	font-size: 0.9rem;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}

#ml-cookie-banner .ml-cb-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
}

#ml-cookie-banner .ml-cb-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	justify-content: space-between;
}

#ml-cookie-banner .ml-cb-text {
	margin: 0;
	flex: 1 1 320px;
	line-height: 1.5;
}

#ml-cookie-banner .ml-cb-text a {
	color: #4CEAB1;
	text-decoration: underline;
}

#ml-cookie-banner .ml-cb-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	flex: 0 0 auto;
}

#ml-cookie-banner .ml-cb-btn {
	font: inherit;
	cursor: pointer;
	border-radius: 999px;
	padding: 0.55rem 1.1rem;
	border: 1px solid #4CEAB1;
	background: transparent;
	color: #FFFFFF;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

#ml-cookie-banner .ml-cb-btn:hover {
	background: rgba(76, 234, 177, 0.15);
}

#ml-cookie-banner .ml-cb-accept {
	background: #4CEAB1;
	color: #000E1A;
	font-weight: 600;
}

#ml-cookie-banner .ml-cb-accept:hover {
	background: #39d69d;
}

#ml-cookie-banner .ml-cb-prefs {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

#ml-cookie-banner .ml-cb-prefs[hidden] {
	display: none;
}

#ml-cookie-banner .ml-cb-prefs:not([hidden]) {
	display: flex;
}

#ml-cookie-banner .ml-cb-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

#ml-cookie-banner .ml-cb-toggle input {
	width: 1rem;
	height: 1rem;
}

#ml-cookie-banner .ml-cb-toggle span {
	opacity: 0.7;
	font-size: 0.8rem;
}

@media (max-width: 640px) {
	#ml-cookie-banner .ml-cb-inner {
		padding: 1rem;
	}
	#ml-cookie-banner .ml-cb-buttons {
		width: 100%;
	}
	#ml-cookie-banner .ml-cb-btn {
		flex: 1 1 auto;
		text-align: center;
	}
}
