/* MS WhatsApp Query Tracker — popup */
.mswq-overlay {
	--mswq-accent: #c21875;
	--mswq-wa: #25d366;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 10, 18, 0.55);
	opacity: 0;
	transition: opacity 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}
.mswq-overlay[hidden] {
	display: none !important;
}
.mswq-overlay.mswq-in {
	opacity: 1;
}
html.mswq-lock,
html.mswq-lock body {
	overflow: hidden !important;
}

.mswq-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	background: #fff;
	color: #2b2230;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	padding: 26px 24px 20px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
	transform: translateY(10px);
	transition: transform 0.18s ease;
	box-sizing: border-box;
}
.mswq-in .mswq-modal {
	transform: none;
}
.mswq-modal *,
.mswq-modal *::before,
.mswq-modal *::after {
	box-sizing: border-box;
}

.mswq-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0 !important;
	border-radius: 50% !important;
	background: #f4eef2 !important;
	color: #5b4a55 !important;
	font-size: 22px !important;
	line-height: 34px !important;
	padding: 0 !important;
	cursor: pointer;
	box-shadow: none !important;
}
.mswq-close:hover,
.mswq-close:focus-visible {
	background: #ead9e3 !important;
}

.mswq-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 36px 6px 0;
}
.mswq-icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--mswq-wa);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.mswq-icon svg {
	width: 22px;
	height: 22px;
}
.mswq-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 21px !important;
	line-height: 1.2 !important;
	color: #2b2230 !important;
	font-weight: 700 !important;
}
.mswq-intro {
	margin: 4px 0 14px !important;
	color: #6b5c66;
	font-size: 14px;
}

.mswq-form {
	margin: 0;
}
.mswq-field {
	display: block;
	margin: 0 0 11px;
}
.mswq-field > span {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: #3d3139;
}
.mswq-field b {
	color: var(--mswq-accent);
}
.mswq-opt {
	font-weight: 400;
	color: #8a7a84;
}
.mswq-form input[type='text'],
.mswq-form input[type='tel'],
.mswq-form input[type='date'],
.mswq-form select,
.mswq-form textarea {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 10px 12px !important;
	min-height: 44px;
	border: 1px solid #ddd0d8 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #2b2230 !important;
	font: inherit !important;
	font-size: 16px !important; /* stops iOS zoom */
	box-shadow: none !important;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.mswq-form select {
	background-image: linear-gradient(45deg, transparent 50%, #8a7a84 50%), linear-gradient(135deg, #8a7a84 50%, transparent 50%) !important;
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50% !important;
	background-size: 5px 5px, 5px 5px !important;
	background-repeat: no-repeat !important;
	padding-right: 34px !important;
}
.mswq-form textarea {
	min-height: 60px;
	resize: vertical;
}
.mswq-form input:focus,
.mswq-form select:focus,
.mswq-form textarea:focus {
	border-color: var(--mswq-accent) !important;
	box-shadow: 0 0 0 3px rgba(194, 24, 117, 0.15) !important;
}
.mswq-form .mswq-invalid {
	border-color: #d63638 !important;
}

.mswq-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.mswq-error {
	min-height: 0;
	color: #d63638;
	font-size: 13px;
	margin: 0 0 6px;
}
.mswq-error:empty {
	display: none;
}

.mswq-submit {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	margin: 6px 0 0 !important;
	padding: 12px 18px !important;
	border: 0 !important;
	border-radius: 50px !important;
	background: var(--mswq-wa) !important;
	color: #fff !important;
	font: inherit !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.mswq-submit svg {
	width: 20px;
	height: 20px;
}
.mswq-submit:hover,
.mswq-submit:focus-visible {
	background: #1ebe5b !important;
}
.mswq-skip {
	display: block !important;
	width: 100%;
	margin: 8px 0 0 !important;
	padding: 8px !important;
	border: 0 !important;
	background: transparent !important;
	color: #8a7a84 !important;
	font: inherit !important;
	font-size: 13px !important;
	text-decoration: underline !important;
	cursor: pointer;
	box-shadow: none !important;
	text-transform: none !important;
}
.mswq-skip:hover {
	color: var(--mswq-accent) !important;
}
.mswq-privacy {
	margin: 10px 0 0 !important;
	font-size: 11.5px !important;
	line-height: 1.4 !important;
	color: #9a8b94 !important;
	text-align: center;
}
.mswq-privacy a {
	color: var(--mswq-accent) !important;
}

/* Shortcode button */
.mswq-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	border-radius: 50px;
	background: #c21875;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}
.mswq-button:hover {
	filter: brightness(0.95);
}

@media (max-width: 480px) {
	.mswq-overlay {
		align-items: flex-end;
		padding: 0;
	}
	.mswq-modal {
		max-width: none;
		border-radius: 18px 18px 0 0;
		max-height: 92vh;
		max-height: 92dvh;
		padding: 22px 18px calc(16px + env(safe-area-inset-bottom));
	}
}
@media (prefers-reduced-motion: reduce) {
	.mswq-overlay,
	.mswq-modal {
		transition: none;
	}
}
