/*
 * Global social dock and WhatsApp shortcut.
 * Separate from the locked Bricks header.
 */
.mm-social-host,
.brxe-section.mm-social-host {
	display: none !important;
}

.mm-global-social-dock {
	position: absolute;
	top: 164px;
	left: 64px;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 7px;
	border: 1px solid rgba(224, 195, 136, .30);
	border-radius: 999px;
	background:
		linear-gradient(145deg, rgba(24, 21, 16, .88), rgba(7, 7, 6, .82));
	box-shadow:
		0 18px 48px rgba(0, 0, 0, .30),
		inset 0 1px 0 rgba(255, 255, 255, .07);
	-webkit-backdrop-filter: blur(16px) saturate(1.15);
	backdrop-filter: blur(16px) saturate(1.15);
	isolation: isolate;
	transition: top .22s ease, left .22s ease, opacity .22s ease;
}

.mm-global-social-dock::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(145deg, rgba(239, 211, 157, .08), transparent 44%);
}

.mm-global-network {
	--mm-network-color: #f5ecdc;
	position: relative;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(236, 214, 173, .14);
	border-radius: 50%;
	background: rgba(255, 255, 255, .025);
	color: #f5ecdc;
	text-decoration: none !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
	transition:
		transform .22s ease,
		color .22s ease,
		border-color .22s ease,
		background .22s ease,
		box-shadow .22s ease;
}

.mm-global-network svg {
	width: 19px;
	height: 19px;
	overflow: visible;
}

.mm-global-instagram svg,
.mm-global-tiktok svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mm-global-instagram svg circle:last-child {
	fill: currentColor;
	stroke: none;
}

.mm-global-facebook svg,
.mm-global-youtube svg,
.mm-global-linkedin svg {
	fill: currentColor;
}

.mm-global-youtube .mm-youtube-play {
	fill: #0a0908;
}

