/* Independent dock styles avoid the legacy bottom-navigation !important rules. */
.mg-mobile-dock{display:none}
@media(max-width:1279px){
    body.mg-has-mobile-dock{--mg-mobile-dock-reserved-space:100px;--mg-mobile-dock-space:var(--mg-dock-measured-space,var(--mg-mobile-dock-reserved-space));padding-bottom:calc(var(--mg-mobile-dock-reserved-space) + env(safe-area-inset-bottom,0px))}
    body.mg-has-mobile-dock.mg-has-tier,body.mg-has-mobile-dock.mg-birthday{--mg-mobile-dock-reserved-space:140px}
    .mg-mobile-dock{--mg-dock-accent:var(--mg-tier-ink,#755b2d);--mg-dock-rgb:var(--mg-tier-rgb,181,145,77);position:fixed;inset-inline:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:990;display:block;width:auto;max-width:600px;margin-inline:auto;padding:6px;border:1px solid rgba(var(--mg-dock-rgb),.32);border-radius:24px;background:rgba(255,253,248,.98);box-shadow:0 10px 36px #201b1921,0 2px 8px #201b190a;direction:rtl;isolation:isolate}
    .mg-mobile-dock::before{content:"";position:absolute;top:0;inset-inline:32%;height:2px;border-radius:0 0 3px 3px;background:rgba(var(--mg-dock-rgb),.55)}
    .mg-mobile-dock .mg-dock-context{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:31px;margin:0 9px 3px;padding-bottom:4px;border-bottom:1px solid rgba(var(--mg-dock-rgb),.12)}
    .mg-mobile-dock .mg-dock-membership{display:inline-flex;align-items:center;gap:5px;min-height:26px;color:var(--mg-dock-accent);font-size:10px;line-height:1.6;text-decoration:none;white-space:nowrap}
    .mg-dock-membership strong{font-weight:800}
    .mg-mobile-dock .mg-dock-membership svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}
    .mg-mobile-dock .mg-dock-birthday{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;width:auto;padding:2px 9px;border:1px solid #e8c5b8;border-radius:20px;background:#fff0e8;color:#824d43;font:inherit;font-size:10px;font-weight:700;line-height:1.5;white-space:nowrap;cursor:pointer}
    .mg-mobile-dock .mg-dock-birthday svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
    .mg-mobile-dock .mg-dock-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:4px;list-style:none;padding:0;margin:0}
    .mg-mobile-dock .mg-dock-links>li{min-width:0;margin:0;padding:0}
    .mg-mobile-dock .mg-dock-link{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:64px;padding:7px 3px 10px;border-radius:18px;color:#77756e;text-decoration:none;-webkit-tap-highlight-color:transparent}
    .mg-mobile-dock .mg-dock-icon{position:relative;display:grid;place-items:center;width:28px;height:26px;flex-shrink:0}
    .mg-mobile-dock .mg-dock-icon>svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
    .mg-mobile-dock .mg-dock-label{font-size:10px;line-height:1.6;font-weight:600;white-space:nowrap}
    .mg-mobile-dock .mg-dock-link[aria-current="page"]{background:rgba(var(--mg-dock-rgb),.12);color:var(--mg-dock-accent)}
    .mg-mobile-dock .mg-dock-link[aria-current="page"] .mg-dock-label{font-weight:800}
    .mg-mobile-dock .mg-dock-link[aria-current="page"]::after{content:"";position:absolute;bottom:4px;width:4px;height:4px;border-radius:50%;background:currentColor}
    .mg-mobile-dock .mg-dock-link:focus-visible,.mg-mobile-dock .mg-dock-membership:focus-visible,.mg-mobile-dock .mg-dock-birthday:focus-visible{outline:2px solid var(--mg-dock-accent);outline-offset:2px}
    .mg-mobile-dock .mg-dock-count{position:absolute;top:-5px;inset-inline-end:-8px;display:grid;place-items:center;min-width:18px;height:18px;padding-inline:3px;border:2px solid #fffdf8;border-radius:10px;background:var(--mg-dock-accent);color:#fff;font-size:9px;font-weight:700;line-height:1}
    .mg-mobile-dock .mg-dock-count[hidden],.mg-mobile-dock .mg-dock-count:empty{display:none}
    body.mg-birthday .mg-mobile-dock{background:linear-gradient(112deg,#fffaf0,#fff3ee 60%,#fbf3f6);border-color:#dfc5ad;box-shadow:0 10px 36px #8c645324,0 2px 8px #5039270d}
    body.mg-birthday .mg-mobile-dock::before{inset-inline:28%;background:linear-gradient(90deg,#c29a5b,#ca9d95,#be9dc7)}
    body:not(.mg-birthday) .mg-mobile-dock .mg-dock-birthday,body:not(.mg-birthday) .mg-dock-context--birthday-only{display:none}
    .mg-mobile-dock .mg-dock-context--birthday-only{justify-content:center}
    body.mg-has-mobile-dock .mg-news-notice{bottom:calc(var(--mg-mobile-dock-space) + env(safe-area-inset-bottom,0px));left:14px}
    @media(hover:hover){.mg-mobile-dock .mg-dock-link:hover{background:rgba(var(--mg-dock-rgb),.08);color:var(--mg-dock-accent)}}
}
@media(max-width:359px){.mg-mobile-dock{inset-inline:8px;padding:5px;border-radius:21px}.mg-mobile-dock .mg-dock-context{margin-inline:6px}.mg-mobile-dock .mg-dock-membership{font-size:9px}.mg-mobile-dock .mg-dock-birthday{font-size:9px;padding-inline:7px}}

.mg-mobile-dock { --mg-dock-scroll-enabled: 1; }

@media (max-width: 1279px) {
    .mg-dock-scroll-ready .mg-mobile-dock {
        --mg-dock-duration: .28s;
        min-height: 46px;
        transition: padding-block var(--mg-dock-duration) ease-in-out;
    }

    .mg-dock-scroll-ready .mg-dock-full {
        display: grid;
        grid-template-rows: 1fr;
        transition: grid-template-rows var(--mg-dock-duration) ease-in-out, opacity .18s ease;
    }

    .mg-dock-scroll-ready .mg-dock-full-content {
        min-height: 0;
        overflow: hidden;
    }

    .mg-dock-scroll-ready .mg-dock-link:focus-visible {
        outline-offset: -3px;
    }

    .mg-dock-scroll-ready .mg-mobile-dock.mg-dock-is-collapsed {
        padding-block: 0;
        border-color: rgba(var(--mg-dock-rgb), .43);
        background: linear-gradient(105deg, #fffdfa, #fbf4e8);
        box-shadow: 0 8px 26px #221b1829, inset 0 1px #fff;
    }

    .mg-dock-is-collapsed .mg-dock-full {
        grid-template-rows: 0fr;
        opacity: 0;
    }

    .mg-mobile-dock .mg-dock-compact {
        position: absolute;
        inset: auto 6px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(5px);
        transition: opacity .18s ease, transform var(--mg-dock-duration) ease, visibility 0s .18s;
    }

    .mg-dock-is-collapsed .mg-dock-compact {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition-delay: .07s, 0s, 0s;
    }

    .mg-mobile-dock .mg-dock-expand {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 30px;
        align-items: center;
        gap: 9px;
        width: 100%;
        min-height: 44px;
        padding: 0 5px;
        border: 0;
        border-radius: 18px;
        background: transparent;
        color: var(--mg-dock-accent);
        text-align: start;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
    }

    .mg-mobile-dock .mg-dock-expand--section {
        grid-template-columns: 32px minmax(0, 1fr) 30px;
    }

    .mg-dock-section-icon {
        display: grid;
        place-items: center;
        height: 32px;
        border: 1px solid rgba(var(--mg-dock-rgb), .24);
        border-radius: 11px;
        background: rgba(var(--mg-dock-rgb), .14);
    }

    .mg-dock-page-title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mg-dock-expand svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mg-dock-expand > svg {
        box-sizing: border-box;
        width: 30px;
        height: 30px;
        padding: 6px;
        border: 1px solid rgba(var(--mg-dock-rgb), .27);
        border-radius: 50%;
        background: #fff9ef;
    }

    .mg-mobile-dock .mg-dock-expand:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: -3px;
    }

    @media (prefers-reduced-motion: reduce) {
        .mg-dock-scroll-ready .mg-mobile-dock,
        .mg-dock-scroll-ready .mg-dock-full,
        .mg-mobile-dock .mg-dock-compact {
            transition: none;
        }
    }
}

@media (max-width: 991px) {
    /* Use the dock's current height during its transition and keep the page's
       scroll range stable even when the customer is at the end of a product. */
    body.mg-dock-scroll-ready #product-action-sticky .mg-buy-row {
        bottom: calc(var(--mg-mobile-dock-space) + env(safe-area-inset-bottom, 0px) + 2px);
    }

    body.mg-dock-scroll-ready.mg-has-purchase-bar {
        padding-bottom: max(var(--mg-purchase-reserved), calc(
            var(--mg-purchase-reserved) - var(--mg-purchase-bottom) +
            var(--mg-mobile-dock-reserved-space) + env(safe-area-inset-bottom, 0px) + 10px
        ));
    }
}
