/*
 * Placeholder for the Parnidia chat bubble — ours, until the visitor clicks it.
 * Every value below was measured on the real widget (production, 2026-09-03) so the swap is
 * invisible: 52px circle in #e06132, 24px from the right and bottom edges, the hint 16px above
 * it with a small white close button. See parnidia-loader.js for why.
 *
 * Selectors carry the wrapper class on purpose: Woodmart styles every <button> through
 * `:is(.btn, .button, button, …)`, which ties a single class on specificity and wins by order.
 */
.mds-parnidia {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 499; /* Same as .parnidia-container in Parnidia's mdsterasos.css. */
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
	font-family: "DM Sans", Arial, sans-serif; /* The widget's font, served from this theme. */
}

.mds-parnidia .mds-parnidia-launcher {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mds-parnidia-primary, #e06132);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	box-shadow: 0 10px 25px rgb(0 0 0 / 15%);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.mds-parnidia .mds-parnidia-launcher:hover,
.mds-parnidia .mds-parnidia-launcher:focus-visible {
	background: var(--mds-parnidia-primary, #e06132);
	color: #fff;
	transform: scale(1.05);
}

.mds-parnidia .mds-parnidia-launcher:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.mds-parnidia .mds-parnidia-launcher svg {
	display: block;
	width: 30px;
	height: 30px;
}

.mds-parnidia.is-loading .mds-parnidia-launcher svg {
	animation: mds-parnidia-pulse 0.9s ease-in-out infinite;
}

.mds-parnidia .mds-parnidia-hint {
	position: relative;
	display: none;
	width: max-content;
	max-width: min(320px, calc(100vw - 80px));
	padding: 0.85rem 1.15rem;
	border-radius: 16px;
	background: var(--mds-parnidia-primary, #e06132);
	color: #fff;
	font-size: 1rem;
	line-height: 22px;
	box-shadow: 0 4px 20px rgb(0 0 0 / 15%);
	cursor: pointer;
}

.mds-parnidia .mds-parnidia-hint.is-visible {
	display: block;
}

.mds-parnidia .mds-parnidia-hint:hover {
	box-shadow: 0 6px 24px rgb(0 0 0 / 22%);
}

.mds-parnidia .mds-parnidia-hint-close {
	position: absolute;
	top: -8px;
	right: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #6b7280;
	line-height: 1;
	box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
	cursor: pointer;
}

.mds-parnidia .mds-parnidia-hint-close:hover {
	background: #fff;
	color: #374151;
}

.mds-parnidia .mds-parnidia-hint-close svg {
	display: block;
	width: 14px;
	height: 14px;
}

@keyframes mds-parnidia-pulse {
	50% {
		opacity: 0.35;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mds-parnidia .mds-parnidia-launcher {
		transition: none;
	}

	.mds-parnidia.is-loading .mds-parnidia-launcher svg {
		animation: none;
	}
}
