
/* JW SIDE CART 1.0.0 */

@media (min-width: 1025px) {

    .cart-widget-side.jw-sc-ready {
        --jw-sc-green: #c2f500;
        --wd-side-hidden-w: 440px;
        width: 440px !important;
        max-width: 100vw;
        background: #111 !important;
        color: #fff;
        display: flex;
        flex-direction: column;
        font-family: "JWF Montserrat", "Montserrat",
                     Arial, sans-serif !important;
    }

    /* Header */

    .jw-sc-ready .wd-heading {
        flex: 0 0 auto;
        padding: 23px 24px !important;
        border-bottom: 1px solid #303030 !important;
        background: #111 !important;
    }

    .jw-sc-ready .wd-heading .title,
    .jw-sc-ready .wd-heading h2,
    .jw-sc-ready .wd-heading h3 {
        color: #fff !important;
        font-family: "JWF Montserrat", "Montserrat",
                     Arial, sans-serif !important;
        font-size: 21px !important;
        font-weight: 800 !important;
        font-style: italic !important;
        text-transform: uppercase;
    }

    .jw-sc-ready .jw-sc-count {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 24px;
        height: 24px;
        padding: 0 5px;
        margin-left: 9px;
        border-radius: 30px;
        background: #c2f500;
        color: #111;
        font-size: 12px;
        font-weight: 700;
        font-style: normal;
    }

    /* Flexible panel structure */

    .jw-sc-ready .jw-sc-shell {
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .jw-sc-ready .widget_shopping_cart_content {
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        padding: 0 22px 22px;
        overflow: hidden;
    }

    /* Common buttons */

    .jw-sc-ready .jw-sc-btn,
    .jw-sc-ready .elementor-menu-cart__footer-buttons > a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        width: 100%;
        padding: 12px 16px;
        border-radius: 6px !important;
        font-family: "JWF Montserrat", "Montserrat",
                     Arial, sans-serif !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        font-style: normal !important;
        text-transform: uppercase;
        text-decoration: none !important;
        box-sizing: border-box;
        transition: background .18s, color .18s;
    }

    .jw-sc-ready .jw-sc-primary,
    .jw-sc-ready .elementor-button--checkout {
        background: #c2f500 !important;
        color: #101010 !important;
        border: 1px solid #c2f500 !important;
    }

    .jw-sc-ready .jw-sc-primary:hover,
    .jw-sc-ready .elementor-button--checkout:hover {
        background: #d3ff24 !important;
    }

    .jw-sc-ready .jw-sc-secondary {
        background: transparent !important;
        color: #c2f500 !important;
        border: 1px solid #c2f500 !important;
    }

    .jw-sc-ready .jw-sc-secondary:hover {
        background: #1d230e !important;
    }

    /* Empty cart */

    .jw-sc-ready .jw-sc-empty-active
    .woocommerce-mini-cart__empty-message {
        display: none !important;
    }

    .jw-sc-ready .jw-sc-empty {
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        overflow-y: auto;
    }

    .jw-sc-empty-main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 45px 0 30px;
        text-align: center;
    }

    .jw-sc-empty-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 92px;
        height: 92px;
        margin-bottom: 26px;
        border-radius: 50%;
        background: rgba(194,245,0,.045);
        color: #c2f500;
    }

    .jw-sc-empty-icon svg {
        width: 70px;
        height: 70px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.4;
    }

    .jw-sc-empty-title {
        color: #fff;
        font-size: 19px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .jw-sc-empty-description {
        color: #999;
        font-size: 13px;
        line-height: 1.65;
    }

    .jw-sc-empty-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .jw-sc-wishlist {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
        color: #aaa !important;
        font-size: 13px;
    }

    .jw-sc-wishlist:hover {
        color: #c2f500 !important;
    }

    .jw-sc-help {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-top: 20px;
        margin-top: auto;
        border-top: 1px solid #303030;
        color: #fff;
        font-size: 13px;
    }

    .jw-sc-help svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: #c2f500;
        stroke-width: 1.5;
        flex-shrink: 0;
    }

    .jw-sc-help a {
        display: block;
        margin-top: 5px;
        color: #c2f500 !important;
    }

    /* Product list */

    .jw-sc-ready .elementor-menu-cart__products {
        display: block !important;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none !important;
        overflow-y: auto !important;
        padding-top: 10px;
        scrollbar-width: thin;
    }

    .jw-sc-ready .elementor-menu-cart__product {
        display: grid !important;
        grid-template-columns: 82px minmax(0,1fr) 22px;
        grid-template-areas:
            "image name remove"
            "image price price";
        gap: 8px 13px;
        padding: 19px 0 !important;
        border-bottom: 1px solid #303030 !important;
        align-items: start;
        background: transparent !important;
    }

    .jw-sc-ready .elementor-menu-cart__product-image {
        grid-area: image;
        width: 82px !important;
        padding: 0 !important;
    }

    .jw-sc-ready .elementor-menu-cart__product-image img {
        width: 82px !important;
        height: 82px !important;
        object-fit: contain;
        border-radius: 6px;
        background: #1d1d1d;
    }

    .jw-sc-ready .elementor-menu-cart__product-name {
        grid-area: name;
        padding: 0 !important;
        color: #fff !important;
        font-size: 13px !important;
        line-height: 1.45;
        font-weight: 700 !important;
        overflow-wrap: anywhere;
    }

    .jw-sc-ready .elementor-menu-cart__product-name a {
        color: #fff !important;
    }

    .jw-sc-ready .elementor-menu-cart__product-name a:hover {
        color: #c2f500 !important;
    }

    .jw-sc-ready .elementor-menu-cart__product-name
    .variation {
        color: #aaa;
        font-size: 11px;
        font-weight: 400;
    }

    .jw-sc-ready .elementor-menu-cart__product-price {
        grid-area: price;
        padding: 0 !important;
        color: #bbb !important;
        font-size: 12px !important;
    }

    .jw-sc-ready .elementor-menu-cart__product-remove {
        grid-area: remove;
        position: relative !important;
        inset: auto !important;
        padding: 0 !important;
        color: #888 !important;
    }

    .jw-sc-ready .jw-sc-extra {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 9px;
    }

    .jw-sc-stock {
        color: #c2f500;
        font-size: 11px;
        font-weight: 500;
    }

    .jw-sc-line {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .jw-sc-quantity {
        border: 1px solid #383838;
        border-radius: 5px;
        padding: 7px 12px;
        color: #ddd;
        font-size: 12px;
    }

    .jw-sc-line-total,
    .jw-sc-line-total .amount {
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    /* Delivery information */

    .jw-sc-ready .jw-sc-delivery {
        display: block !important;
        flex-shrink: 0;
        padding: 14px;
        margin: 14px 0;
        border-radius: 6px;
        background: #1c1c1c;
    }

    .jw-sc-delivery-title {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #eee;
        font-size: 13px;
        font-weight: 500;
    }

    .jw-sc-delivery-title svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: #c2f500;
        stroke-width: 1.5;
    }

    .jw-sc-delivery-description {
        color: #aaa;
        font-size: 11px;
        margin-top: 6px;
    }

    /* Fixed bottom section */

    .jw-sc-ready .elementor-menu-cart__subtotal {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-shrink: 0;
        padding: 19px 0 !important;
        margin: 0 !important;
        border-top: 1px solid #303030 !important;
        color: #fff !important;
        font-size: 14px;
        text-align: left !important;
    }

    .jw-sc-ready .elementor-menu-cart__subtotal strong {
        color: #aaa !important;
        font-size: 12px !important;
        font-weight: 500 !important;
    }

    .jw-sc-ready .elementor-menu-cart__subtotal .amount {
        color: #fff !important;
        font-size: 22px !important;
        font-weight: 700 !important;
    }

    .jw-sc-ready .elementor-menu-cart__footer-buttons {
        display: flex !important;
        flex-direction: column;
        flex-shrink: 0;
        gap: 10px !important;
        padding: 0 !important;
    }

    .jw-sc-ready .elementor-button--checkout {
        order: -1;
    }

    .jw-sc-ready .elementor-button--view-cart {
        background: transparent !important;
        border: 1px solid #505050 !important;
        color: #fff !important;
    }

    .jw-sc-ready .elementor-button--view-cart:hover {
        border-color: #c2f500 !important;
        color: #c2f500 !important;
    }

    .jw-sc-ready .jw-sc-continue {
        display: block !important;
        background: transparent !important;
        border: 0 !important;
        color: #999 !important;
        font-size: 12px !important;
        text-align: center;
        padding: 8px !important;
        text-transform: none !important;
        cursor: pointer;
    }

    .jw-sc-continue:hover {
        color: #c2f500 !important;
    }
}

