/* Keep removal easy to target in both the full cart and the header popup. */
.woocommerce-cart #content.site-main,
.woocommerce-checkout #content.site-main,
.woocommerce-account #content.site-main {
    /* Hello 3 adds 50px above default pages; the production Woo pages had none. */
    margin-top: 0;
}
.woocommerce-cart #content.site-main {
    width: calc(100% - 32px);
    max-width: 1140px;
    margin: 32px auto 48px;
    padding: 0 10px;
    box-sizing: border-box;
}
.woocommerce-cart table.cart td {
    /* Match production cell spacing. Hello's newer 15px padding caused the
       three mobile price/quantity/subtotal cells to wrap onto another line. */
    padding: 9px 12px;
}
.woocommerce-cart .woocommerce-cart-form a.remove,
.agro-header-cart a.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    font-size: 22px !important;
    font-family: Arial, sans-serif !important;
    line-height: 1 !important;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none;
}
.woocommerce-cart .woocommerce-cart-form a.remove:hover,
.agro-header-cart a.remove:hover {
    background: #02e50233 !important;
    color: #02e502 !important;
}
.woocommerce-cart .woocommerce-cart-form a.remove:focus-visible,
.agro-header-cart a.remove:focus-visible {
    outline: 2px solid #02e502;
    outline-offset: 2px;
}
@media (min-width: 769px) {
    .woocommerce-cart table.cart td { font-size: 18px; }
    .woocommerce-cart table.cart th { font-size: 16px; }
    .woocommerce-cart table.cart td.product-name { font-size: 20px; }
    .woocommerce-cart table.cart td.product-thumbnail { width: 160px; }
    .woocommerce-cart table.cart td.product-thumbnail img {
        width: 120px;
        max-width: 100%;
        height: 108px !important;
        object-fit: contain;
    }
    .woocommerce-cart table.cart input.qty { font-size: 18px; }
    .woocommerce-cart .cart_totals table.shop_table { font-size: 18px; }
}
.agro-home-cart-button > .button,
.agro-header-cart .buttons .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 18px;
    border: 1px solid #02e502;
    border-radius: 0;
    background: transparent;
    color: #02e502;
    font-family: inherit;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.agro-home-cart-button > .button { width: 100%; }
.agro-home-cart-button > .added_to_cart { display: block; margin-top: 10px; color: #fff; }
.elementor-element-f691ae0 .owl-stage { display: flex; align-items: stretch; }
.elementor-element-f691ae0 .owl-item { display: flex; float: none; }
.elementor-element-f691ae0 .uc_image_carousel_container_holder,
.elementor-element-f691ae0 .ue-content-holder,
.elementor-element-f691ae0 .elementor[data-elementor-id],
.elementor-element-f691ae0 .elementor[data-elementor-id] > .elementor-section,
.elementor-element-f691ae0 .elementor[data-elementor-id] > .elementor-section > .elementor-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
}
.elementor-element-f691ae0 .elementor-column { flex: 1 1 auto; }
.elementor-element-f691ae0 .elementor-widget-wrap { flex: 1 1 auto; flex-direction: column; flex-wrap: nowrap; }
.elementor-element-f691ae0 .elementor-widget-button { margin-top: auto !important; }
.agro-header-cart { position: relative; color: #fff; }
.agro-header-cart.is-refreshing { min-height: 100px; }
.agro-header-cart.is-refreshing .agro-header-cart-contents { visibility: hidden; }
.agro-header-cart-status:empty { display: none; }
.agro-header-cart.is-refreshing .agro-header-cart-status { position: absolute; top: 16px; left: 0; }
.agro-header-cart ul.cart_list { margin: 0; padding: 0; list-style: none; }
.agro-header-cart li.mini_cart_item {
    position: relative;
    padding: 16px 52px 16px 0;
    min-height: 100px;
    border-bottom: 1px solid #444;
    font-size: 22px;
}
.agro-header-cart li.mini_cart_item::after { content: ''; display: table; clear: both; }
.agro-header-cart li.mini_cart_item a:not(.remove) { color: #fff; text-decoration: none; }
.agro-header-cart li.mini_cart_item img {
    float: left;
    width: 110px;
    height: 100px;
    object-fit: contain;
    margin: 0 18px 10px 0;
}
.agro-header-cart li.mini_cart_item a.remove { position: absolute; top: 12px; right: 0; }
.agro-header-cart li.mini_cart_item .quantity { display: block; margin-top: 10px; }
.agro-header-cart .total { font-size: 24px; margin: 20px 0; }
.agro-header-cart .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.agro-header-cart .buttons .button { flex: 1 1 auto; font-size: 21px; }
#elementor-popup-modal-548 .agro-header-cart li.mini_cart_item img {
    float: left;
    width: 110px;
    height: 100px;
    margin: 0 18px 10px 0;
    object-fit: contain;
}
#elementor-popup-modal-548 .agro-header-cart li.mini_cart_item a:not(.remove) {
    font-weight: 400;
    color: #fff;
}
#elementor-popup-modal-548 .agro-header-cart .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
#elementor-popup-modal-548 .agro-header-cart .buttons .button { width: auto; margin: 0; }
#elementor-popup-modal-548 .dialog-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
    font-size: 24px;
}
@media (max-width: 480px) {
    .agro-header-cart li.mini_cart_item { font-size: 18px; }
    #elementor-popup-modal-548 .agro-header-cart li.mini_cart_item img { width: 72px; height: 72px; margin-right: 10px; }
}
@media (max-width: 768px) {
    .woocommerce-cart #content.site-main {
        width: calc(100% - 32px);
        margin-top: 24px;
        margin-bottom: 32px;
        padding: 0;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        position: relative;
        width: 100% !important;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item td {
        display: block !important;
        width: auto !important;
        min-width: 0;
        padding: 12px 8px;
        text-align: left !important;
        box-sizing: border-box;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-name {
        grid-column: 1 / -1;
        padding: 16px 52px 16px 100px;
        min-height: 104px;
        font-size: 18px;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-remove {
        position: absolute;
        top: 4px;
        right: 4px;
        padding: 0;
        border: 0;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail {
        display: block !important;
        position: absolute;
        top: 12px;
        left: 12px;
        width: 72px !important;
        height: 72px;
        padding: 0;
        border: 0;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail img {
        width: 72px;
        height: 72px !important;
        object-fit: contain;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-name::before,
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-remove::before { display: none; }
    .woocommerce-cart table.shop_table_responsive tr.cart_item :is(.product-price, .product-quantity, .product-subtotal)::before {
        display: block !important;
        content: attr(data-title);
        float: none !important;
        visibility: visible;
        font-size: 13px;
        font-weight: 400;
        margin-bottom: 8px;
        color: #aaa;
    }
    .woocommerce-cart table.cart td .amount { white-space: nowrap; font-size: 16px; }
    .woocommerce-cart table.cart input.qty { width: 56px !important; max-width: 100%; min-height: 44px; padding: 8px; }
    .woocommerce-cart table.cart tbody > tr:not(.cart_item),
    .woocommerce-cart table.cart .actions { display: block; width: 100%; box-sizing: border-box; }
    .woocommerce-cart .cart_totals table.shop_table_responsive td::before {
        display: block !important;
        visibility: visible;
        color: #aaa;
    }
}
