.wm-widget,
.wm-inline-wrap {
	--wm-accent: #25d366;
	--wm-dark: #173522;
	--wm-muted: #6b756f;
	--wm-border: #d9e2dc;
	--wm-soft: #f8fbf9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
	box-sizing: border-box;
}

.wm-widget *,
.wm-inline-wrap * {
	box-sizing: border-box;
}

.wm-widget {
	position: fixed;
	z-index: 999990;
	bottom: max(22px, env(safe-area-inset-bottom));
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity .22s ease, transform .22s ease;
}

.wm-widget.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.wm-position-right { right: max(22px, env(safe-area-inset-right)); }
.wm-position-left { left: max(22px, env(safe-area-inset-left)); }

/* Product button language reused for the floating launcher. */
.wm-widget-bubble {
	appearance: none;
	min-width: 148px;
	min-height: 56px;
	padding: 7px 13px 7px 7px;
	border: 1px solid var(--wm-border);
	border-radius: 17px;
	background: rgba(255, 255, 255, .97);
	color: var(--wm-dark);
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(20, 49, 31, .14);
	position: relative;
	text-align: left;
	transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
	backdrop-filter: blur(10px);
}

.wm-widget-bubble:hover {
	border-color: #78c797;
	background: #f8fbf9;
	transform: translateY(-2px);
	box-shadow: 0 16px 36px rgba(20, 49, 31, .18);
}

.wm-widget-bubble-icon {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--wm-accent);
	color: #12331f;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.wm-widget-bubble-icon svg {
	width: 24px;
	height: 24px;
}

.wm-widget-bubble-copy {
	display: block;
	min-width: 0;
}

.wm-widget-bubble-copy strong,
.wm-widget-bubble-copy small {
	display: block;
	white-space: nowrap;
}

.wm-widget-bubble-copy strong {
	font-size: 12px;
	line-height: 1.2;
	font-weight: 760;
	letter-spacing: -.1px;
}

.wm-widget-bubble-copy small {
	font-size: 9px;
	line-height: 1.2;
	color: #77817b;
	margin-top: 4px;
}

.wm-widget-pulse {
	position: absolute;
	right: -2px;
	top: -2px;
	width: 11px;
	height: 11px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #13a34f;
}

.wm-widget.is-offline .wm-widget-pulse {
	background: #9aa39e;
}

.wm-widget-panel {
	position: absolute;
	width: 348px;
	bottom: 70px;
	background: #fff;
	border: 1px solid rgba(17, 40, 24, .10);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 24px 65px rgba(14, 31, 20, .20);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px) scale(.98);
	transform-origin: bottom right;
	transition: .2s ease;
}

.wm-position-right .wm-widget-panel { right: 0; }
.wm-position-left .wm-widget-panel { left: 0; transform-origin: bottom left; }
.wm-widget.is-open .wm-widget-panel { opacity: 1; visibility: visible; transform: none; }

.wm-widget-head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 18px 20px;
	background: #f8fbf9;
	border-bottom: 1px solid #edf2ef;
	color: var(--wm-dark);
}

.wm-widget-avatar {
	position: relative;
	width: 43px;
	height: 43px;
	border-radius: 13px;
	background: var(--wm-accent);
	color: #12331f;
	display: grid;
	place-items: center;
	font-size: 17px;
	font-weight: 800;
}

.wm-widget-presence {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #f8fbf9;
	background: #9aa39e;
}

