.after_product_list {
    background: #fff !important;
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-direction: column-reverse;
    row-gap: 15px;
}

.after_product_list .clear-cart-section .clear-cart-btn{
    font-size: 14px;
    column-gap: 7px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    background: none;
    border: none;
    padding: 0;
    color: #777;
    cursor: pointer;
}

.after_product_list .clear-cart-section .clear-cart-btn:hover{
    color: #e67612;
    background: none;
}

.after_product_list .clear-cart-section .clear-cart-btn svg{
    width: 16px;
    height: 16px;
}

.clear-cart-confirm{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 28px 32px;
    width: calc(100% - 40px);
    max-width: 420px;
    text-align: center;
}

.clear-cart-confirm p{
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
}

.clear-cart-confirm .custom-buttons{
    display: flex;
    justify-content: center;
    column-gap: 10px;
}

.clear-cart-confirm .custom-buttons button{
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.clear-cart-confirm #clear-cart-cancel{
    background: #fff;
    border: 1px solid #e67612;
    color: #e67612;
}

.clear-cart-confirm #clear-cart-cancel:hover{
    background: #fff;
    opacity: 0.85;
}

.cart_mainContent_wrapper {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.woocommerce_productCartList {
    width: 100%;
}

.cart_summary {
    width: 100%;
}

.woocommerce-checkout #custom-overlay, .woocommerce-cart #custom-overlay{
    display: none;
}

.woocommerce-checkout .woocommerce-message.custom_popup_add_to_cart{
    position: relative;
    top: unset;
    z-index: 3;
    left: unset;
    transform: none;
    box-shadow: unset;
    padding: 1em 2em 1em 3.5em;
    margin-bottom: 1.5em;
    width: 100%;
    background-color: #0f834d;
    border-radius: 2px;
    border-left: .6180469716em solid rgba(0, 0, 0, .15);
    color: #fff;
    right: unset;
}

.woocommerce-checkout .woocommerce-message.custom_popup_add_to_cart::before{
    font-family: "Font Awesome 6 Free";
    content: "";
    display: inline-block;
    position: absolute;
    font-weight: 900;
    top: 1.05em;
    left: 1.5em;
    color: #fff;
}

.cart-empty__content{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 15px;
    padding: 70px 0px;
}

.cart-empty__content .return-to-shop{
    width: fit-content;
    margin-top: 10px;
}

.cart-empty__content .return-to-shop a{
    color: #fff;
}

.wc-empty-cart-message .cart-empty{
    color: #000000;
    font-weight: 500;
    text-align: center;
}

.wc-proceed-to-checkout .button.checkout-button {
    font-size: 14px !important;
    border: 1px solid #e67612;
    text-transform: uppercase;
    margin-bottom: 0px;
}

.update-cart-section{
    display: none;
}

@media(min-width: 490px){
    .after_product_list {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .cart_mainContent_wrapper {
        flex-direction: row;
    }

    .woocommerce_productCartList {
        width: 66%;
    }

    .cart_summary {
        width: 30%;
    }
}


/* ============================================== */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebebeb;
}

.cart-support {
    margin-bottom: 15px;
} 

@media (min-width: 1171px) {
    .cart-support {
        margin: 0px;
    }
}

.cart-summary, .cart-support {
    display: flex;
    flex-direction: column;
}

.cart-summary h4{
    color: #000000;
    font-weight: 600;
}

.cart-support h5 {
    color: #000000;
}

.cart-support a{
    font-weight: 600;
}

.cart-support h5 {
    color: #000000;
}

.cart-support a{
    font-weight: 600;
}

.shop_table {
    width: 100%;
    margin-top: 20px;
}

.shop_table th{
    color: #000;
    font-weight: 400;
}

.shop_table th, .shop_table td {
    padding-right: 10px;
    padding-left: 0;
    text-align: left;
    background-color: transparent;
}

.product-thumbnail {
    text-align: left;
    padding-left: 0;
}

.product-name {
    text-align: center;
}

.product-price, .product-quantity, .product-subtotal, .product-remove {
    text-align: center;
}