/* JW SIDE CART V101 START */

@media (min-width: 1025px) {

    .cart-widget-side .jw-sc-hide-compatibility {
        display: none !important;
    }

}

/* JW SIDE CART V101 END */



/* JW SIDE CART V102 START */

@media (min-width: 1025px) {

    .jw-sc-ready .elementor-menu-cart__product {
        grid-template-columns: 82px minmax(0,1fr) 34px !important;
        grid-template-areas:
            "image name remove"
            "image price price" !important;
        gap: 8px 13px !important;
    }

    .jw-sc-ready .elementor-menu-cart__product-remove {
        grid-area: remove !important;
        align-self: start !important;
        justify-self: end !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #bdbdbd !important;
        font-size: 28px !important;
        line-height: 1 !important;
        text-decoration: none !important;
    }

    .jw-sc-ready .elementor-menu-cart__product-remove:hover {
        color: #c2f500 !important;
    }

    .jw-sc-ready .elementor-menu-cart__product-name a {
        display: block !important;
        text-decoration: none !important;
    }

    .jw-sc-ready .jw-sc-title-stock {
        display: block;
        margin-bottom: 4px;
        color: #c2f500;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
    }

    .jw-sc-ready .jw-sc-title-name {
        display: block;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.35;
    }

    .jw-sc-ready .jw-sc-title-specs {
        display: block;
        margin-top: 2px;
        color: #c7c7c7;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.35;
    }

    .jw-sc-ready .elementor-menu-cart__product-price {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    .jw-sc-ready .elementor-menu-cart__product-price .quantity,
    .jw-sc-ready .elementor-menu-cart__product-price .amount,
    .jw-sc-ready .elementor-menu-cart__product-price bdi {
        font-size: 16px !important;
        font-weight: 700 !important;
    }

}

/* JW SIDE CART V102 END */


/* JW SIDE CART V103 START */

@media (min-width: 1025px) {

    /* Remove stock labels */

    .cart-widget-side.jw-sc-ready .jw-sc-hide-stock,
    .cart-widget-side.jw-sc-ready .jw-sc-title-stock,
    .cart-widget-side.jw-sc-ready .jw-sc-stock {
        display: none !important;
    }

    /* Product typography */

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product-name {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .cart-widget-side.jw-sc-ready
    .jw-sc-title-name {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
    }

    .cart-widget-side.jw-sc-ready
    .jw-sc-title-specs {
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        color: #ccc !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }

    /* Product card positioning */

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product {
        position: relative !important;
    }

    /* Move removal container to the right */

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product
    .elementor-menu-cart__product-remove {
        position: absolute !important;
        inset: 18px 0 auto auto !important;
        grid-area: auto !important;
        transform: none !important;
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 5 !important;
    }

    /* Style actual WooCommerce removal link */

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product-remove a {
        position: relative !important;
        inset: auto !important;
        transform: none !important;
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #aaa !important;
        font-size: 0 !important;
        box-shadow: none !important;
    }

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product-remove
    a.remove_from_cart_button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Avoid duplicate Elementor removal link */

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product-remove:has(
        > a.remove_from_cart_button
    )
    > a.elementor_remove_from_cart_button:not(
        .remove_from_cart_button
    ) {
        display: none !important;
    }

    /* Draw a clean cross */

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product-remove a::before,

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product-remove a::after {
        content: "" !important;
        position: absolute !important;
        top: 14px !important;
        left: 6px !important;
        width: 18px !important;
        height: 1.5px !important;
        margin: 0 !important;
        background: currentColor !important;
        border: 0 !important;
    }

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product-remove a::before {
        transform: rotate(45deg) !important;
    }

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product-remove a::after {
        transform: rotate(-45deg) !important;
    }

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product-remove a:hover {
        color: #c2f500 !important;
    }

}

/* JW SIDE CART V103 END */


/* JW SIDE CART V104 START */

@media (min-width: 1025px) {

    /* Hide duplicate removal links outside the right button */

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__product:has(
        .elementor-menu-cart__product-remove a
    )
    a:is(
        .remove,
        .remove_from_cart_button,
        .elementor_remove_from_cart_button,
        .wd-remove,
        [href*="remove_item="]
    ):not(.elementor-menu-cart__product-remove a) {
        display: none !important;
    }

}

/* JW SIDE CART V104 END */



/* JW SIDE CART V105 START */

@media (min-width: 1025px) {

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__subtotal {
        align-items: flex-end !important;
    }

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__subtotal strong {
        color: #b5b5b5 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
    }

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__subtotal .amount,
    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__subtotal .amount bdi {
        color: #fff !important;
        font-size: 34px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        letter-spacing: -0.02em !important;
    }

}

/* JW SIDE CART V105 END */



/* JW SIDE CART V106 START */

@media (min-width: 1025px) {

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__subtotal {
        align-items: center !important;
    }

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__subtotal strong {
        font-family: "JWF Montserrat", "Montserrat",
                     Arial, sans-serif !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        font-style: normal !important;
        color: #ffffff !important;
        line-height: 1.2 !important;
    }

}

/* JW SIDE CART V106 END */



/* JW SIDE CART V107 START */

@media (min-width: 1025px) {

    /* Remove unnecessary empty space */

    .cart-widget-side.jw-sc-ready
    .widget_shopping_cart_content:has(.elementor-menu-cart__products) {
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    /* Product list occupies only necessary height */

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__products {
        flex: 0 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    /* Delivery directly below products */

    .cart-widget-side.jw-sc-ready
    .jw-sc-delivery {
        margin-top: 20px !important;
        margin-bottom: 16px !important;
        flex-shrink: 0 !important;
    }

    /* Compact subtotal */

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__subtotal {
        margin: 0 !important;
        padding: 18px 0 !important;
        flex-shrink: 0 !important;
    }

    /* Buttons directly below subtotal */

    .cart-widget-side.jw-sc-ready
    .elementor-menu-cart__footer-buttons {
        margin: 4px 0 0 !important;
        padding: 0 !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
    }

    /* Remove continue shopping */

    .cart-widget-side.jw-sc-ready
    .jw-sc-continue {
        display: none !important;
    }

}

/* JW SIDE CART V107 END */