.mm-global-instagram { --mm-network-color: #e85b86; }
.mm-global-facebook { --mm-network-color: #4b8df8; }
.mm-global-youtube { --mm-network-color: #ff3155; }
.mm-global-tiktok { --mm-network-color: #35e8df; }
.mm-global-linkedin { --mm-network-color: #5ba6e8; }

.mm-global-network:hover,
.mm-global-network:focus-visible {
	color: var(--mm-network-color);
	border-color: color-mix(in srgb, var(--mm-network-color) 58%, transparent);
	background: color-mix(in srgb, var(--mm-network-color) 12%, rgba(10, 9, 8, .92));
	box-shadow: 0 8px 24px color-mix(in srgb, var(--mm-network-color) 18%, transparent);
	transform: translateY(-2px) scale(1.06);
	outline: none;
}

.mm-global-whatsapp {
	position: fixed;
	right: max(22px, env(safe-area-inset-right));
	bottom: max(22px, env(safe-area-inset-bottom));
	z-index: 99991;
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 50%;
	background: linear-gradient(145deg, #31df78, #18b959);
	color: #fff !important;
	padding: 0;
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	text-decoration: none !important;
	box-shadow:
		0 18px 42px rgba(10, 114, 54, .36),
		0 0 0 8px rgba(37, 211, 102, .10),
		inset 0 1px 0 rgba(255, 255, 255, .34);
	transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
}

.mm-global-whatsapp::before {
	content: "";
	position: absolute;
	inset: -9px;
	z-index: -1;
	border: 1px solid rgba(37, 211, 102, .42);
	border-radius: 50%;
	animation: mm-whatsapp-pulse 2.6s ease-out infinite;
}

.mm-global-whatsapp svg {
	width: 37px;
	height: 37px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mm-global-whatsapp:hover,
.mm-global-whatsapp:focus-visible {
	transform: translateY(-4px) scale(1.055);
	filter: saturate(1.08) brightness(1.04);
	box-shadow:
		0 24px 54px rgba(10, 114, 54, .44),
		0 0 0 10px rgba(37, 211, 102, .12),
		inset 0 1px 0 rgba(255, 255, 255, .38);
	outline: 2px solid rgba(255, 255, 255, .82);
	outline-offset: 4px;
}

@keyframes mm-whatsapp-pulse {
	0% { transform: scale(.86); opacity: .7; }
	72%, 100% { transform: scale(1.22); opacity: 0; }
}


.mm-wa-chat {
	position: fixed;
	right: max(22px, env(safe-area-inset-right));
	bottom: 104px;
	z-index: 99992;
	width: min(420px, calc(100vw - 32px));
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .54);
	border-radius: 24px;
	background: #f4efe8;
	box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(14px) scale(.975);
	transform-origin: bottom right;
	transition: opacity .22s ease, transform .22s ease;
}

.mm-wa-chat.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.mm-wa-chat__header {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 142px;
	padding: 26px 30px 24px;
	background:
		radial-gradient(circle at 84% 12%, rgba(255,255,255,.12), transparent 34%),
		linear-gradient(135deg, #087769, #075f56);
	color: #fff;
}

.mm-wa-chat__close {
	position: absolute;
	top: 18px;
	left: 18px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font: 400 34px/1 Arial, sans-serif;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.mm-wa-chat__close:hover,
.mm-wa-chat__close:focus-visible {
	background: rgba(255,255,255,.13);
	outline: 2px solid #fff;
	outline-offset: 2px;
	transform: scale(1.04);
}

.mm-wa-chat__identity {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-right: auto;
	margin-left: 0;
	text-align: right;
}

.mm-wa-chat__identity > span:last-child {
	display: grid;
	gap: 3px;
}

.mm-wa-chat__identity strong {
	font-size: 25px;
	font-weight: 800;
	line-height: 1.1;
}

.mm-wa-chat__identity small {
	font-size: 17px;
	font-weight: 600;
	opacity: .94;
}

.mm-wa-chat__avatar {
	position: relative;
	display: block;
	width: 78px;
	height: 78px;
	border: 3px solid rgba(255,255,255,.4);
	border-radius: 50%;
	background: #d8c3a1;
	box-shadow: 0 8px 22px rgba(0,0,0,.22);
}

.mm-wa-chat__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
	object-position: 50% 18%;
}

.mm-wa-chat__avatar i {
	position: absolute;
	right: -2px;
	bottom: 4px;
	width: 18px;
	height: 18px;
	border: 3px solid #087166;
	border-radius: 50%;
	background: #39c665;
}

.mm-wa-chat__body {
	min-height: 205px;
	padding: 30px 24px;
	background:
		linear-gradient(rgba(240,234,225,.94), rgba(240,234,225,.94)),
		radial-gradient(circle at 20% 20%, rgba(8,119,105,.08), transparent 32%);
}

.mm-wa-chat__message {
	position: relative;
	display: grid;
	gap: 9px;
	max-width: 90%;
	margin-right: 0;
	margin-left: auto;
	padding: 22px 24px 18px;
	border-radius: 20px 4px 20px 20px;
	background: #fff;
	color: #111;
	box-shadow: 0 10px 28px rgba(59,45,28,.08);
}

.mm-wa-chat__message::before {
	content: "";
	position: absolute;
	top: 0;
	right: -14px;
	border-width: 0 0 18px 18px;
	border-style: solid;
	border-color: transparent transparent #fff transparent;
}

.mm-wa-chat__message strong {
	font-size: 18px;
	font-weight: 800;
}

.mm-wa-chat__message span {
	font-size: 20px;
	line-height: 1.5;
}

.mm-wa-chat__time {
	justify-self: start;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 700;
	color: #242424;
	direction: ltr;
}

.mm-wa-chat__footer {
	padding: 16px 22px 20px;
	background: #fff;
}

.mm-wa-chat__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 58px;
	padding: 12px 20px;
	border-radius: 999px;
	background: linear-gradient(135deg, #27d36d, #1ebe5e);
	color: #fff !important;
	font-size: 18px;
	font-weight: 800;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 12px 26px rgba(31,190,94,.24);
	transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.mm-wa-chat__cta svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mm-wa-chat__cta:hover,
.mm-wa-chat__cta:focus-visible {
	transform: translateY(-2px);
	filter: brightness(1.035) saturate(1.05);
	box-shadow: 0 16px 32px rgba(31,190,94,.31);
	outline: 3px solid #075f56;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.mm-global-social-dock {
		top: calc(86px + env(safe-area-inset-top, 0px));
		right: auto;
		left: 8px;
		width: auto;
		flex-direction: column;
		gap: 3px;
		padding: 5px;
		border-radius: 999px;
		transform: none;
	}

	.mm-global-network {
		width: 42px;
		height: 42px;
	}

	.mm-global-network svg {
		width: 17px;
		height: 17px;
	}

	.mm-global-whatsapp {
		right: max(14px, env(safe-area-inset-right));
		bottom: max(16px, env(safe-area-inset-bottom));
		width: 58px;
		height: 58px;
	}

	.mm-global-whatsapp svg {
		width: 32px;
		height: 32px;
	}

	.mm-wa-chat {
		right: max(12px, env(safe-area-inset-right));
		bottom: 88px;
		width: calc(100vw - 24px);
		max-height: calc(100vh - 112px);
		border-radius: 20px;
	}

	.mm-wa-chat__header {
		min-height: 112px;
		padding: 20px 22px;
	}

	.mm-wa-chat__identity {
		gap: 12px;
	}

	.mm-wa-chat__identity strong {
		font-size: 21px;
	}

	.mm-wa-chat__identity small {
		font-size: 15px;
	}

	.mm-wa-chat__avatar {
		width: 62px;
		height: 62px;
	}

	.mm-wa-chat__body {
		min-height: 156px;
		padding: 22px 18px;
	}

	.mm-wa-chat__message {
		padding: 18px 20px 15px;
	}

	.mm-wa-chat__message span {
		font-size: 18px;
	}

	.mm-wa-chat__footer {
		padding: 13px 16px 16px;
	}

	.mm-wa-chat__cta {
		min-height: 52px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-global-social-dock,
	.mm-global-network,
	.mm-global-whatsapp,
	.mm-wa-chat,
	.mm-wa-chat__close,
	.mm-wa-chat__cta {
		transition: none !important;
	}

	.mm-global-whatsapp::before {
		animation: none !important;
	}
}
