#wmpv {
	--wmpv-bg: #ffffff;
	--wmpv-ink: #1d2327;
	--wmpv-muted: #5c6470;
	--wmpv-line: #e3e6ea;
	--wmpv-soft: #f5f6f8;
	--wmpv-shop: #ffffff;
	--wmpv-shop-ink: #1d2327;
	--wmpv-field: #ffffff;
	--wmpv-r: min(var(--wmpv-radius, 14px), 22px);
	position: fixed;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	font-size: 15px;
	line-height: 1.45;
	color: var(--wmpv-ink);
	letter-spacing: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
}

#wmpv.wmpv--right {
	right: calc(20px + env(safe-area-inset-right, 0px));
}

#wmpv.wmpv--left {
	left: calc(20px + env(safe-area-inset-left, 0px));
}

#wmpv.wmpv--skin-dark {
	--wmpv-bg: #16181d;
	--wmpv-ink: #e8eaed;
	--wmpv-muted: #a7adb8;
	--wmpv-line: #343842;
	--wmpv-soft: #1d2026;
	--wmpv-shop: #262a31;
	--wmpv-shop-ink: #e8eaed;
	--wmpv-field: #1d2026;
}

#wmpv[hidden],
#wmpv [hidden] {
	display: none !important;
}

#wmpv *,
#wmpv *::before,
#wmpv *::after {
	box-sizing: border-box;
}

#wmpv button,
#wmpv input,
#wmpv textarea,
#wmpv a {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
}

#wmpv .wmpv-launcher {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	min-height: 0;
	margin: 0;
	padding: 0 22px 0 18px;
	border: 0;
	border-radius: 28px;
	background: var(--wmpv-accent, #1f2937);
	color: var(--wmpv-on-accent, #fff);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(16, 24, 40, 0.22), 0 2px 6px rgba(16, 24, 40, 0.12);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#wmpv .wmpv-launcher:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(16, 24, 40, 0.26), 0 3px 8px rgba(16, 24, 40, 0.14);
}

#wmpv .wmpv-launcher:focus-visible,
#wmpv .wmpv-icon-btn:focus-visible,
#wmpv .wmpv-btn:focus-visible,
#wmpv .wmpv-send:focus-visible {
	outline: 3px solid var(--wmpv-accent, #1f2937);
	outline-offset: 3px;
}

#wmpv .wmpv-launcher svg {
	flex: 0 0 auto;
}

#wmpv .wmpv-badge {
	position: absolute;
	top: -5px;
	right: -3px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: #d92d20;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
	display: none;
}

#wmpv.wmpv--unread .wmpv-badge {
	display: block;
}

#wmpv.wmpv--open .wmpv-badge {
	display: none;
}

#wmpv .wmpv-panel {
	position: absolute;
	bottom: 70px;
	width: 380px;
	max-width: calc(100vw - 40px);
	height: min(690px, calc(100vh - 110px));
	height: min(690px, calc(100dvh - 110px));
	display: flex;
	flex-direction: column;
	background: var(--wmpv-bg);
	border: 1px solid var(--wmpv-line);
	border-radius: calc(var(--wmpv-r) + 4px);
	box-shadow: 0 18px 50px rgba(16, 24, 40, 0.28), 0 4px 12px rgba(16, 24, 40, 0.12);
	overflow: hidden;
	animation: wmpv-in 0.18s ease-out;
}

#wmpv.wmpv--right .wmpv-panel {
	right: 0;
}

#wmpv.wmpv--left .wmpv-panel {
	left: 0;
}

@keyframes wmpv-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

#wmpv .wmpv-head {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	padding: 16px 12px 14px 18px;
	background: var(--wmpv-accent, #1f2937);
	color: var(--wmpv-on-accent, #fff);
}

#wmpv .wmpv-head-text {
	flex: 1 1 auto;
	min-width: 0;
}

#wmpv .wmpv-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

#wmpv .wmpv-status {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 4px;
	font-size: 13px;
	opacity: 0.92;
}

#wmpv .wmpv-status-dot {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #f59e0b;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

#wmpv .wmpv-panel[data-state="open"] .wmpv-status-dot {
	background: #22c55e;
}

#wmpv .wmpv-back {
	margin-top: 2px;
	padding-left: 16px;
	font-size: 12.5px;
	opacity: 0.85;
}

#wmpv .wmpv-icon-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	box-shadow: none;
}

