/* 
    Created on : Oct 25, 2018, 4:25:48 PM
    Author     : Artem Yuriev
*/

.upsell-product-item {
    width: 25%;
    padding: 5px;
    display: inline-grid;
}

.upsell-product-item .product-thumbnail {
    text-align: center;
    position: relative;
}

.upsell-product-item .product-thumbnail img {
    padding: 10px;
    margin: auto;
    width: 100%;
}

.upsell-product-item .product-thumbnail .upsell-button {
    display: none;
}

.upsell-product-item .product-thumbnail a:hover ~ .upsell-button,
.upsell-product-item .product-title:hover ~ .upsell-button,
.upsell-product-item .product-thumbnail .upsell-button:hover
{
    display: block;
    -webkit-animation: slide-down .3s ease-out;
    -moz-animation: slide-down .3s ease-out;
}

@-webkit-keyframes slide-down {
      0% { opacity: 0; -webkit-transform: translateY(-100%); }   
    100% { opacity: 1; -webkit-transform: translateY(0); }
}

@-moz-keyframes slide-down {
      0% { opacity: 0; -moz-transform: translateY(-100%); }   
    100% { opacity: 1; -moz-transform: translateY(0); }
}

.product-title p {
    min-height: 45px;
    text-align: center;
}

.upsellWrapper .upsell-product-item .product-thumbnail .upsell-image {
    position: relative;
    height: 300px;
    background-position: 50% 50%;
    background-repeat:   no-repeat;
    background-size:     cover;
}

