/* ================================================================
   MEGAUG SIDE CART — Liquid Glass Off-Canvas Drawer
   ================================================================ */

/* ---- Overlay ---- */
.mgsc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.38s ease;
}

.mgsc-overlay.is-open {
    opacity: 1;
    pointer-events: all;
    touch-action: none;
}

/* Prevent background scroll when cart is open */
body.mgsc-cart-open,
html:has(body.mgsc-cart-open) {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* ---- Drawer — more transparent glass ---- */
.mgsc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 390px;
    max-width: 100vw;
    height: 100dvh;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(102%);
    transition: transform 0.42s cubic-bezier(0.32, 0, 0.15, 1);
    overflow: hidden;
    overscroll-behavior: contain;
    /* Liquid Glass base — more transparent */
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(32px) saturate(1.4) brightness(0.95);
    -webkit-backdrop-filter: blur(32px) saturate(1.4) brightness(0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: -16px 0 80px rgba(0, 0, 0, 0.6),
        inset 1px 0 0 rgba(255, 255, 255, 0.04),
        inset -1px 0 0 rgba(229, 168, 89, 0.04);
}

.mgsc-drawer.is-open {
    transform: translateX(0);
}

/* Inner glass shimmer layer */
.mgsc-glass-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.01) 35%,
            rgba(229, 168, 89, 0.02) 65%,
            transparent 100%);
    z-index: 0;
}

.mgsc-drawer>*:not(.mgsc-glass-layer) {
    position: relative;
    z-index: 1;
}

/* ---- Header ---- */
.mgsc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
}

.mgsc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.mgsc-title {
    font-family: "Bona Nova", serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.01em;
}

.mgsc-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, #c8922a, #e5a859);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #111;
}

.mgsc-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0;
    flex-shrink: 0;
}

.mgsc-close:hover {
    background: rgba(229, 168, 89, 0.25);
    border-color: rgba(229, 168, 89, 0.5);
    border-top-color: rgba(229, 168, 89, 0.8);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(229, 168, 89, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.05);
}

.mgsc-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* ---- Delivery Progress ---- */
.mgsc-delivery-bar {
    padding: 11px 20px;
    background: rgba(229, 168, 89, 0.03);
    border-bottom: 1px solid rgba(229, 168, 89, 0.07);
    flex-shrink: 0;
}

.mgsc-delivery-text {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 7px;
    line-height: 1.4;
}

.mgsc-delivery-text strong {
    color: #e5a859;
}

.mgsc-delivery-text--done {
    color: rgba(255, 255, 255, 0.8);
}

.mgsc-delivery-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 100px;
    overflow: hidden;
}

.mgsc-delivery-fill {
    height: 100%;
    background: linear-gradient(90deg, #c8922a, #e5a859);
    border-radius: 100px;
    transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Body ---- */
.mgsc-body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.07) transparent;
    overscroll-behavior: contain;
}

.mgsc-body::-webkit-scrollbar {
    width: 3px;
}

.mgsc-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* ---- Cart Item ---- */
.mgsc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.mgsc-item:hover {
    background: rgba(255, 255, 255, 0.012);
}

.mgsc-item-img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mgsc-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mgsc-item-info {
    flex: 1;
    min-width: 0;
}

.mgsc-item-name {
    display: block;
    font-size: 0.81rem;
    color: rgba(255, 255, 255, 0.82) !important;
    text-decoration: none !important;
    line-height: 1.3;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mgsc-item-name:hover {
    color: #e5a859 !important;
}

.mgsc-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mgsc-item-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(229, 168, 89, 0.9);
}

.mgsc-item-price .woocommerce-Price-amount {
    color: rgba(229, 168, 89, 0.9);
}

/* Quantity stepper */
.mgsc-qty {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.mgsc-qty-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 28px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.18s ease;
    line-height: 1;
}

.mgsc-qty-btn:hover {
    background: rgba(229, 168, 89, 0.12);
    color: #e5a859;
}

.mgsc-qty-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    min-width: 22px;
    text-align: center;
    line-height: 1;
}

/* Remove button */
.mgsc-item-remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.22);
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    align-self: center;
}

.mgsc-item-remove:hover {
    background: rgba(220, 50, 50, 0.14);
    border-color: rgba(220, 50, 50, 0.28);
    color: #f87171;
}

/* ---- Empty State ---- */
.mgsc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
}

.mgsc-empty p {
    font-size: 0.88rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.25) !important;
}

/* ---- Sticky Footer ---- */
.mgsc-sticky-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(20px);
    padding: 0;
}

.mgsc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 10px;
}

.mgsc-total-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mgsc-total-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    font-family: "Outfit", sans-serif;
}

.mgsc-total-amount .woocommerce-Price-amount {
    color: white;
}

.mgsc-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
}

/* Hide the old cart-link button if ever re-introduced */
.mgsc-cart-link-btn {
    display: none !important;
}

