﻿
.sticky-buy.closed {
    transform: translateY(100%);
}

.sticky-buy {
    width: 100vw;
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 100;
    transition: transform 250ms ease-in-out;
    border-top: solid 1px #F4F4F4;
    background-color: white;
}

    .sticky-buy .text-container,
    .sticky-buy .quantity-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }

    .sticky-buy .units-wrapper {
        display: none !important;
    }

    .sticky-buy .button {
        width: 100%;
    }

        .sticky-buy .button.disabled {
            background-color: #BEBEBE !important;
            opacity: 1;
        }

    .sticky-buy p.title {
        display: none;
    }

    /* Quantity / Fav */
    .sticky-buy .units-selector {
        display: flex;
        align-items: center;
        margin: 3% -10px;
        font-size: 14px;
        color: #242424;
        font-family: 'Roboto';
        line-height: 26px;
    }

        .sticky-buy .units-selector.transparent {
            display: none;
        }

        .sticky-buy .units-selector * {
            display: inline-block;
        }

        .sticky-buy .units-selector .value {
            padding: 7px;
            width: 40px;
            height: 40px;
            text-align: center;
            border: 1px solid #BEBEBE;
        }

        .sticky-buy .units-selector > div {
            position: relative;
            background: white;
            width: 35px;
            height: 35px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sticky-buy .units-selector .plus:after,
        .sticky-buy .units-selector .minus:after,
        .sticky-buy .units-selector .plus:before {
            content: '';
            position: absolute;
            background: #242424;
        }

        .sticky-buy .units-selector > div:hover:after,
        .sticky-buy .units-selector > div:hover:before {
            background: #c30000;
        }


        .sticky-buy .units-selector .plus:after,
        .sticky-buy .units-selector .minus:after {
            height: 2px;
            width: 10px !important;
        }

        .sticky-buy .units-selector .plus:before {
            width: 2px;
            height: 10px !important;
        }

        .sticky-buy .units-selector p:last-child {
            margin-left: 12px;
        }

        .sticky-buy .units-selector .plus.inactive,
        .sticky-buy .units-selector .minus.inactive {
            background: #bebebe;
            pointer-events: none;
        }

    .sticky-buy .quantity-wrapper {
        display: flex;
        justify-content: space-between;
        /*align-items: center;*/
        align-items: flex-start;
        user-select: none;
        margin-bottom: 40px;
        flex-direction: row;
        gap: 10px;
    }

        .sticky-buy .quantity-wrapper.sold-out {
            justify-content: flex-end;
        }

        .sticky-buy .quantity-wrapper .units-wrapper {
            display: flex;
            column-gap: 30px;
            align-items: center;
        }

        .sticky-buy .quantity-wrapper .favorite {
            width: 30px;
            height: 27.53px;
            cursor: pointer;
        }

            .sticky-buy .quantity-wrapper .favorite .hover-red {
                transition: fill 250ms ease-in-out;
            }

            .sticky-buy .quantity-wrapper .favorite.active .hover-red,
            .sticky-buy .quantity-wrapper .favorite.hovered .hover-red {
                fill: #c30000;
            }

/* END of Quantity / Fav */

@media (min-width: 992px) {
    .sticky-buy {
        background-color: white;
        padding: 0 58px;
        max-width: 1600px;
        justify-content: space-between;
        align-items: center;
    }

        .sticky-buy p.title {
            margin: 0;
            font-size: 26px;
            height: fit-content;
            font-weight: 500;
            display: initial;
        }

        .sticky-buy .text-container {
            padding: 12px 5px 12px 44px !important;
            width: auto;
        }

        /*.sticky-buy .quantity-wrapper {
        display: block;
    }*/

        .sticky-buy .quantity-wrapper .units-wrapper {
            display: flex !important;
            margin-bottom: 20px;
        }

        .sticky-buy .quantity-wrapper .button {
            width: auto;
        }
}

@media(min-width:1200px) {
    .sticky-buy .quantity-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
        margin-bottom: 0;
        flex-direction: row;
    }

        .sticky-buy .quantity-wrapper .units-wrapper {
            margin-bottom: 0;
        }
}

@media (hover: hover) {
    .sticky-buy .quantity-wrapper .button:hover:before {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }
}
