@media (min-width: 1200px) {
    .single-product .mg-product-pricing-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: start;
        column-gap: 12px;
                margin-bottom: 24px;
    }

    .single-product .mg-product-pricing-layout__primary {
        min-width: 0;
    }

    .single-product .mg-product-volume-wrap {
        align-self: start;
        margin: 0;
    }

    .single-product .mg-product-volume-wrap:not(:has(.mg-volume-discounts)) {
        display: none;
    }

    .single-product .mg-product-volume-wrap > .mg-volume-discounts {
        align-items: center;
        display: flex;
        gap: 12px;
        width: max-content;
        max-width: 100%;
    }

    .single-product .mg-product-volume-wrap .mg-volume-discounts__title {
        flex: 0 0 90px;
        margin: 0;
        font-size: 22px !important;
        line-height: 1.2;
        text-transform: none;
    }

    .single-product .mg-product-volume-wrap .mg-volume-discounts__items {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: stretch;
    }

    .single-product .mg-product-volume-wrap .mg-volume-discounts__item {
        box-sizing: border-box;
        width: 140px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .single-product .mg-product-volume-wrap .mg-volume-discounts__label {
        white-space: nowrap;
    }
}

@media (min-width: 1440px) {
    .single-product .mg-product-pricing-layout {
        column-gap: 24px;
    }

    .single-product .mg-product-volume-wrap > .mg-volume-discounts {
        gap: 16px;
    }

    .single-product .mg-product-volume-wrap .mg-volume-discounts__title {
        flex-basis: 110px;
        width: 110px;
        font-size: 22px !important;
    }

    .single-product .mg-product-volume-wrap .mg-volume-discounts__item {
        width: 151px;
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (min-width: 1024px) {

    .mg-desktop-sticky-cart {
        position: fixed;
        z-index: 9990;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 10px 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(110%);
        transition: transform 240ms ease, opacity 200ms ease, visibility 0s linear 240ms;
        pointer-events: none;
    }

    .mg-desktop-sticky-cart.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
        pointer-events: auto;
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.18);
        background: white;
    }

    .mg-desktop-sticky-cart__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 112px minmax(215px, 320px);
        align-items: center;
        gap: 8px;
        width: min(100%, 1380px);
        min-height: 58px;
        margin: 0 auto;
        padding: 0px 0px;
        border-radius: 7px;
        background: #fff;
    }

    .mg-desktop-sticky-cart__product {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 12px;
    }

    .mg-desktop-sticky-cart__image {
        width: 56px;
        height: 56px;
        flex: 0 0 44px;
        border: 1px solid #dedede;
        border-radius: 8px;
        object-fit: contain;
        background: #fff;
    }

    .mg-desktop-sticky-cart__info {
        min-width: 0;
    }

    .mg-desktop-sticky-cart__title {
        overflow: hidden;
        margin: 0 0 2px;
        color: #1b1b1b;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: Inter;
    }

    .mg-desktop-sticky-cart__price p.price {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        column-gap: 8px;
        row-gap: 2px;
        line-height: 1.15;
    }

    .mg-desktop-sticky-cart.is-visible .mg-desktop-sticky-cart__price p.price .woocommerce-Price-amount.amount {
        display: inline;
        color: #1b1b1b;
        font-size: 21px !important;
        font-weight: 700 !important;
        line-height: 1.15;
        font-family: Inter, sans-serif;
    }

    .mg-desktop-sticky-cart.is-visible .mg-desktop-sticky-cart__price p.price del .woocommerce-Price-amount.amount {
        color: #888 !important;
        font-size: 15px !important;
        font-weight: 400 !important;
    }

    .mg-desktop-sticky-cart__price p.price .woocommerce-Price-amount.amount bdi {
        color: inherit;
        font: inherit;
    }

    .mg-desktop-sticky-cart__price p,
    .mg-desktop-sticky-cart__price .price {
        margin: 0;
    }

    .mg-desktop-sticky-cart__price del {
        color: #888;
        font-size: 15px;
        font-weight: 400;
        opacity: 1;
        text-decoration: line-through;
        text-decoration-color: #888;
    }

    .mg-desktop-sticky-cart__price ins {
        color: #1b1b1b;
        text-decoration: none;
    }

    .mg-desktop-sticky-cart__quantity {
        display: grid;
        grid-template-columns: 36px 40px 36px;
        height: 56px;
        overflow: hidden;
        border: 1px solid #dedede;
        border-radius: 5px;
        background: #fff;
    }

    .mg-desktop-sticky-cart__quantity button,
    .mg-desktop-sticky-cart__quantity input {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #111;
        font: inherit;
        text-align: center;
        box-shadow: none;
    }

    .mg-desktop-sticky-cart__quantity button {
        cursor: pointer;
        font-size: 20px;
        line-height: 1;
    }

    .mg-desktop-sticky-cart__quantity button:hover {
        background: #f5f5f5;
    }

    .mg-desktop-sticky-cart__quantity input {
        appearance: textfield;
        font-size: 14px;
        font-weight: 500;
    }

    .mg-desktop-sticky-cart__quantity input::-webkit-inner-spin-button,
    .mg-desktop-sticky-cart__quantity input::-webkit-outer-spin-button {
        margin: 0;
        appearance: none;
    }

    .mg-desktop-sticky-cart__button {
        width: 100%;
        height: 56px;
        margin: 0;
        padding: 0 24px;
        border: 0;
        border-radius: 5px;
        background: #BE1A1A;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        line-height: 42px;
        text-align: center;
        cursor: pointer;
        transition: background-color 160ms ease;

            font-family: Roboto;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    width: 100%;
    border-radius: 8px;
    }

    .mg-desktop-sticky-cart__button:hover {
        background: #b60000;
    }

    .mg-desktop-sticky-cart__button:disabled {
        cursor: not-allowed;
        opacity: 0.55;
    }
}

@media (max-width: 1023px) {
    .mg-desktop-sticky-cart {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mg-desktop-sticky-cart {
        transition: none;
    }
}

/* Desktop product form dimensions from the product-page design. */
@media (min-width: 1024px) {
    .single-product .mg-product-cart form.cart {
        display: grid;
        grid-template-columns: 133px minmax(0, 381px);
        align-items: stretch;
        gap: 8px;
        width: min(522px, 100%);
        margin: 0;
    }

    .single-product .mg-product-cart form.cart::before,
    .single-product .mg-product-cart form.cart::after {
        content: none !important;
        display: none !important;
    }

    .single-product .mg-product-cart form.cart .quantity {
        float: none;
        width: 133px;
        height: 49px;
        margin: 0;
    }

    .single-product .mg-product-cart form.cart .quantity .quantity__button {
        width: 44px;
        height: 49px;
        flex: 0 0 44px;
        font-size: 22px;
    }

    .single-product .mg-product-cart form.cart .quantity input.qty {
        width: 45px;
        height: 49px;
        flex: 0 0 45px;
        font-size: 16px;
    }

    .single-product .mg-product-cart form.cart .add-to-cart-btn {
        float: none;
        width: 100%;
        height: 49px;
        margin: 0;
    }

    .single-product .mg-product-cart form.cart .single_add_to_cart_button {
        width: 100%;
        height: 49px;
        margin: 0;
        font-size: 14px;
    }
}
