/* Maginet WhatsApp – front end */
.mgwa-sr {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
	overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.mgwa-hidden-other { display: none !important; }
.mgwa-num { white-space: nowrap; unicode-bidi: isolate; }

/* ---------- Buttons (product / cart / order / shortcode) ---------- */
.mgwa-product, .mgwa-cart, .mgwa-order { margin: 1em 0; clear: both; }
.mgwa-cart { margin: .75em 0 0; }
a.mgwa-btn, a.mgwa-btn:visited {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	box-sizing: border-box; min-height: 48px; max-width: 100%;
	padding: .6em 1.2em; border: 2px solid transparent; border-radius: 6px;
	background: var(--mgwa-c, #0A7C59); color: #fff !important;
	font: inherit; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none !important;
	white-space: normal; overflow-wrap: anywhere; cursor: pointer;
}
a.mgwa-btn:hover { filter: brightness(1.1); color: #fff !important; }
a.mgwa-btn:focus { outline: none; }
a.mgwa-btn:focus-visible { outline: 3px solid #111 !important; outline-offset: 2px !important; box-shadow: 0 0 0 5px #fff !important; }
a.mgwa-btn .mgwa-ico { flex: 0 0 auto; width: 1.4em; height: 1.4em; }
.mgwa-cart a.mgwa-btn, .mgwa-btn-cart { width: 100%; }
a.mgwa-btn.mgwa-btn-link {
	background: none; color: var(--mgwa-c, #0A7C59) !important; padding: 0; min-height: 24px; border: 0;
	text-decoration: underline !important; font-weight: inherit;
}
a.mgwa-btn.mgwa-btn-link:hover { filter: none; color: var(--mgwa-c, #0A7C59) !important; }

/* ---------- Unified box (replaces old snippets in content) ---------- */
.mgwa-box {
	margin: 1.25em 0; padding: 1em 1.1em; clear: both;
	border: 1px solid #c9dcd3; border-inline-start: 4px solid var(--mgwa-c, #0A7C59); border-radius: 8px;
	background: #f4f9f6; color: #1d2327;
}
.mgwa-box p { margin: 0; }
.mgwa-box .mgwa-box-text { margin-bottom: .7em; font-weight: 600; }
.mgwa-box .mgwa-box-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1em; }
.mgwa-box .mgwa-box-call { white-space: nowrap; }
.mgwa-box .mgwa-box-call a { color: #1d2327; font-weight: 700; text-decoration: underline; }
.mgwa-box .mgwa-box-call a:focus-visible { outline: 3px solid #111; outline-offset: 2px; }

/* ---------- Floating button ---------- */
#mgwa-root {
	position: fixed; z-index: 2147482990;
	bottom: calc(var(--mgwa-y, 20px) + var(--mgwa-avoid, 0px) + env(safe-area-inset-bottom, 0px));
	display: flex; flex-direction: column; align-items: flex-end;
	font-family: inherit; font-size: 16px; line-height: 1.4;
	direction: ltr; /* layout only: keeps flex-end = physical right */
	pointer-events: none;
}
#mgwa-root.side-right { right: var(--mgwa-x, 20px); }
#mgwa-root.side-left { left: var(--mgwa-x, 20px); align-items: flex-start; }
#mgwa-root * { box-sizing: border-box; }

#mgwa-root .mgwa-fab {
	pointer-events: auto;
	display: flex; align-items: center; justify-content: center;
	width: 3.5em; height: 3.5em; min-width: 48px; min-height: 48px; margin: 0; padding: 0;
	border: 2px solid #fff; border-radius: 50%;
	background: var(--mgwa-c, #0A7C59); color: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
	cursor: pointer; text-decoration: none; font: inherit;
	-webkit-appearance: none; appearance: none;
}
#mgwa-root.size-large .mgwa-fab { width: 4em; height: 4em; }
#mgwa-root .mgwa-fab:hover { filter: brightness(1.1); }
#mgwa-root .mgwa-fab:focus { outline: none; }
#mgwa-root .mgwa-fab:focus-visible { outline: 3px solid #111; outline-offset: 3px; box-shadow: 0 0 0 7px #fff, 0 3px 10px rgba(0, 0, 0, .35); }
#mgwa-root .mgwa-ico-fab { width: 62%; height: 62%; display: block; }

/* ---------- Menu ---------- */
#mgwa-root .mgwa-menu {
	pointer-events: auto; direction: rtl; text-align: right;
	width: 330px; max-width: calc(100vw - 2 * var(--mgwa-x, 20px));
	margin: 0 0 12px; padding: 0 0 .5em;
	overflow-y: auto; overscroll-behavior: contain;
	background: #fff; color: #1d2327;
	border: 1px solid #c3c4c7; border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}
#mgwa-root .mgwa-menu[hidden] { display: none !important; }
#mgwa-root .mgwa-head {
	display: flex; align-items: center; justify-content: space-between; gap: .5em;
	padding: .7em 1em .7em .5em; background: var(--mgwa-c, #0A7C59); color: #fff; border-radius: 11px 11px 0 0;
}
#mgwa-root .mgwa-title { margin: 0; font-size: 1.05em; font-weight: 700; color: #fff; }
#mgwa-root .mgwa-close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: #fff; cursor: pointer; font: inherit;
}
#mgwa-root .mgwa-close:hover { background: rgba(255, 255, 255, .18); }
#mgwa-root .mgwa-close:focus { outline: none; }
#mgwa-root .mgwa-close:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
#mgwa-root .mgwa-note { margin: .75em 1em .25em; font-size: .9em; color: #3c434a; }
#mgwa-root .mgwa-list { list-style: none; margin: .25em 0 0; padding: 0; }
#mgwa-root .mgwa-list li { margin: 0; padding: 0; list-style: none; }
#mgwa-root .mgwa-list li::before, #mgwa-root .mgwa-list li::marker { content: none; }
#mgwa-root a.mgwa-item, #mgwa-root a.mgwa-item:visited {
	display: flex; align-items: center; gap: .65em;
	min-height: 48px; padding: .55em 1em; margin: 0;
	color: #1d2327; text-decoration: none; font-weight: 500;
	border-top: 1px solid #f0f0f1;
}
#mgwa-root a.mgwa-item:hover { background: #f0f6f3; color: #1d2327; }
#mgwa-root a.mgwa-item:focus { outline: none; }
#mgwa-root a.mgwa-item:focus-visible { outline: 3px solid #111; outline-offset: -3px; background: #f0f6f3; }
#mgwa-root a.mgwa-item .mgwa-ico { flex: 0 0 auto; width: 1.4em; height: 1.4em; color: var(--mgwa-c, #0A7C59); }
#mgwa-root a.mgwa-call { font-weight: 600; }
#mgwa-root bdi { unicode-bidi: isolate; }

@media (max-width: 400px) {
	#mgwa-root { font-size: 15px; }
	#mgwa-root .mgwa-menu { width: calc(100vw - 2 * var(--mgwa-x, 20px)); }
}
@media (prefers-reduced-motion: no-preference) {
	#mgwa-root .mgwa-fab { transition: filter .15s ease; }
}
@media (forced-colors: active) {
	#mgwa-root .mgwa-fab, a.mgwa-btn { border: 2px solid ButtonText; forced-color-adjust: auto; }
	#mgwa-root .mgwa-menu { border: 2px solid CanvasText; }
}
@media print {
	#mgwa-root { display: none !important; }
}
