/* WhatsApp chat popup (Oxblood). Desktop: floating button bottom-right above the side-cart bubble.
   Mobile with the bottom tab bar: the tab bar's WhatsApp tab opens the popup and the floating button hides. */
.afw { --afw-ox: #3D0C11; --afw-ox2: #2C080C; --afw-gold: #D9A93A; --afw-goldhi: #EBBA2F; --afw-cream: #FAF6F1; --afw-bd: #E5D6CB; --afw-tx: #2B1A18; --afw-mu: #6E5A55; --afw-wa: #25D366;
	position: fixed; z-index: 99990; bottom: calc(104px + env(safe-area-inset-bottom, 0px)); right: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; pointer-events: none; }
.afw--left { right: auto; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); align-items: flex-start; }
.afw > * { pointer-events: auto; }
.afw-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 56px; min-width: 56px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--afw-wa); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(10, 60, 30, .55); transition: transform .18s, box-shadow .18s, background .18s; }
.afw-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(10, 60, 30, .6); }
.afw-btn:focus-visible { outline: 3px solid var(--afw-goldhi); outline-offset: 3px; }
.afw-btn__x { display: none; }
.afw.is-open .afw-btn { background: var(--afw-ox); padding: 0; width: 56px; justify-content: center; }
.afw.is-open .afw-btn__wa, .afw.is-open .afw-btn__l { display: none; }
.afw.is-open .afw-btn__x { display: block; }
.afw-btn::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--afw-wa); opacity: 0; animation: afw-ping 2.6s ease-out 1.5s 3; }
.afw.is-open .afw-btn::before { display: none; }
@keyframes afw-ping { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.screen-reader-text.afw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.afw-pop { width: min(360px, calc(100vw - 32px)); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(28, 6, 9, .55), 0 0 0 1px rgba(61, 12, 17, .08); transform-origin: bottom right; animation: afw-in .22s cubic-bezier(.2, .8, .2, 1) both; }
.afw--left .afw-pop { transform-origin: bottom left; }
.afw-pop[hidden] { display: none; }
@keyframes afw-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.afw-head { display: flex; align-items: center; gap: 12px; padding: 16px; color: #fff; background: radial-gradient(70% 120% at 100% 0, rgba(217, 169, 58, .25), rgba(217, 169, 58, 0) 60%), linear-gradient(150deg, var(--afw-ox), var(--afw-ox2)); }
.afw-head > div { flex: 1; min-width: 0; }
.afw-head b { display: block; font-size: 16px; line-height: 1.2; }
.afw-head span { font-size: 12.5px; color: #CDA9A0; }
.afw-av { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--afw-gold); color: var(--afw-ox) !important; font-weight: 800; font-size: 15px; line-height: 1; }
.afw-av i { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--afw-wa); border: 2px solid var(--afw-ox); }
.afw-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; padding: 0; }
.afw-x:hover { border-color: var(--afw-gold); color: var(--afw-goldhi); }
.afw-body { padding: 16px; background: var(--afw-cream); }
.afw-msg { position: relative; margin: 0 0 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--afw-bd); border-radius: 4px 16px 16px 16px; font-size: 14px; line-height: 1.5; color: var(--afw-tx); }
.afw-topics { display: grid; gap: 8px; }
.afw-topics a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--afw-bd); border-radius: 12px; background: #fff; color: var(--afw-ox) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: border-color .15s, background .15s; }
.afw-topics a:hover { border-color: var(--afw-gold); background: #FFFBF1; }
.afw-topics a svg { color: var(--afw-gold); flex: none; }
.afw-form { display: flex; gap: 8px; padding: 12px 16px 6px; background: #fff; border-top: 1px solid var(--afw-bd); margin: 0; }
.afw-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px !important; border: 1px solid var(--afw-bd) !important; border-radius: 12px !important; background: var(--afw-cream) !important; font: inherit; font-size: 16px; color: var(--afw-tx); box-shadow: none !important; outline: 0; }
.afw-form input:focus { border-color: var(--afw-gold) !important; background: #fff !important; }
.afw-form button { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--afw-wa); color: #fff; cursor: pointer; padding: 0; }
.afw-form button:hover { background: #1EB857; }
.afw-foot { margin: 0; padding: 4px 16px 12px; background: #fff; font-size: 11.5px; color: var(--afw-mu); text-align: center; }
.afw-topics a:focus-visible, .afw-x:focus-visible, .afw-form button:focus-visible { outline: 2px solid var(--afw-ox); outline-offset: 2px; }

@media (max-width: 767px) {
	.afw { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
	.afw--left { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
	.afw-btn__l { display: none; }
	.afw-btn { width: 54px; height: 54px; min-width: 0; padding: 0; justify-content: center; }
	/* Tab bar present: its WhatsApp tab opens the popup, so hide the floating button. */
	body.afdh-has-tabbar .afw { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	body.afdh-has-tabbar .afw-btn { display: none; }
	.afw--hide-mobile .afw-btn { display: none; }
}
@media (max-width: 480px) {
	.afw, .afw--left { left: 12px; right: 12px; align-items: stretch; }
	.afw-btn { align-self: flex-end; }
	.afw-pop { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .afw-pop { animation: none; } .afw-btn::before { animation: none; } .afw-btn { transition: none; } }
@media print { .afw { display: none; } }

/* Mobile tab bar has its own Cart tab (opens the side cart), so hide the floating side-cart bubble that sat on top of it. */


/* ===== Floating stack (bottom-right): WhatsApp at the bottom, cart button lifted above it ===== */
.afw, .afw--left { right: 20px; left: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
body .xoo-wsc-basket { right: 20px !important; left: auto !important; bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; transition: opacity .2s, transform .2s; }
/* while the chat is open the cart button steps aside so the popup is clear */
html.afw-is-open .xoo-wsc-basket { opacity: 0; transform: translateY(8px); pointer-events: none; }
@media (max-width: 767px) {
	.afw, .afw--left { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
	body .xoo-wsc-basket { right: 16px !important; bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
	/* phones with the bottom tab bar: Cart and WhatsApp live in the tab bar */
	body.afdh-has-tabbar .xoo-wsc-basket { display: none !important; }
	body.afdh-has-tabbar .afw-btn { display: none; }
	body.afdh-has-tabbar .afw { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 768px) { body.afdh-has-tabbar .afw-btn { display: inline-flex; } }