.wm-widget-presence.is-online { background: #13a34f; }
.wm-widget-head strong,
.wm-widget-head small { display: block; }
.wm-widget-head strong { font-size: 13px; line-height: 1.25; color: var(--wm-dark); }
.wm-widget-head small { font-size: 10px; color: #758079; margin-top: 4px; }

.wm-widget-close {
	position: absolute;
	right: 12px;
	top: 11px;
	z-index: 2;
	border: 1px solid #e0e7e2;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: #fff;
	color: #65716a;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.wm-widget-close:hover { background: #f3f7f4; color: var(--wm-dark); }

.wm-widget-body { padding: 22px; }
.wm-widget-body h2 {
	font-size: 18px !important;
	line-height: 1.3 !important;
	letter-spacing: -.35px !important;
	margin: 0 0 8px !important;
	color: #17211b !important;
}
.wm-widget-body p {
	font-size: 12px !important;
	line-height: 1.65 !important;
	color: var(--wm-muted) !important;
	margin: 0 !important;
}

.wm-widget-cta {
	min-height: 48px;
	margin-top: 18px;
	border: 1px solid var(--wm-border);
	border-radius: 12px;
	background: var(--wm-soft);
	color: var(--wm-dark) !important;
	text-decoration: none !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-size: 12px;
	font-weight: 740;
	box-shadow: none !important;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.wm-widget-cta:hover {
	border-color: #78c797;
	background: #effaf3;
	color: var(--wm-dark) !important;
	transform: translateY(-1px);
}

.wm-widget-cta svg {
	width: 21px;
	height: 21px;
	padding: 4px;
	border-radius: 7px;
	background: var(--wm-accent);
	box-sizing: content-box;
}

.wm-widget-privacy {
	display: block;
	text-align: center;
	color: #929b96;
	font-size: 9px;
	margin-top: 10px;
}

.wm-widget-overlay { display: none; }

.wm-inline-wrap { margin: 14px 0; }
.wm-inline-button {
	appearance: none;
	width: 100%;
	min-height: 45px;
	border: 1px solid var(--wm-border) !important;
	border-radius: 12px !important;
	background: var(--wm-soft) !important;
	color: var(--wm-dark) !important;
	text-decoration: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 9px !important;
	padding: 10px 15px !important;
	font-size: 12px !important;
	line-height: 1.25 !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.wm-inline-button:hover {
	border-color: #78c797 !important;
	background: #effaf3 !important;
	color: var(--wm-dark) !important;
	transform: translateY(-1px);
}
.wm-inline-button:disabled { opacity: .6; cursor: wait; transform: none; }
.wm-inline-button.is-loading:after {
	content: "";
	width: 13px;
	height: 13px;
	border: 2px solid #7ea88b;
	border-top-color: transparent;
	border-radius: 50%;
	animation: wmSpin .7s linear infinite;
}
.wm-inline-icon {
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: var(--wm-accent);
	color: #12331f;
	display: grid;
	place-items: center;
	font-size: 10px;
	font-weight: 850;
	flex: 0 0 auto;
}
.wm-cart-button-wrap { clear: both; margin-top: 18px; }
.wm-order-button { max-width: 420px; }
.wm-product-button { margin-top: 14px; }

@keyframes wmSpin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
	.wm-hide-desktop { display: none !important; }
}

@media (max-width: 767px) {
	html.wm-widget-lock,
	html.wm-widget-lock body { overflow: hidden; }
	.wm-hide-mobile { display: none !important; }
	.wm-widget {
		bottom: max(14px, env(safe-area-inset-bottom));
		right: max(14px, env(safe-area-inset-right));
		left: auto;
	}
	.wm-position-left {
		left: max(14px, env(safe-area-inset-left));
		right: auto;
	}
	.wm-widget-bubble {
		min-width: 142px;
		min-height: 54px;
		border-radius: 16px;
		padding: 6px 12px 6px 6px;
	}
	.wm-widget-bubble-icon { width: 40px; height: 40px; }
	.wm-widget-panel {
		position: fixed;
		z-index: 2;
		left: 10px !important;
		right: 10px !important;
		bottom: max(10px, env(safe-area-inset-bottom));
		width: auto;
		border-radius: 24px;
		transform: translateY(105%);
		transform-origin: bottom center;
		max-height: min(560px, calc(100vh - 30px));
	}
	.wm-widget.is-open .wm-widget-panel { transform: none; }
	.wm-widget.is-open .wm-widget-bubble { opacity: 0; pointer-events: none; }
	.wm-widget-overlay {
		position: fixed;
		z-index: 1;
		display: block;
		inset: 0;
		background: rgba(8, 18, 12, .48);
		backdrop-filter: blur(2px);
		opacity: 0;
		visibility: hidden;
		transition: .18s;
	}
	.wm-widget.is-open .wm-widget-overlay { opacity: 1; visibility: visible; }
	.wm-widget-head { padding: 21px 20px; }
	.wm-widget-body { padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
	.wm-widget-body h2 { font-size: 19px !important; }
	.wm-widget-cta { min-height: 52px; }
	.wm-inline-button { min-height: 48px !important; font-size: 12px !important; }
}

@media (max-width: 380px) {
	.wm-widget-bubble { min-width: 54px; width: 54px; padding: 6px; }
	.wm-widget-bubble-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.wm-widget,
	.wm-widget-panel,
	.wm-widget-bubble,
	.wm-inline-button { transition: none !important; }
	.wm-inline-button.is-loading:after { animation-duration: 1.4s; }
}

/* Temas randevu modülü - mevcut görsel sistemi kullanır. */
.wm-appointment-form {
	--wm-accent: #25d366;
	--wm-dark: #173522;
	--wm-muted: #6b756f;
	--wm-border: #d9e2dc;
	--wm-soft: #f8fbf9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
	box-sizing: border-box;
	max-width: 680px;
	margin: 18px 0;
	padding: 20px;
	border: 1px solid var(--wm-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(20, 49, 31, .08);
}
.wm-appointment-form * { box-sizing: border-box; }
.wm-appointment-head strong,
.wm-appointment-head small { display: block; }
.wm-appointment-head strong { color: var(--wm-dark); font-size: 15px; line-height: 1.3; }
.wm-appointment-head small { color: var(--wm-muted); font-size: 11px; line-height: 1.5; margin-top: 4px; }
.wm-appointment-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin: 16px 0; }
.wm-appointment-grid label span { display: block; margin-bottom: 6px; color: var(--wm-dark); font-size: 10px; font-weight: 700; }
.wm-appointment-grid input,
.wm-appointment-grid select {
	width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--wm-border); border-radius: 10px;
	background: #fff; color: var(--wm-dark); font: inherit; font-size: 12px;
}
.wm-appointment-form .wm-inline-button { width: 100%; justify-content: center; margin: 0; }
@media (max-width: 767px) {
	.wm-appointment-form { padding: 16px; border-radius: 16px; }
	.wm-appointment-grid { grid-template-columns: 1fr; }
}