/* Checkout button — gold gradient */
.mgsc-checkout-btn,
.mgmc-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, rgba(229, 168, 89, 0.9) 0%, rgba(184, 115, 51, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    font-weight: 500;
    font-size: 0.88rem;
    text-align: center;
    text-decoration: none !important;
    border-radius: 40px;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 168, 89, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.mgsc-checkout-btn:hover,
.mgmc-checkout-btn:hover {
    background: linear-gradient(135deg, rgba(229, 168, 89, 1) 0%, rgba(184, 115, 51, 1) 100%) !important;
    box-shadow: 0 8px 25px rgba(229, 168, 89, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
    color: #fff !important;
}

/* ---- Cross-sell (between items body and sticky footer) ---- */
.mgsc-crosssell {
    flex-shrink: 0;
    padding: 10px 20px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mgsc-crosssell-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.28) !important;
    margin-bottom: 9px !important;
    font-weight: 600;
}

.mgsc-crosssell-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mgsc-cs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: border-color 0.25s ease;
}

.mgsc-cs-item:hover {
    border-color: rgba(229, 168, 89, 0.16);
}

.mgsc-cs-img {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
}

.mgsc-cs-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mgsc-cs-info {
    flex: 1;
    min-width: 0;
}

.mgsc-cs-name {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 0 2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mgsc-cs-price {
    font-size: 0.71rem;
    color: rgba(229, 168, 89, 0.8) !important;
    margin: 0 !important;
    font-weight: 600;
}

.mgsc-cs-price .woocommerce-Price-amount {
    color: rgba(229, 168, 89, 0.8);
}

.mgsc-cs-add {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(229, 168, 89, 0.08);
    border: 1px solid rgba(229, 168, 89, 0.25);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    color: #e5a859 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1;
}

.mgsc-cs-add:hover {
    background: rgba(229, 168, 89, 0.2);
    border-color: rgba(229, 168, 89, 0.5);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .mgsc-drawer {
        width: 100vw;
        border-left: none;
        right: auto !important;
        left: 0 !important;
        transform: translateX(-102%) !important;
    }

    .mgsc-drawer.is-open {
        transform: translateX(0) !important;
    }
}

/* ================================================================
   FLOATING CART WIDGET — bottom-right
   ================================================================ */
.mgsc-float-widget {
    position: fixed;
    bottom: 120px;
    right: 50px;
    z-index: 9990;
    display: none; /* Hidden on desktop by default */
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    background: rgba(16, 16, 16, 0.45);
    backdrop-filter: blur(48px) saturate(1.5);
    -webkit-backdrop-filter: blur(48px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    color: white;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 130px;
}

@media (max-width: 768px) {
    .mgsc-float-widget {
        display: flex; /* Show on mobile */
    }
}

body.modal-open .mgsc-float-widget {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.9);
}

.mgsc-float-widget:hover {
    background: rgba(22, 22, 22, 0.65);
    border-color: rgba(229, 168, 89, 0.3);
    box-shadow: 0 0 0 1px rgba(229, 168, 89, 0.15),
        0 12px 44px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(229, 168, 89, 0.12);
    transform: translateY(-2px);
}

.mgsc-float-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: linear-gradient(135deg, #c8922a, #e5a859);
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a0a;
    line-height: 1;
}

.mgsc-float-widget svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.mgsc-float-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.mgsc-float-label {
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mgsc-float-total {
    font-size: 0.92rem;
    font-weight: 700;
    color: white;
    font-family: "Outfit", sans-serif;
    white-space: nowrap;
}

.mgsc-float-total .woocommerce-Price-amount {
    color: white;
}

.woocommerce-cart .mgsc-float-widget,
.woocommerce-checkout .mgsc-float-widget {
    display: none !important;
}

/* ================================================================
   MINI CART MODAL — slides up from float widget (bottom-right)
   ================================================================ */

/* Bootstrap modal override: position bottom-right, no backdrop centering */
#rightCenterModal {
    pointer-events: none;
}

#rightCenterModal.show {
    pointer-events: all;
}

#rightCenterModal .modal-dialog {
    position: fixed !important;
    bottom: 140px !important;
    right: 80px !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    max-width: 320px;
    width: 320px;
    /* Origin: scale from bottom-right corner (from the float widget area) */
    transform-origin: bottom right !important;
}

/* Bootstrap fade+scale animation from float widget origin */
/* Reset: no transition when hidden so next open always starts fresh */
#rightCenterModal:not(.show) .modal-dialog {
    transition: none !important;
    transform: scale(0.85) translateY(16px) !important;
    opacity: 0 !important;
}

/* Animate IN when show class is applied */
#rightCenterModal.show .modal-dialog {
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.22s ease !important;
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
}

/* Suppress Bootstrap's default fade on the modal itself */
#rightCenterModal.fade {
    opacity: 1 !important;
}

#rightCenterModal .modal-backdrop {
    display: none;
}

