.mobile-cart-float { display: none; }

@media (max-width: 760px) {
  .mobile-cart-float:not([hidden]) {
    --cart-ink: var(--shop-navy, #102e44);
    position: fixed;
    z-index: 12;
    right: calc(16px + env(safe-area-inset-right, 0px));
    /* Leave room for the editor control in the private shop preview. */
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cart-ink);
    color: #fffaf1;
    text-decoration: none;
    box-shadow: 0 3px 12px #142c372e;
  }
  .mobile-cart-float[data-tier="katze"]:not([hidden]) {
    --cart-ink: var(--shop-berry, #67374a);
  }
  .mobile-cart-float svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-cart-count {
    position: absolute;
    top: -2px;
    right: -3px;
    min-width: 20px;
    box-sizing: border-box;
    padding: 2px 4px;
    border-radius: 999px;
    color: var(--cart-ink);
    background: #fffaf1;
    box-shadow: inset 0 0 0 1px var(--cart-ink);
    font: 700 12px/16px Arial, sans-serif;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .mobile-cart-float:focus-visible {
    outline: 3px solid #fffaf1;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--cart-ink);
  }
  body:has(dialog[open], header button[aria-expanded="true"], #menu-confirmation:not([hidden])) .mobile-cart-float {
    display: none;
  }
}
