/* iPhone blank product page fix (2026-12-03): the theme critical CSS hid everything below the price box
   (visibility hidden + clip-path) until JS added .am-ready, which can take seconds on iPhone. Always show it. */
html body.single-product .am-pdp__summary .am-pdp2__pricebox ~ *:not(#zq1):not(#zq2):not(#zq3):not(#zq4):not(#zq5):not(#zq6):not(#zq7):not(#zq8):not(#zq9):not(#zq10):not(#zq11):not(#zq12) {
  visibility: visible !important;
  animation: none !important;
  content-visibility: visible !important;
  clip-path: none !important;
}
html body.single-product .am-pdp2:not(#zq1):not(#zq2):not(#zq3):not(#zq4):not(#zq5):not(#zq6):not(#zq7):not(#zq8):not(#zq9):not(#zq10):not(#zq11):not(#zq12),
html body.single-product .am-pdp2__gallery:not(#zq1):not(#zq2):not(#zq3):not(#zq4):not(#zq5):not(#zq6):not(#zq7):not(#zq8):not(#zq9):not(#zq10):not(#zq11):not(#zq12),
html body.single-product .am-pdp2__main:not(#zq1):not(#zq2):not(#zq3):not(#zq4):not(#zq5):not(#zq6):not(#zq7):not(#zq8):not(#zq9):not(#zq10):not(#zq11):not(#zq12),
html body.single-product .am-pdp2__side:not(#zq1):not(#zq2):not(#zq3):not(#zq4):not(#zq5):not(#zq6):not(#zq7):not(#zq8):not(#zq9):not(#zq10):not(#zq11):not(#zq12) {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  content-visibility: visible !important;
  clip-path: none !important;
}
@media (max-width: 767px) {
  /* overflow:clip + rounded card can leave unpainted areas in iOS Safari */
  html body.single-product .am-pdp__summary:not(#zq1):not(#zq2):not(#zq3):not(#zq4):not(#zq5):not(#zq6):not(#zq7):not(#zq8):not(#zq9):not(#zq10):not(#zq11):not(#zq12) { overflow: hidden !important; }
}

/* Buy bar sat on top of the bottom menu with a white strip under it.
   Now it sits just above the bottom menu (Home / Categories / Cart ...). */
@media (max-width: 1023px) {
  html body .am-pdp2__mbar:not(#zq1):not(#zq2):not(#zq3):not(#zq4) {
    bottom: var(--am-bn-h, 0px) !important;
    margin-bottom: 0 !important;
    padding-bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) - var(--am-bn-h, 0px))) !important;
  }
}

/* ===== 2026-12-05 Artomall floating buttons — loaded in <head> so there is no jump on first paint ===== */
html body a[aria-label="Chat on WhatsApp"][href*="wa.me"]:not(#amf1):not(#amf2){position:fixed!important;right:auto!important;left:24px!important;bottom:24px!important;width:46px!important;height:46px!important;z-index:8900!important;display:flex!important;align-items:center;justify-content:center;border-radius:50%!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M16.04 4C9.4 4 4 9.38 4 16c0 2.12.56 4.18 1.62 6L4 28l6.18-1.6A12 12 0 0 0 16.04 28C22.66 28 28 22.62 28 16S22.66 4 16.04 4Zm0 21.8c-1.8 0-3.56-.48-5.1-1.4l-.36-.22-3.66.96.98-3.56-.24-.38A9.76 9.76 0 0 1 6.2 16c0-5.42 4.42-9.82 9.84-9.82 5.42 0 9.8 4.4 9.8 9.82 0 5.42-4.38 9.8-9.8 9.8Zm5.38-7.34c-.3-.14-1.74-.86-2-.96-.28-.1-.48-.14-.68.14-.2.3-.78.96-.96 1.16-.18.2-.36.22-.66.08-.3-.16-1.24-.46-2.38-1.46-.88-.78-1.46-1.76-1.64-2.06-.16-.3-.02-.46.14-.6.12-.14.3-.36.44-.54.14-.18.2-.3.3-.5.1-.2.04-.38-.02-.52-.08-.14-.68-1.62-.92-2.22-.24-.58-.5-.5-.68-.5h-.58c-.2 0-.52.08-.8.38-.26.3-1.04 1.02-1.04 2.48s1.06 2.88 1.22 3.08c.14.2 2.08 3.18 5.04 4.46.7.3 1.26.48 1.68.62.7.22 1.34.2 1.86.12.56-.08 1.74-.72 1.98-1.4.24-.7.24-1.28.18-1.4-.08-.14-.28-.2-.58-.36Z'/%3E%3C/svg%3E") center/21px 21px no-repeat,linear-gradient(145deg,#2fe377 0%,#25D366 45%,#128C7E 100%)!important;box-shadow:0 10px 24px -6px rgba(18,140,126,.55),0 0 0 3px rgba(255,255,255,.9)!important}
html body a[aria-label="Chat on WhatsApp"][href*="wa.me"] img{display:none!important}
html body #aa-launcher:not(#amf1):not(#amf2){display:flex!important;left:auto!important;right:24px!important;bottom:24px!important;width:48px!important;height:48px!important;background:linear-gradient(145deg,#18a3a8 0%,#0E7C86 50%,#0b5f66 100%)!important;box-shadow:0 10px 24px -6px rgba(11,95,102,.55),0 0 0 3px rgba(255,255,255,.9)!important}
html body #aa-launcher:not(#amf1) svg{width:22px!important;height:22px!important}
html body #aa-launcher:not(#amf1) #aa-badge{transform:scale(.8);transform-origin:top right}
html body button.am-topbtn:not(#amf1):not(#amf2):not(#amf3):not(#amf4){width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;border-radius:50%!important;background:rgba(255,255,255,.82)!important;-webkit-backdrop-filter:blur(10px) saturate(1.4);backdrop-filter:blur(10px) saturate(1.4);border:1px solid rgba(15,23,42,.10)!important;color:#0b3b40!important;font-size:15px!important;font-weight:700!important;line-height:1!important;box-shadow:0 8px 22px -8px rgba(15,23,42,.35)!important;left:auto!important;right:31px!important;bottom:84px!important;z-index:8900!important}
.amp-box,.amp-earn,.amp-cart{display:none!important}
@media (min-width:901px){html body .amfx-cbar:not(#amf1):not(#amf2){left:86px!important}html body #am-rb:not(#amf1){bottom:84px!important}}
@media (max-width:900px){
html body a[aria-label="Chat on WhatsApp"][href*="wa.me"]:not(#amf1):not(#amf2){left:14px!important;bottom:calc(var(--am-bn-h,59px) + 14px + env(safe-area-inset-bottom,0px))!important;width:44px!important;height:44px!important}
html body #aa-launcher:not(#amf1):not(#amf2){right:14px!important;bottom:calc(var(--am-bn-h,59px) + 14px + env(safe-area-inset-bottom,0px))!important;width:44px!important;height:44px!important}
html body button.am-topbtn:not(#amf1):not(#amf2):not(#amf3):not(#amf4){width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;right:20px!important;bottom:calc(var(--am-bn-h,59px) + 68px + env(safe-area-inset-bottom,0px))!important}
html body.single-product a[aria-label="Chat on WhatsApp"][href*="wa.me"]:not(#amf1):not(#amf2),html body.single-product #aa-launcher:not(#amf1):not(#amf2){bottom:calc(var(--am-bn-h,59px) + var(--am-mb-h,64px) + 12px + env(safe-area-inset-bottom,0px))!important}
html body.single-product button.am-topbtn:not(#amf1):not(#amf2):not(#amf3):not(#amf4){bottom:calc(var(--am-bn-h,59px) + var(--am-mb-h,64px) + 66px + env(safe-area-inset-bottom,0px))!important}
html body .amfx-cbar:not(#amf1):not(#amf2){left:10px!important;bottom:calc(var(--am-bn-h,59px) + 68px + env(safe-area-inset-bottom,0px))!important}
html body #am-rb:not(#amf1){bottom:calc(var(--am-bn-h,59px) + 112px + env(safe-area-inset-bottom,0px))!important}
html body.single-product #am-rb:not(#amf1){bottom:calc(var(--am-bn-h,59px) + var(--am-mb-h,64px) + 108px + env(safe-area-inset-bottom,0px))!important}
body.woocommerce-checkout a[aria-label="Chat on WhatsApp"],body.woocommerce-checkout #aa-launcher,body:has(.am-dash__side) a[aria-label="Chat on WhatsApp"],body:has(.am-mobilemenu.is-open) a[aria-label="Chat on WhatsApp"],html body:has(:is(input,textarea,select):focus:not(#aa-input)) a[aria-label="Chat on WhatsApp"]{display:none!important}
}
html body:has(#aa-panel.open) a[aria-label="Chat on WhatsApp"],html body:has(#aa-panel.open) button.am-topbtn{opacity:0!important;pointer-events:none!important}

/* 2026-12-05: on product pages (phone) the buy bar already has a chat button, so no WhatsApp bubble or "someone bought" popup over the product. */
@media (max-width:900px){html body.single-product a[aria-label="Chat on WhatsApp"][href*="wa.me"]:not(#amf1):not(#amf2):not(#amf3),html body.single-product #am-rb:not(#amf1):not(#amf2):not(#amf3){display:none!important}}