#wmpv .wmpv-icon-btn:hover {
	background: rgba(255, 255, 255, 0.16);
}

#wmpv .wmpv-preview {
	padding: 8px 16px;
	background: #fff7d6;
	color: #6b4e00;
	font-size: 12.5px;
	border-bottom: 1px solid #f0dc8c;
}

#wmpv .wmpv-confirm {
	padding: 12px 16px;
	background: var(--wmpv-soft);
	border-bottom: 1px solid var(--wmpv-line);
}

#wmpv .wmpv-confirm-text {
	margin: 0 0 10px;
	font-size: 13.5px;
}

#wmpv .wmpv-confirm-row {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

#wmpv .wmpv-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px 14px 8px;
	background: var(--wmpv-soft);
}

#wmpv .wmpv-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#wmpv .wmpv-day {
	align-self: center;
	margin: 6px 0 2px;
	padding: 2px 10px;
	border-radius: 10px;
	background: var(--wmpv-line);
	color: var(--wmpv-muted);
	font-size: 11.5px;
	font-weight: 600;
}

#wmpv .wmpv-msg {
	display: flex;
	flex-direction: column;
	max-width: 84%;
}

#wmpv .wmpv-msg--in {
	align-self: flex-end;
	align-items: flex-end;
}

#wmpv .wmpv-msg--out {
	align-self: flex-start;
	align-items: flex-start;
}

#wmpv .wmpv-who {
	margin: 0 0 3px 4px;
	color: var(--wmpv-muted);
	font-size: 12px;
	font-weight: 600;
}

#wmpv .wmpv-bubble {
	padding: 9px 13px;
	border-radius: var(--wmpv-r);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	font-size: 15px;
	line-height: 1.45;
}

#wmpv .wmpv-msg--in .wmpv-bubble {
	background: var(--wmpv-accent, #1f2937);
	color: var(--wmpv-on-accent, #fff);
	border-bottom-right-radius: 5px;
}

#wmpv .wmpv-msg--out .wmpv-bubble {
	background: var(--wmpv-shop);
	color: var(--wmpv-shop-ink);
	border: 1px solid var(--wmpv-line);
	border-bottom-left-radius: 5px;
}

#wmpv .wmpv-link {
	color: inherit;
	text-decoration: underline;
	overflow-wrap: anywhere;
}

#wmpv .wmpv-card {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	max-width: 300px;
	margin: 6px 0 0;
	padding: 8px;
	border: 1px solid var(--wmpv-line);
	border-radius: var(--wmpv-r);
	background: var(--wmpv-shop);
	color: var(--wmpv-shop-ink);
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

#wmpv .wmpv-card:hover {
	border-color: var(--wmpv-accent, #1f2937);
}

#wmpv .wmpv-card-img {
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 8px;
}

#wmpv .wmpv-card-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

#wmpv .wmpv-card-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

#wmpv .wmpv-card-variant {
	color: var(--wmpv-shop-ink);
	font-size: 13.5px;
	font-weight: 700;
}

#wmpv .wmpv-card-price {
	color: var(--wmpv-muted);
	font-size: 13px;
}

#wmpv .wmpv-card-open {
	align-self: flex-start;
	margin-top: 4px;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--wmpv-accent, #1f2937);
	color: var(--wmpv-on-accent, #fff);
	font-size: 12.5px;
	font-weight: 600;
}

#wmpv .wmpv-meta {
	margin: 3px 4px 0;
	color: var(--wmpv-muted);
	font-size: 11px;
}

#wmpv .wmpv-msg.is-pending .wmpv-bubble {
	opacity: 0.65;
}

#wmpv .wmpv-msg.is-failed .wmpv-meta {
	color: #b42318;
	font-weight: 600;
}

#wmpv .wmpv-note {
	margin: 12px 4px 4px;
	color: var(--wmpv-muted);
	font-size: 13px;
	text-align: center;
}

#wmpv .wmpv-foot {
	flex: 0 0 auto;
	max-height: 62%;
	overflow-y: auto;
	border-top: 1px solid var(--wmpv-line);
	background: var(--wmpv-bg);
}

#wmpv .wmpv-panel.is-start .wmpv-body {
	flex: 0 1 auto;
	max-height: 38%;
	padding-bottom: 10px;
}

#wmpv .wmpv-panel.is-start .wmpv-foot {
	flex: 1 1 auto;
	max-height: none;
}