.upsellThankyouWrapper .upsell-product-item .product-thumbnail .upsell-image {
    position: relative;
    height: 200px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.product-title a {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-wrapper {
    width: 100%;
    text-align: center;
}

.price-wrapper .price {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.upsell-button {
    top: 50%;
    width: 100%;
    text-align: center;
    position: absolute;
}

.upsellTitle {
    text-align: center;
    font-size: 26px;
}

.upsellTitle p {
    margin: 0px;
}

.upsellWrapper {
    text-align: center;
}

@media (max-width: 768px) {
    .upsellMobileWrapper {
        visibility: visible;
        height: auto;
        /*position: fixed;*/
        bottom: 0px;
        left: 0px;
        z-index: 1;
        background: #fff;
        /*box-shadow: 0px -2px 10px rgba(50, 50, 50, 0.35);*/
        width: 100%;
    }

    .upsellWrapper {
        visibility: hidden;
        height: 0px;
        display: none;
    }

    .upsell-product-mobile-item {
        padding: 5px;
        display: inline-block;
    }

    .upsell-product-mobile-item .product-mobile-thumbnail {
        text-align: center;
        position: relative;
        width: 50%;
        float: left;
    }

    .upsell-product-mobile-item .product-mobile-thumbnail img {
        padding: 10px;
    }

    .upsell-product-mobile-item .product-mobile-thumbnail .upsell-button {
        display: none;
    }

    .product-title p {
        text-align: center;
    }

    .upsell-fade {
        position: relative;
        height: 2.4em; /* exactly three lines */
    }

    .upsell-fade:after {
        content: "";
        text-align: right;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 70%;
        height: 1.2em;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
    }

    .price-wrapper {
        width: 100%;
        text-align: center;
    }

    .price-wrapper .price {
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }

    .upsell-mobile-button a {
        padding: 10px;
    }

    .upsellMobileWrapper .upsellTitle p {
        width: 100%;
        margin: 0px;
        overflow: hidden;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .upsellMobileWrapper .upsellTitle {
        padding-top: 15px;
        text-align: center;
        font-size: 26px;
    }

    .upsellThankyouMobileWrapper .upsellTitle {
        padding: 5px 15px;
        text-align: center;
        font-size: 16px;
    }

    .upsellThankyouMobileWrapper .upsellTitle p {
        margin: 10px 15px 0px; 
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        line-height: 1.2em;
        max-height: 2.4em;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .upsellWrapper {
        text-align: center;
    }

    .product-mobile-info {
        padding: 10% 0px;
        width: 50%;
        display: inline-block;
        text-align: left;
        padding-right: 5px;
        padding-left: 0px;
    }

    .product-mobile-info p {
        margin: 0px;
    }

    .slick-dots {
        margin: 0px;
    }

    .slick-dots button {
        background-color: unset;
        color: transparent;
    }

    .slick-dots button:hover {
        background-color: unset;
    }

    .slick-dots li {
        display: inline;
    }

    .upsell-woo-mobile-wrapper {
        text-align: center;
    }

    .upsell-woo-mobile-wrapper.slick-slider .slick-dots li button {
        padding-left: 15px;
        padding-right: 15px;
        color: transparent;
    }

    .upsell-woo-mobile-wrapper.slick-slider .slick-dots li button:before{
        font-family: 'slick';
        font-size: 6px;
        line-height: 20px;

        width: 20px;
        height: 20px;

        content: '•';
        text-align: center;

        opacity: .25;
        color: black;

        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .upsell-woo-mobile-wrapper.slick-slider .slick-dots li.slick-active button:before {
        opacity: .75;
        color: #434343;
    }
}

@media (min-width: 768px) {
    .upsellWrapper {
        visibility: visible;
        height: auto;
        text-align: center;
    }

    .upsellMobileWrapper {
        visibility: hidden;
        height: 0px;
        display: none;
    }

    .upsellThankyouMobileWrapper {
        visibility: hidden;
        height: 0px;
        display: none;
    }
}

.upsell-fade {
    position: relative;
    height: 2.4em;
}

.upsell-fade:after {
    content: "";
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 1.2em;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
}

.product-mobile-title a {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2em;
    height: 2.4em;
}

.hiddenProductUpsell {
    visibility: hidden;
    height: 0px;
    display: none;
}

.site {
    overflow-y: hidden;
}

.upsellDescription p {
    text-align: center;
}

/** thank you upsell **/
.upsellThankyouWrapper {
    position: fixed;
    width: 100%;
    padding-bottom: 0px;
    left: 0px;
    z-index: 1000;
    bottom: 0px;
}

.upsell-thankyou-items {
    text-align: center;
    padding: 15px 10px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px -2px 10px rgba(50, 50, 50, 0.35);
    width: 50%;
    background: #fff;
}

.close-thankyou-upsell {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: 300;
    font-family: Arial, monospace, sans-serif;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 30px;
    transition: opacity .3s, transform .3s;
    font-style: normal;
}

@media (max-width: 768px) {
    .upsellThankyouWrapper {
        display: none;
    }

    .upsellThankyouMobileWrapper {
        visibility: hidden;
        height: auto;
        position: fixed;
        height: auto;
        bottom: 70px;
        left: 0px;
        z-index: 1;
        background: #fff;
        box-shadow: 0px -5px 20px rgba(50, 50, 50, 0.35);
        width: 100%;
    }

    .upsellThankyouMobileWrapper .upsell-product-mobile-item .product-mobile-thumbnail .upsell-image {
        margin: 10px;
        position: relative;
        height: 140px;
        background-position: 50% 50%;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .upsellMobileWrapper .upsell-product-mobile-item .product-mobile-thumbnail .upsell-image {
        margin: 10% 10px 10% 0px;
        position: relative;
        height: 160px;
        background-position: 50% 50%;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .upsell-thankyou-woo-mobile-wrapper.slick-slider .slick-dots li {
        margin: 0px;
    }

    .upsell-thankyou-woo-mobile-wrapper.slick-slider .slick-dots li button {
        padding-left: 10px;
        padding-right: 10px;
        color: transparent;
        margin: 0px;
    }

    .upsell-thankyou-woo-mobile-wrapper.slick-slider .slick-dots li button {
        margin: 0px;
    }

    .upsell-thankyou-woo-mobile-wrapper.slick-slider .slick-dots li button:before {
        font-family: 'slick';
        font-size: 6px;
        line-height: 20px;

        width: 20px;
        height: 20px;

        content: '•';
        text-align: center;

        opacity: .25;
        color: black;

        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .upsell-thankyou-woo-mobile-wrapper.slick-slider .slick-dots li.slick-active button:before {
        opacity: .75;
        color: #434343;
    }

    .upsell-thankyou-woo-mobile-wrapper .slick-dots {
        text-align: center;
    }
}

.upsell-thankyou-woo-mobile-wrapper .slick-dots li button:focus {
    outline-color: unset;
    outline: unset;
}