/* mk-audit1a-v1.css (20261120a) - MOJEKAFE CZ + SK, audit 20 Nov 2026, batch 1a. Targeted fixes only, no new look.
   Source of truth: ~/MOJEKAFE-AI/eshop-kod/moduly/opravy-audit/. Loaded from the header HTML code (one line).
   Rollback: remove the header line (the file can stay in the file manager). */

/* C09: the Heureka "Overeno zakazniky" side tab (inline z-index 2147483647) covered the left edge of the open
   desktop menu. The menu panel (.mk-deskpanel) has z-index 1300, so the tab goes just below it. The tab stays
   visible and clickable everywhere else. */
body > div[id^="hw-"],
#heurekaTableft {
  z-index: 1200 !important;
}

/* C08 (desktop): while the menu panel is open, the Smartsupp bubble and its greeting go below it as well
   (they covered the last menu items). Browsers without :has() keep today's behaviour. */
html:has(.mk-deskpanel.mk-on) #smartsupp-widget-container > div {
  z-index: 1200 !important;
}

/* C08 (mobile): mk-audit1a-v1.js adds this class to the chat bubble only while the bubble would lie over the
   product title, the quantity buttons / "add to cart" row or the cart quantity buttons. Elsewhere the bubble is
   untouched. */
#smartsupp-widget-container > div.mk-chat-away {
  opacity: 0 !important;
  pointer-events: none !important;
}
#smartsupp-widget-container > div {
  transition: opacity .15s linear;
}

/* C23: quantity buttons are 20 x 23 px on phones. Enlarge only the touch area (invisible), the look stays. */
@media (max-width: 767px) {
  .quantity .increase::after,
  .quantity .decrease::after {
    content: "";
    position: absolute;
    top: -11px;
    bottom: -11px;
    left: -11px;
    right: -11px;
  }
}
