/**
 * TODO: After move to webpack check this file if it's not a copy of other file.
 * TODO: If above is true, then make it reusable to avoid duplications.
 */

/* Common styles with `fastdelivery` module */

#bs24-fastdelivery-section {
    background-color: #F5F3F0;
    padding: 1rem;
}

#bs24-fastdelivery-section .products {
    display: flex;
    justify-content: center !important;
}

#bs24-fastdelivery-section .product-list-reviews {
    display: none;
}

#bs24-fastdelivery-section .all-product-link {
    display: none;
}

#bs24-fastdelivery-section .h2 {
    text-align: center;
    align-items: flex-end;
    color: black;
    animation: colorChange 2.5s ease-in-out 3.5s infinite;
    transition: color 3s ease;
}

/* Animacja dla poszczególnych literek */
#bs24-fastdelivery-section .h2:nth-child(1) {
    animation-delay: 0s;
}
#bs24-fastdelivery-section .h2:nth-child(2) {
    animation-delay: 0.8s;
}
#bs24-fastdelivery-section .h2:nth-child(3) {
    animation-delay: 1.8s;
}

@keyframes colorChange {
    0%, 100% {
        color: #e07c35;
    }
    50% {
        color: rgba(221, 110, 66, 1);
    }
}

#bs24-fastdelivery-section .h2:hover{
    color: rgba(221, 110, 66, 1);
}  
  

#bs24-fastdelivery-section .thumbnail-container {
    background: none !important;
    border-radius: 0% !important;
}

#bs24-fastdelivery-section .product-miniature .product-title {
    height: 3rem;
}

#bs24-fastdelivery-section .product-miniature .product-title a  {
    color: black !important;
    font-style: normal;
    font-weight: 300;
    font-size: 13px;
    line-height: 150%;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    min-height: 39px;
    text-align: left;
    z-index: 2;
    position: relative;
}

#bs24-fastdelivery-section .product-description {
    background: none !important;
    border: 1px solid rgba(221, 110, 66, 1);
}

#bs24-fastdelivery-section .thumbnail-top::after {
    background: none !important;
}

#bs24-fastdelivery-section span.delivery-in-stock {
    display: flex !important;
    /* text-align: center !important; */
    text-align: left !important;
    justify-content: center !important;
}

#bs24-fastdelivery-section span.delivery-cost {
    display: flex !important;
    color: rgba(221, 110, 66, 1) !important;
    /* text-align: center !important;  */
    text-align: left !important;
    justify-content: center !important;
}
  
#bs24-fastdelivery-section .product-miniature .product-price-and-shipping {
    font-weight: 700 !important;
    color: #232323 !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

#bs24-fastdelivery-section .product-miniature .product-description {
    padding: 0.3rem;
}

#bs24-fastdelivery-section .product-price-and-shipping .payu-mini-installments-widget a {
    color: #232323 !important;
}

@media (max-width: 768px) {
    /*? WTF */
    /*
    #bs24-fastdelivery-section .h2 {
        text-align: left;
        align-items: flex-end;
    }

    #bs24-fastdelivery-section .h2 a {
        text-align: left;
        margin-left: 1rem;
        align-items: flex-end;
        color: black;
    }
    */
    /* ? end */

    #bs24-fastdelivery-section .thumbnail picture img {
        padding: 0;
    }

    #bs24-fastdelivery-section .product-miniature .product-title {
        height: auto;
    }

    #bs24-fastdelivery-section .product-price-and-shipping .payu-mini-installments-widget a { 
        text-align: left;
    }
}
