/*
 * Mobile bottom bar (0.3.6), from the live store's WoodMart toolbar styling:
 * warm glass bar with rounded top corners, 10.5px labels and an orange
 * gradient count badge. Shown below 1024px only.
 */
body:not(#sps-x) .sps-bottom { display: none; }

@media (max-width: 1023.98px) {
    body.sps-has-bottom:not(#sps-x) {
        --sps-bottom-h: 64px;
        padding-bottom: calc(var(--sps-bottom-h) + env(safe-area-inset-bottom, 0px));
    }
    body.sps-has-bottom:not(#sps-x) .sps-bottom {
        position: fixed;
        z-index: 9995;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        height: calc(var(--sps-bottom-h) + env(safe-area-inset-bottom, 0px));
        padding: 0 4px env(safe-area-inset-bottom, 0px);
        border-top: 1px solid rgba(99, 32, 79, .08);
        border-radius: 18px 18px 0 0;
        background: rgba(255, 249, 245, .9);
        box-shadow: 0 -12px 32px -14px rgba(66, 21, 54, .35);
        -webkit-backdrop-filter: blur(16px) saturate(1.5);
        backdrop-filter: blur(16px) saturate(1.5);
    }
    body:not(#sps-x) .sps-bottom__item {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        margin: 0;
        padding: 0 2px;
        border: 0;
        border-radius: 0;
        background: none;
        color: #81777D;
        font: 600 10.5px/1.3 var(--sps-store-font);
        text-decoration: none;
        cursor: pointer;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
        transition: color .2s ease;
    }
    body:not(#sps-x) .sps-bottom__item:is(:hover, :focus-visible) { background: none; color: var(--sps-color-secondary); }
    body:not(#sps-x) .sps-bottom__item:focus-visible { outline: 2px solid var(--sps-color-accent); outline-offset: -3px; }
    body:not(#sps-x) .sps-bottom__item.is-current { color: var(--sps-color-secondary); font-weight: 800; }
    body:not(#sps-x) .sps-bottom__icon { position: relative; display: inline-flex; }
    body:not(#sps-x) .sps-bottom__icon .sps-icon { width: 24px; height: 24px; transition: transform .25s ease; }
    body:not(#sps-x) .sps-bottom__item:active .sps-icon { transform: scale(.88); }
    body:not(#sps-x) .sps-bottom__item.is-current .sps-icon { transform: translateY(-1px); }
    body:not(#sps-x) .sps-bottom__item--wishlist.is-current .sps-icon { fill: currentColor; }
    body:not(#sps-x) .sps-bottom__label { max-width: 100%; overflow: hidden; white-space: nowrap; }
    body:not(#sps-x) .sps-bottom--icons .sps-bottom__icon .sps-icon { width: 26px; height: 26px; }

    /* Count badges: orange gradient. */
    body:not(#sps-x) .sps-bottom :is(.sps-cart-count, .sps-bottom__count) {
        position: absolute;
        top: -7px;
        inset-inline-end: -10px;
        min-width: 18px;
        height: 18px;
        margin: 0;
        padding: 0 4px;
        border-radius: 9px;
        background: linear-gradient(135deg, #FF9457, var(--sps-color-accent));
        box-shadow: 0 0 0 2px #FFF9F5, 0 6px 12px -4px rgba(244, 119, 53, .8);
        color: #FFFFFF;
        font-size: 10px;
        font-weight: 800;
        line-height: 18px;
        text-align: center;
        box-sizing: border-box;
        transform: none;
    }
    body:not(#sps-x) .sps-bottom :is(.sps-cart-count:empty, .sps-bottom__count[hidden]) { display: none; }

    /* Other floating bars sit above this one. */
    body.sps-has-bottom:not(#sps-x) .sps-footer__top,
    body.sps-has-bottom:not(#sps-x) [data-sps-totop] { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    body:not(#sps-x) .sps-bottom__item, body:not(#sps-x) .sps-bottom__icon .sps-icon { transition: none; }
}
