/* ANVIDA 2026-11-06: contain the purchase outline and keep the mobile cart usable.
   Rollback: remove only the link to this file from the Shoptet HEAD field. */
html.av-shop-v1 body #content #product-detail-form button.add-to-cart-button[data-av-purchase-trace],
html.av-shop-v1 body #cart-widget#cart-widget #continue-order-button {
  position: relative !important;
  isolation: isolate;
}
html.av-shop-v1 body #content #product-detail-form button.add-to-cart-button > svg.av-action-trace rect {
  vector-effect: non-scaling-stroke;
}
/* Hide floating controls only while a cart or add-to-cart dialog is open. */
html.av-shop-v1 body:is(.cart-window-visible,:has(#cart-widget[aria-hidden="false"]),:has(#miniAtc[style*="display: flex"])) :is(
  #av-sound-toggle,anvida-chat-widget,#av-blog-popup-trigger,
  [id^="se-webform-slideup-trigger"],[id^="se-webform-slideup-"]) {
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (max-width:767px) {
  html.av-shop-v1 body #cart-widget#cart-widget {
    box-sizing: border-box !important;
    position: fixed !important;
    top: calc(64px + env(safe-area-inset-top)) !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    width: calc(100vw - 24px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 88px) !important;
    max-height: calc(100dvh - 88px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 11000 !important;
  }
  html.av-shop-v1 body #cart-widget#cart-widget .cart-widget-inner {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 180px) !important;
    max-height: calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  html.av-shop-v1 body #cart-widget#cart-widget .cart-widget-button {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 7;
    margin: 0 !important;
    padding: 12px !important;
    background: var(--avs-panel,#102541) !important;
  }
  html.av-shop-v1 body #cart-widget#cart-widget #continue-order-button {
    min-height: 48px !important;
    margin: 0 !important;
    white-space: normal !important;
    text-align: center;
  }
}
