/* Bionic Commerce — cart icon (floating button, menu item, shortcode and block). Loaded on every page when the cart icon is on. */
.bn-cart-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; color: inherit; text-decoration: none !important; line-height: 1; padding: .3rem; box-shadow: none !important; cursor: pointer; }
.bn-cart-icon svg { width: var(--bn-icon-size, 22px); height: var(--bn-icon-size, 22px); display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bn-cart-badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; display: grid; place-items: center;
    background: var(--bn-t-accent, var(--bn-accent, #b08d57)); color: #fff; font: 700 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; }
.bn-cart-badge[data-zero] { display: none; }
/* In a menu the icon follows the menu's own colour and spacing. */
li.bionic-cart-menu-item { display: flex; align-items: center; list-style: none; }
li.bionic-cart-menu-item .bn-cart-icon { padding: .3rem .5rem; }
.bn-icon-block { display: inline-block; }
/* Floating button. Colours: Ivory = black, Noir = ivory, Match my theme = the theme's own button colours. */
.bn-fab { position: fixed; z-index: 99990; width: calc(var(--bn-icon-size, 22px) + 34px); height: calc(var(--bn-icon-size, 22px) + 34px); border-radius: 50%; padding: 0;
    background: #141414; color: #fff; box-shadow: 0 10px 28px -10px rgba(0,0,0,.55); transition: transform .2s; }
.bn-fab:hover { transform: translateY(-2px); }
.bn-fab[hidden] { display: none; }
.bn-fab .bn-cart-badge { top: 2px; right: 0; }
.bn-fab-pos-bottom-right { right: 20px; bottom: 20px; } .bn-fab-pos-bottom-left { left: 20px; bottom: 20px; }
.bn-fab-pos-top-right { right: 20px; top: 20px; } .bn-fab-pos-top-left { left: 20px; top: 20px; }
body.admin-bar .bn-fab-pos-top-right, body.admin-bar .bn-fab-pos-top-left { top: 52px; }
body.bionic-style-noir .bn-fab { background: #f2efe9; color: #0e0e0e; }
body.bionic-style-theme .bn-fab { background: var(--bn-t-btn-bg, var(--wp--preset--color--contrast, #1d1d1d)); color: var(--bn-t-btn-fg, var(--wp--preset--color--base, #fff)); }
@media print { .bn-fab { display: none !important; } }
