.dmw-widget {
	--dmw-button-height: 52px;
	--dmw-button-circle: 56px;
	--dmw-button-icon: 22px;
	position: fixed;
	z-index: 99999;
	bottom: calc(var(--dmw-bottom, 20px) + env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
.dmw-right { right: calc(var(--dmw-horizontal, 20px) + env(safe-area-inset-right, 0px)); }
.dmw-left { left: calc(var(--dmw-horizontal, 20px) + env(safe-area-inset-left, 0px)); align-items: flex-start; }
.dmw-size-small { --dmw-button-height: 46px; --dmw-button-circle: 48px; --dmw-button-icon: 20px; }
.dmw-size-large { --dmw-button-height: 60px; --dmw-button-circle: 64px; --dmw-button-icon: 26px; }
.dmw-widget *, .dmw-widget *::before, .dmw-widget *::after { box-sizing: border-box; }
/* Outrank theme resets for [type="button"], including hover and focus. */
.dmw-widget button.dmw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: var(--dmw-button-height);
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--dmw-accent, #1d5d3f);
	color: var(--dmw-button-text, #fff);
	box-shadow: 0 8px 24px rgba(16, 34, 25, .24);
	font: 600 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	text-align: center;
	white-space: normal;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.dmw-button:hover { transform: translateY(-2px); box-shadow: 0 11px 28px rgba(16, 34, 25, .3); }
.dmw-button:focus-visible, .dmw-link:focus-visible { outline: 3px solid var(--dmw-accent, #1d5d3f); outline-offset: 3px; }
.dmw-button svg { width: var(--dmw-button-icon); height: var(--dmw-button-icon); flex: 0 0 auto; }
.dmw-style-icon .dmw-button, .dmw-mobile-style-icon .dmw-button { flex-shrink: 0; }
.dmw-widget.dmw-style-icon .dmw-button { width: var(--dmw-button-circle); height: var(--dmw-button-circle); min-height: 0; padding: 0; }
.dmw-style-icon .dmw-button__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.dmw-panel {
	width: min(340px, calc(100vw - 32px));
	max-height: min(640px, calc(100vh - var(--dmw-bottom, 20px) - var(--dmw-button-height) - 46px));
	margin-bottom: 12px;
	overflow: auto;
	overscroll-behavior: contain;
	background: rgba(255, 255, 255, .97);
	border: 1px solid rgba(23, 34, 28, .09);
	border-radius: 16px;
	box-shadow: 0 18px 60px rgba(16, 34, 25, .18);
	color: #17221c;
	transform-origin: bottom right;
	animation: dmw-panel-in .18s ease-out;
	backdrop-filter: blur(16px);
}
.dmw-left .dmw-panel { transform-origin: bottom left; }
.dmw-panel[hidden] { display: none; }
.dmw-panel__header { padding: 20px 20px 13px; }
.dmw-panel__title { display: block; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.dmw-panel__intro { margin: 6px 0 0; color: #657169; font-size: 13px; }
.dmw-links { display: grid; gap: 5px; padding: 0 10px 12px; }
.dmw-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 8px 10px;
	border-radius: 11px;
	color: inherit;
	text-decoration: none;
	transition: background .16s ease;
}
.dmw-link:hover, .dmw-link:focus-visible { background: #f1f5f2; color: inherit; text-decoration: none; }
.dmw-link__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #edf1ee;
	color: #24382d;
	overflow: hidden;
}
.dmw-link__icon svg { width: 23px; height: 23px; }
.dmw-link__icon--whatsapp { background: #e7f7ed; color: #1eaa59; }
.dmw-link__icon--telegram { background: #e8f3fc; color: #279bd5; }
.dmw-link__icon--max { background: #eeebfb; color: #6b52c7; }
.dmw-link__icon--phone { background: #edf1ee; color: #24382d; }
.dmw-link__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.dmw-link__text { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.dmw-link__text strong { font-size: 15px; overflow-wrap: anywhere; }
.dmw-link__text small { margin-top: 2px; color: #78837b; font-size: 12px; }
.dmw-link__arrow { color: #8a948d; font-size: 17px; }
.dmw-panel__footer { padding: 10px 20px 14px; border-top: 1px solid #edf0ed; color: #8a948d; font-size: 11px; text-align: center; }
.dmw-preview-empty { margin: 0; padding: 18px 10px; color: #657169; text-align: center; font-size: 13px; }
@keyframes dmw-panel-in {
	from { opacity: 0; transform: translateY(8px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 782px) {
	.dmw-devices-desktop { display: none; }
}
@media (min-width: 783px) {
	.dmw-devices-mobile { display: none; }
}
@media (max-width: 480px) {
	.dmw-widget {
		bottom: calc(var(--dmw-mobile-bottom, 20px) + env(safe-area-inset-bottom, 0px));
		--dmw-button-height: 52px;
		--dmw-button-circle: 56px;
		--dmw-button-icon: 22px;
	}
	.dmw-right { right: calc(var(--dmw-mobile-horizontal, 16px) + env(safe-area-inset-right, 0px)); }
	.dmw-left { left: calc(var(--dmw-mobile-horizontal, 16px) + env(safe-area-inset-left, 0px)); }
	.dmw-mobile-size-small { --dmw-button-height: 46px; --dmw-button-circle: 48px; --dmw-button-icon: 20px; }
	.dmw-mobile-size-large { --dmw-button-height: 60px; --dmw-button-circle: 64px; --dmw-button-icon: 26px; }
	.dmw-widget.dmw-mobile-style-icon .dmw-button { width: var(--dmw-button-circle); height: var(--dmw-button-circle); min-height: 0; padding: 0; }
	.dmw-mobile-style-icon .dmw-button__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
	.dmw-widget.dmw-mobile-style-text .dmw-button { width: auto; height: auto; min-height: var(--dmw-button-height); padding: 0 20px; }
	.dmw-mobile-style-text .dmw-button__label { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; white-space: normal; }
	.dmw-panel { max-height: calc(100dvh - var(--dmw-mobile-bottom, 20px) - var(--dmw-button-height) - 42px); }
}
@media (prefers-reduced-motion: reduce) {
	.dmw-panel { animation: none; }
	.dmw-widget button.dmw-button, .dmw-link { transition: none; }
}
@media (forced-colors: active) {
	.dmw-widget button.dmw-button, .dmw-panel, .dmw-link__icon { border: 1px solid ButtonText; }
}
@media print { .dmw-widget { display: none !important; } }
