
.smd-root {
    --smd-accent: #1b4357;
    --smd-ink: #22546d;
    --smd-muted: #a19376;
    position: fixed;
    z-index: 95;
    bottom: max(16px,env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 460px;
    direction: rtl;
    font-family: inherit;
    display: none;
    line-height: 1.5;
    color: var(--smd-ink)
}

    .smd-root * {
        box-sizing: border-box;
    }

.smd-item span {
    color: var(--st-bg-gray);
}

.smd-panel span {
    color: var(--st-bg-gray);
    overflow: hidden;
}

.smd-panel a > i {
    position: relative;
    top: -2px;
}

.smd-bar {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    padding: 7px 6px;
    background: rgba(255,255,255,.96);
    border: 1px solid #eeedf4;
    border-radius: 10px;
    box-shadow: 0 18px 48px #30245420,0 3px 12px #30245408;
    backdrop-filter: blur(18px)
}

.smd-item {
    position: relative;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 66px;
    color: var(--smd-muted);
    border: 0;
    background: none;
    text-decoration: none !important;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
    border-radius: 10px;
    padding: 10px 2px;
    white-space: nowrap;
    transition: color .18s,background .18s,transform .18s
}

    .smd-item i {
        font-size: 21px;
        line-height: 24px
    }

    .smd-item[aria-current=page], .smd-item[aria-expanded=true] {
        color: var(--smd-accent);
        background: rgb(249 198 194 / 35%);
    }

    .smd-item:hover {
        color: var(--smd-accent);
        background: rgb(249 198 194 / 35%);
    }

    .smd-item:focus-visible, .smd-panel a:focus-visible {
        outline: 2px solid var(--smd-accent);
        outline-offset: 2px
    }

.smd-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 22px);
    min-width: 17px;
    height: 17px;
    border: 2px solid white;
    border-radius: 10px;
    background: var(--smd-accent);
    color: #fff;
    font: 10px/13px sans-serif;
    text-align: center
}

.smd-panel {
    margin: 0 0 30px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eeedf4;
    border-radius: 10px;
    box-shadow: 0 12px 44px #30245422;
    max-height: calc(100dvh - 170px);
    overflow: auto;
    animation: smd-in .18s ease
}

    .smd-panel[hidden], .smd-badge[hidden] {
        display: none
    }

    .smd-panel header {
        padding: 0 6px 14px;
        margin-bottom: 5px;
        border-bottom: 1px solid #f0eff5;
        display: flex;
        align-items: center;
        gap: 12px
    }

.smd-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0edff;
    color: var(--smd-accent)
}

    /*.smd-avatar img {
        
    }*/

.smd-panel strong {
    display: block;
    font-size: 14px
}

.smd-panel small {
    font-size: 11px;
    color: var(--smd-muted)
}

.smd-panel a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 8px;
    min-height: 46px;
    color: var(--smd-ink);
    font-size: 13px;
    text-decoration: none;
    border-radius: 10px
}

    .smd-panel a:hover {
        background: rgb(249 198 194 / 35%);
        color: var(--smd-accent);
    }

    .smd-panel a > i:first-child {
        width: 22px;
        text-align: center;
        color: var(--smd-muted);
        font-size: 17px
    }

    .smd-panel a > i:last-child {
        margin-right: auto;
        font-size: 9px;
        color: #aaa6ba
    }

.smd-spacer {
    display: none
}

@keyframes smd-in {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(max-width:767px) {
    .smd-root {
        display: block
    }

    .smd-spacer {
        display: block;
        height: 125px;
        height: calc(125px + env(safe-area-inset-bottom))
    }
}

@media(prefers-reduced-motion:reduce) {
    .smd-panel {
        animation: none
    }

    .smd-item {
        transition: none
    }
}

/* Raised center action: third item in both RTL and LTR grids. */
.smd-item[data-smd-link="cart"] {
    color: var(--smd-accent);
    background: transparent;
    justify-content: flex-end;
    font-weight: 700;
    padding-bottom: 9px
}

    .smd-item[data-smd-link="cart"] > i {
        position: absolute;
        top: -27px;
        left: 50%;
        transform: translateX(-50%);
        width: 58px;
        height: 58px;
        display: grid;
        place-items: center;
        font-size: 23px;
        line-height: 1;
        color: #fff;
        background: linear-gradient(145deg,#a19376,var(--smd-accent));
        border: 5px solid #faf9ff;
        border-radius: 10px;
        box-shadow: 0 8px 18px #6355df38;
        transition: transform .18s,box-shadow .18s
    }

    .smd-item[data-smd-link="cart"]:hover > i {
        transform: translateX(-50%) translateY(-3px);
        box-shadow: 0 12px 22px #6355df45
    }

    .smd-item[data-smd-link="cart"][aria-current="page"] > i {
        background: var(--smd-accent);
        box-shadow: 0 0 0 3px #dcd5ff,0 8px 18px #6355df38
    }

    .smd-item[data-smd-link="cart"] .smd-badge {
        top: -28px;
        right: calc(50% - 31px);
        z-index: 1;
        min-width: 20px;
        height: 20px;
        border: 2px solid white;
        background: #292339;
        color: white;
        font-size: 10px;
        line-height: 16px
    }

.smd-item:not([data-smd-link="cart"])[aria-current="page"]:after, .smd-item[aria-expanded="true"]:after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--smd-accent);
    bottom: 4px
}

.smd-panel header {
    margin-top: 0;
    max-width: none
}

.smd-panel {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px)
}

@media(prefers-reduced-motion:reduce) {
    .smd-item[data-smd-link="cart"] > i {
        transition: none
    }
}