.product-remove a.remove {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: transparent;
    border: none;
    color: #e67612;
    cursor: pointer;
    font-size: 16px;
}

.product-remove a.remove i {
    font-size: 16px;
}

.product-quantity .qty {
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 42px;
    width: 100px;
    font-weight: 600;
    color: #6d6d6d;
    text-align: center;
    font-size: 16px;
}

.product-subtotal {
    color: #e67612;
}

.actions .after_product_list {
    display: flex;
    justify-content: space-between;
    /* flex-wrap: wrap; */
    padding: 15px 0;
}

#coupon_code {
    padding: 10px 0 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #ebebeb !important;
    color: #000000;
    width: fit-content;
}

.coupon-section {
    flex-basis: 100%;
}

.coupon-section p {
    cursor: pointer;
    text-decoration: underline;
    text-align: left;
}

.shop_table_responsive .shop_table tr{
    background-color: transparent !important;
}

.table.cart td.product-remove a.remove {
    top: -7.618047em;
}

.coupon-section.active .toggle-content {
    max-height: 200px;
}

.apply-coupon {
    border: 1px solid #e67612;
    background-color: white;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

body:not(.woocommerce-cart) .container:has(.woocommerce-info) {
    padding-left: 0px;
    padding-right: 0px;
}

.apply-coupon i {
    font-size: 13px;
    color: #e67612;
    padding-left: 5px;
    padding-right: 5px;
}

.apply-coupon:hover {
    background-color: #e67612;
    color: white;
}

.apply-coupon:hover i {
    color: white;
}

.update-cart {
    background-color: white;
    border: 1px solid #f5f5f5;
    text-transform: uppercase;
    padding: 10px 14px;
    font-size: 14px;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s;
}

.update-cart:hover {
    color: #e67612;
    background-color: transparent;
}

.update-cart i {
    margin-left: 5px;
}

.cart_tableHead th:first-child {
    text-align: left !important;
    padding-left: 0px;
}
table.shop_table_responsive tr td:first-child{
    padding-left: 0px;
}

.shop_table th, .shop_table tr, .shop_table tr td {
    background: #fff !important;
}

.cart_totals_div {
    width: 100% !important;
    /* margin-left: 10px !important;
    margin-right: 10px !important; */
    padding: 15px 20px;
    border: 1px dashed #d7d7d7;
    background-color: #f9f9f9;
    border-radius: 5px;
    /* margin-top: 32px; */
    margin-bottom: 15px !important;
}

.cart_totals_div .cart_totals_div--heading{
    font-weight: 600;
    font-size: 16px!important;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 10px;
    color: #000;
    font-weight: 600;
    margin-bottom: 20px;
}

.cart_totals_div .shop_table_responsive{
    width: 100%;
}

.cart_totals_div .shop_table_responsive .cart-discount--table-heading{
    text-align: left;
    font-weight: 400;
    padding: 0px 0px 10px 0px;
    background-color: transparent;
}

.cart_totals_div .shop_table_responsive .order-total .order-total-table-heading{
    display: flex;
}

.cart_totals_div .shop_table_responsive .order-total .order-total-table-heading,
.cart_totals_div .shop_table_responsive .cart-subtotal .cart-subtotal-table-heading,
.cart_totals_div .shop_table_responsive .cart-discount .cart-discount--table-heading,
.cart_totals_div .shop_table_responsive .shipping-total .shipping-total-table-heading,
.cart_totals_div .shop_table_responsive .gift-total .gift-total-table-heading,
.cart_totals_div .shop_table_responsive .tax-total .tax-total-table-heading{
    text-align: left;
    padding: 0px 0px 10px 0px;
    background-color: transparent;
    font-weight: 400;
    color: #000;
    font-size: 15px;
}

.cart_totals_div .shop_table_responsive .order-total .order-total-table-description{
    display: table-cell;
}

.cart_totals_div .shop_table_responsive .order-total .order-total-table-description,
.cart_totals_div .shop_table_responsive .gift-total .gift-total-table-description,
.cart_totals_div .shop_table_responsive .shipping-total .shipping-total-table-description{
    justify-content: space-between;
}

.woocommerce-cart-form__cart-item{
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 20px;
}

.woocommerce-cart-form__cart-item:last-child{
    border-bottom: none;
}

.cart_totals_div .shop_table_responsive .gift-total .gift-total-table-description,
.cart_totals_div .shop_table_responsive .gift-total .gift-total-table-heading{
    color: #e61212;
}

.cart_totals_div .shop_table_responsive .order-total .order-total-table-description, 
.cart_totals_div .shop_table_responsive .shipping-total .shipping-total-table-description,
.cart_totals_div .shop_table_responsive .gift-total .gift-total-table-description,
.cart_totals_div .shop_table_responsive .cart-subtotal .cart-subtotal-table-description,
.cart_totals_div .shop_table_responsive .cart-discount td, 
.cart_totals_div .shop_table_responsive .tax-total .tax-total-table-description{
    padding: 0px 0px 10px 0px;
    background-color: transparent;
    font-weight: 400;
    text-align: right;
    font-size: 15px;
}

.cart_totals_div .shop_table_responsive .free-shipping-info .free-shipping-info-table-description{
    padding: 10px 0px;
    background-color: transparent;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
}

.cart_totals_div .shop_table_responsive .free-shipping-info .free-shipping-info-table-description .woocommerce-Price-amount{
    margin: 0px 5px;
}

.cart_totals_div .wc-proceed-to-checkout{
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 20px;
}

.cart_totals_div .wc-proceed-to-checkout .button-continue-shopping{
    font-size: 14px;
    padding: 8px 0px;
    margin-bottom: 8px;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s;
    border-radius: 5px;
}

.cart_totals_div .wc-proceed-to-checkout .button-continue-shopping:hover{
    background-color: var(--primary-color);
    color: #ffffff;
}

.cart_totals_div .shipping-information-content{
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.cart_totals_div .shipping-information-content .shipping-information-delivery-date{
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    column-gap: 10px;
    margin-bottom: 0px;
}

.cart_totals_div .shipping-information-content .shipping-information-text{
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    padding: 8px 18px;
    margin-bottom: 0px;
    background-color: #e0f0e3;
    display: flex;
    align-items: center;
    column-gap: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.cart_totals_div .shipping-information-content .shipping-information-text svg{
    width: 25px;
    min-width: 25px;
}

.woocommerce-message i {
    display: none;
}

.woocommerce-message {
    color: #000;
}

.cart_mainContent_wrapper .woocommerce-message i {
    color: #000 !important;
    display: block !important;
    width: auto !important;
    margin-left: 7px;
}

.cart_mainContent_wrapper .woocommerce-message a.restore-item {
    color: #000 !important;
    width: auto !important;
}

.cart_mainContent_wrapper .custom_popup_add_to_cart {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.cart_mainContent_wrapper .custom_popup_add_to_cart .restore-item {
    margin-left: 10px;
    margin-right: 5px;
    color: #000;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
}

.cart_mainContent_wrapper .custom_popup_add_to_cart .restore-item:hover {
    color: #e67612 !important;
}

.cart_mainContent_wrapper .custom_popup_add_to_cart a.restore-item:hover .fa-undo {
    color: #e67612 !important;
}



/* Responsywność */
@media (max-width: 1170px) {
    .cart-header, .cart-summary {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .cart-header {
        padding-bottom: 15px;
    }

    .shop_table th, .shop_table td {
        padding-left: 10px;
    }

    .product-thumbnail, .product-name, .product-price, .product-quantity, .product-subtotal, .product-remove {
        text-align: left;
    }

    .actions .after_product_list {
        flex-direction: column;
    }

    .coupon-section {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .shop_table th, .shop_table td {
        padding-right: 5px;
        padding-left: 5px;
    }

    .product-name, .product-price, .product-quantity, .product-subtotal, .product-remove {
        display: block;
        text-align: left;
        padding-bottom: 10px;
    }

    .product-remove {
        text-align: right;
    }

    .product-quantity .qty {
        width: 100%;
    }
}
