/* Custom free shipping message styles */
.elementor-element.elementor-element-a578ec0.elementor-widget.elementor-widget-woocommerce-notices {
    margin-top: -30px;
}

div#custom-free-shipping-message-product {
    flex-direction: column;
}

div#custom-free-shipping-message {
    margin-bottom: -30px;
    
}

.cross-sells-description {
    line-height: 1.2em;
}

ul.products {
    margin-left: -10px;
}

li div#custom-free-shipping-message-product {
    display: none;
}

.cross-sells-h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 2.5em;
}

.woocommerce-loop-product__title {
    font-size: 13px;
}
img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail{
    height: auto;
    width: 100px;
}

.cross-sells-image {
    margin-right: 10px;
}

.cross-sells-h2 {
    font-size: 20px;
    font-weight: 600;
    color: #17479e;
    line-height: 3em;
}

#custom-free-shipping-message {
    margin-top: 20px;
}

.shipping-info {
    font-size: 12px;
    color: #888888;
    margin-top: -5px;
}

.progress-bar-container {
    margin-top: 10px;
}

.progress-bar-background {
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
}

.progress-bar {
    background-color: #17479e;
    height: 10px;
}

.cross-sells .products {
    display: flex;
    flex-direction: row-reverse;
    padding: 0px;
    margin-top: -20px;
}

.cross-sells .product {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    text-align: left; /* Align text to the left */
    margin: 10px; /* Add margin between products */
}

.cross-sells-content {
    display: flex;
    flex-direction: row;
    padding: 0px 20px;
}

.cross-sells .product a {
    display: block;
    margin-bottom: 10px;
}

.cross-sells .product h2 {
    font-size: 16px;
    margin: 0 0 10px;
}

.cross-sells .product .price {
    font-size: 14px;
    margin-bottom: 10px;
}

span.woocommerce-Price-amount.amount, .quantity {
    display: none;
}
span.wcsatt-sub-discount {
    display: none;
}

small.wcsatt-sub-options {
    display: none;
}

.cross-sells-type {
    padding: 1px 10px;
    margin: 10px 0px;
    background: rgba(23, 71, 158, 0.20);
    border-radius: 0px;
    font-size: 13px;
    width: 50%;
}


/* Ensure cross-sell buttons have the desired styles */
.cross-sells .product .button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #17479e;
    background-color: transparent;
    color: #17479e;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 0;
    align-self: flex-start; /* Align button to the left */
    padding: 10px;
    font-size: 13px;
}

.cross-sells .product .button:hover {
    background-color: #17479e;
    color: #fff;
}

/* Increase specificity to override .e-wc-message-notice .woocommerce-message .button */
.e-wc-message-notice .woocommerce-message .cross-sells .product .button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    border: 1.5px solid #17479e;
    background-color: transparent;
    color: #17479e;
    text-decoration: none;
    font-size: 13px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 10px;
    align-self: flex-end; /* Align button to the right */
    margin-right: 20px;
}

.e-wc-message-notice .woocommerce-message .cross-sells .product .button:hover {
    background-color: #17479e;
    color: #fff;
}



.cross-sells ul.products li.product {
    border-radius: 5px;
    margin: 10px!important; /* Ensure a margin between products */
    display: flex;
    flex-direction: column;
    padding-left: 20px; /* Add your left padding here */
    background-color: #fff;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px!important;
    justify-content: space-between;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .cross-sells ul.products {
        display: block;
    }

    .cross-sells ul.products li.product {
        margin: 10px 0; /* Adjust margin for mobile view */
    }

    .slick-list {
        overflow: visible;
    }

    .slick-slide {
        margin-right: 50px;
    }
    .slick-list.draggable {
        margin-left: -30px;
    }

    .cross-sells-type {
        width: 70%;
    }

}