/* Mintdrops Minty - launcher + panel, and the two floats it replaces (2026-11-10, v1.1.0) */

/* 1. the side-cart bubble (Xoo) - desktop only, phones already hide it via WPCode 17308.
      The !important chain beats the theme rule that wins on the homepage. */
.xoo-wsc-basket,
.xoo-wsc-basket-bubble,
.xoo-wsc-basket.xoo-wsc-basket-bubble,
.ht-ctc,
.ht-ctc-chat,
.ht-ctc-chat-button,
#ht-ctc-chat {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* 2. Minty's launcher, in the bubble's own slot: right 1px / bottom 12px, 64px circle */
#mdmty-btn {
	position: fixed;
	right: 1px;
	bottom: 12px;
	z-index: 2147483000;
	width: 64px;
	height: 64px;
	border: 0;
	border-radius: 999px;
	background: #04a971;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(4, 169, 113, 0.35);
	padding: 0;
}
#mdmty-btn:hover {
	background: #049a68;
}
#mdmty-btn svg {
	width: 26px;
	height: 26px;
	display: block;
}

/* 3. the chat panel: same slot, sized like the demo's own window */
#mdmty-wrap {
	position: fixed;
	right: 1px;
	bottom: 12px;
	z-index: 2147483001;
	width: 380px;
	height: min(560px, calc(100vh - 40px));
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	display: none;
}
#mdmty-wrap.open {
	display: block;
}
#mdmty-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* 4. our own close button: the embedded chat runs in widget mode and carries none,
      so the panel must always offer a way out (phones cover the whole screen). */
#mdmty-close {
	position: absolute;
	top: calc(8px + env(safe-area-inset-top));
	right: calc(8px + env(safe-area-inset-right));
	z-index: 3;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.32);
	color: #ffffff;
	font: 600 22px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
#mdmty-close:hover {
	background: rgba(0, 0, 0, 0.5);
}

/* 5. a real loading state - never a white screen while the assistant arrives */
#mdmty-load {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 28px;
	text-align: center;
	background: #ffffff;
	color: #16211c;
	font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#mdmty-wrap.ready #mdmty-load {
	display: none;
}
#mdmty-spin {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	border: 3px solid rgba(4, 169, 113, 0.22);
	border-top-color: #04a971;
	animation: mdmty-spin 0.9s linear infinite;
}
@keyframes mdmty-spin {
	to {
		transform: rotate(360deg);
	}
}
#mdmty-loadtxt {
	font-weight: 600;
}
#mdmty-alt {
	display: none;
	color: #04a971;
	font-weight: 600;
	text-decoration: underline;
}
#mdmty-wrap.slow #mdmty-alt {
	display: inline-block;
}
#mdmty-wrap.slow #mdmty-spin {
	display: none;
}

/* 6. phones: the header already carries the cart icon, so keep the launcher clear of
      the bottom edge and let the panel take the whole screen. */
@media (max-width: 768px) {
	#mdmty-btn {
		right: 14px;
		bottom: 20px;
		width: 58px;
		height: 58px;
	}
	#mdmty-wrap {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
	#mdmty-close {
		background: rgba(0, 0, 0, 0.4);
	}
}
/* the dynamic viewport keeps the panel exactly one screen tall on phones, so no
   blank band appears when the browser's address bar moves */
@supports (height: 100dvh) {
	@media (max-width: 768px) {
		#mdmty-wrap {
			height: 100dvh;
		}
	}
}