#wmpv .wmpv-form {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 12px 16px 14px;
}

#wmpv .wmpv-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

#wmpv .wmpv-label {
	color: var(--wmpv-ink);
	font-size: 13px;
	font-weight: 600;
}

#wmpv .wmpv-hint {
	color: var(--wmpv-muted);
	font-size: 12px;
}

#wmpv .wmpv-input {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--wmpv-line);
	border-radius: 10px;
	background: var(--wmpv-field);
	color: var(--wmpv-ink);
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	outline: none;
}

#wmpv .wmpv-input:focus {
	border-color: var(--wmpv-accent, #1f2937);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wmpv-accent, #1f2937) 22%, transparent);
}

#wmpv .wmpv-textarea {
	resize: vertical;
	min-height: 70px;
}

#wmpv .wmpv-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 2px 0 0;
	color: var(--wmpv-ink);
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
}

#wmpv .wmpv-consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--wmpv-accent, #1f2937);
}

#wmpv .wmpv-consent a {
	color: inherit;
	text-decoration: underline;
}

#wmpv .wmpv-captcha:empty {
	display: none;
}

#wmpv .wmpv-captcha .wmp-captcha__noscript {
	font-size: 12px;
	color: var(--wmpv-muted);
}

#wmpv .wmpv-error {
	padding: 9px 12px;
	border-radius: 9px;
	background: #fef3f2;
	color: #b42318;
	font-size: 13px;
	border: 1px solid #fecdca;
}

#wmpv .wmpv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--wmpv-accent, #1f2937);
	color: var(--wmpv-on-accent, #fff);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
}

#wmpv .wmpv-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

#wmpv .wmpv-btn--wide {
	width: 100%;
}

#wmpv .wmpv-btn--ghost {
	background: transparent;
	color: var(--wmpv-ink);
	border: 1px solid var(--wmpv-line);
}

#wmpv .wmpv-composer {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 0;
	margin: 10px 12px 12px;
	padding: 0;
	border: 2px solid var(--wmpv-ink);
	border-radius: 10px;
	background: var(--wmpv-field);
	overflow: hidden;
}

#wmpv .wmpv-composer:focus-within {
	box-shadow: 0 0 0 3px rgba(34, 28, 46, 0.14);
}

#wmpv .wmpv-compose,
#wmpv .wmpv-compose:focus {
	flex: 1 1 auto;
	resize: none;
	min-height: 48px;
	max-height: 140px;
	border: 0;
	border-radius: 0;
	padding: 12px 14px;
	background: transparent;
	box-shadow: none;
}

#wmpv .wmpv-send {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 48px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--wmpv-accent, #1f2937);
	color: var(--wmpv-on-accent, #fff);
	cursor: pointer;
	box-shadow: none;
}

#wmpv .wmpv-send:disabled {
	opacity: 0.5;
	cursor: default;
}

#wmpv .wmpv-counter {
	position: absolute;
	right: 56px;
	bottom: 2px;
	color: var(--wmpv-muted);
	font-size: 10.5px;
	pointer-events: none;
}

#wmpv .wmpv-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

#wmpv .wmpv-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	#wmpv {
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}

	#wmpv.wmpv--right {
		right: calc(16px + env(safe-area-inset-right, 0px));
	}

	#wmpv.wmpv--left {
		left: calc(16px + env(safe-area-inset-left, 0px));
	}

	#wmpv .wmpv-launcher {
		width: 56px;
		padding: 0;
		justify-content: center;
	}

	#wmpv .wmpv-launcher-label {
		display: none;
	}

	#wmpv.wmpv--nophone {
		display: none !important;
	}

	#wmpv.wmpv--open .wmpv-launcher {
		display: none;
	}

	#wmpv .wmpv-panel {
		position: fixed;
		inset: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		height: 100dvh;
		border: 0;
		border-radius: 0;
		padding-top: env(safe-area-inset-top, 0px);
		padding-bottom: env(safe-area-inset-bottom, 0px);
		animation: none;
	}

	#wmpv .wmpv-input {
		font-size: 16px;
	}

	#wmpv .wmpv-foot {
		max-height: 70%;
	}
}

html.wmpv-lock,
html.wmpv-lock body {
	overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
	#wmpv .wmpv-panel,
	#wmpv .wmpv-launcher {
		animation: none;
		transition: none;
	}
}

@media print {
	#wmpv {
		display: none !important;
	}
}