/* Glass card content */
.mgmc-content {
    background: rgba(12, 12, 12, 0.45) !important;
    backdrop-filter: blur(48px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(48px) saturate(1.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(229, 168, 89, 0.0),
        0 20px 60px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: box-shadow 0.35s ease;
}

/* Orange glow on hover over the whole popup */
.mgmc-content:hover {
    border-color: rgba(229, 168, 89, 0.18) !important;
    box-shadow: 0 0 0 1px rgba(229, 168, 89, 0.12),
        0 24px 70px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(229, 168, 89, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.mgmc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mgmc-header-left {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.85);
}



.mgmc-title {
    font-family: "Bona Nova", serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}



.mgmc-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0;
    flex-shrink: 0;
}

.mgmc-close:hover {
    background: rgba(229, 168, 89, 0.25);
    border-color: rgba(229, 168, 89, 0.5);
    border-top-color: rgba(229, 168, 89, 0.8);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(229, 168, 89, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.05);
}

.mgmc-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Body — scrollable items */
.mgmc-body {
    padding: 0;
    background: transparent;
    min-height: 120px;
    max-height: 46vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.07) transparent;
}

.mgmc-body .woocommerce-mini-cart__empty-message {
    padding: 2.5rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.28) !important;
    font-size: 0.83rem;
}

.mgmc-body .woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mgmc-body .m-woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mgmc-body .m-mini-cart-image img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.mgmc-body .m-mini-cart-content {
    flex: 1;
    min-width: 0;
}

.mgmc-body .m-mini-cart-product-title {
    font-size: 0.76rem !important;
    color: rgba(255, 255, 255, 0.78) !important;
    margin: 0 0 3px !important;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mgmc-body .m-mini-cart-quantity {
    font-size: 0.74rem;
    color: rgba(229, 168, 89, 0.8);
}

/* Visible delete button in mini cart */
.mgmc-body .m-mini-cart-delete {
    margin-left: 4px;
    flex-shrink: 0;
}

.mgmc-body .m-mini-cart-delete .remove {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.mgmc-body .m-mini-cart-delete .remove:hover {
    opacity: 1;
}

.mgmc-body .m-mini-cart-delete svg {
    width: 12px;
    height: 12px;
}

.mgmc-body .m-cart-delete {
    fill: rgba(248, 113, 113, 0.7) !important;
}

.mgmc-body .m-mini-cart-delete .remove:hover .m-cart-delete {
    fill: #f87171 !important;
}

/* Hide WC default buttons/total in the widget list */
.mgmc-body .woocommerce-mini-cart__total,
.mgmc-body .woocommerce-mini-cart__buttons {
    display: none;
}

/* Footer */
/* Mini modal items styling override (since it uses mgsc-item classes now) */
.mgmc-body .mgsc-item {
    padding: 10px 16px;
    gap: 10px;
}

.mgmc-body .mgsc-item-img {
    width: 44px;
    height: 44px;
}

.mgmc-body .mgsc-item-name {
    font-size: 0.76rem;
    margin-bottom: 5px;
}

.mgmc-body .mgsc-qty-btn {
    width: 24px;
    height: 22px;
}

.mgmc-body .mgsc-qty-num {
    font-size: 0.74rem;
    min-width: 18px;
}

.mgmc-body .mgsc-item-price {
    font-size: 0.76rem;
}

.mgmc-body .mgsc-item-remove {
    width: 24px;
    height: 24px;
}

.mgmc-footer {
    padding: 10px 16px 16px;
}

.mgmc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
}

.mgmc-total-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mgmc-total-amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    font-family: "Outfit", sans-serif;
}

.mgmc-total-amount .woocommerce-Price-amount {
    color: white;
}


/* ================================================================
   MOBILE — floating widget repositioned above bottom nav bar
   ================================================================ */
@media (max-width: 768px) {

    /* Hide desktop popup modal on mobile */
    #rightCenterModal {
        display: none !important;
    }

    /* Compact pill, anchored bottom-right, hidden by default */
    .mgsc-float-widget {
        left: auto !important;
        right: 15px !important;
        width: auto !important;
        min-width: 150px !important;
        padding: 12px 20px !important;
        border-radius: 100px !important;
        bottom: -120px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease !important;
        z-index: 1040 !important;
    }

    /* Shown: lift above the bottom nav bar using the CSS variable */
    .mgsc-float-widget.show-mobile {
        bottom: calc(var(--bottom-nav-h, 65px) + 15px + env(safe-area-inset-bottom)) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mgsc-float-info {
        flex: 1;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
    }

    .mgsc-float-label {
        display: block !important;
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }

    .mgsc-float-arrow {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
        flex-shrink: 0 !important;
    }

    .mgsc-float-arrow svg {
        width: 16px;
        height: 16px;
    }
}


.mgsc-float-arrow {
    display: none;
}

/* Global bounce animation for float widget when updated */
@keyframes floatPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05) translateY(-5px);
    }

    100% {
        transform: scale(1);
    }
}

.mgsc-float-widget.float-widget-pop {
    animation: floatPop 0.4s ease;
}

/* Hide when menus or side cart are open (Global for desktop and mobile) */
body.modal-open .mgsc-float-widget,
body.offcanvas-active .mgsc-float-widget,
body.menu-open .mgsc-float-widget,
body.mgsc-cart-open .mgsc-float-widget {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Hide WooCommerce 'View Cart' text link added via AJAX */
a.added_to_cart.wc-forward {
    display: none !important;
}