/* Desktop */
@media all and (min-width: 1024px) {
    .cv_fixedbarbuybutton-mobile {
        display: none;
    }

    .cv_fixedbarbuybutton-desktop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px;
        background: #fff;
        transform: translateY(-110%);
        z-index: 99;
        transition: all .5s;
        box-shadow: 0px 3px 12px #00000017;
    }

    .cv_fixedbarbuybutton-desktop.shown {
        transform: translateY(0);
    }

    .cv_fixedbarbuybutton-desktop .container {
        display: flex;
        flex-flow: row;
        align-items: center;
        justify-content: space-between;
    }

    .cv_fixedbarbuybutton-desktop .part-1 {
        display: flex;
        flex-flow: row;
        align-items: center;
        width: 60%;
    }

    .cv_fixedbarbuybutton-desktop .product-title {
        margin: 0;
        max-width: 60%;
    }

    .cv_fixedbarbuybutton-desktop img {
        margin-right: 15px;
        border-radius: var(--border-radius);
        width: auto;
        height: 70px;
    }

    .cv_fixedbarbuybutton-desktop .part-2 {
        display: flex;
        flex-flow: row;
        align-items: stretch;
        justify-content: end;
        width: 40%;
        min-height: 50px;
    }

    .cv_fixedbarbuybutton-desktop .product-price {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: end;
    }

    .cv_fixedbarbuybutton-desktop .product-price-discount {
        display: flex;
        flex-flow: column;
        justify-content: end;
        margin-bottom: 8px;
    }

    .cv_fixedbarbuybutton-desktop .product-price-wrapper {
        display: flex;
        align-items: baseline;
    }

    .cv_fixedbarbuybutton-desktop .product-price:has(.product-price-discount) .current-price {
        position: relative;
        top: 2px;
    }

    .cv_fixedbarbuybutton-desktop .current-price {
        font-size: 1.25rem;
        font-weight: bold;
        line-height: 1;
        color: var(--headings-color);
    }

    .cv_fixedbarbuybutton-desktop .old-price {
        font-size: .8rem;
        color: var(--body-muted-color);
        text-decoration: line-through;
        margin-right: .75rem;
    }

    .cv_fixedbarbuybutton-desktop .discount-string {
        padding: 0.15rem 0.75rem;
        border-radius: var(--border-radius);
        background-color: var(--tertiary);
        font-size: 0.65rem;
        color: var(--text-on-tertiary);
        text-transform: uppercase;
    }

    .cv_fixedbarbuybutton-desktop .product-prices__wrapper {
        display: flex;
        flex-flow: row;
    }

    .cv_fixedbarbuybutton-desktop .btn {
        color: #fff !important;
        white-space: nowrap;
        margin-left: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile */
@media all and (max-width: 1024px) {
    .cv_fixedbarbuybutton-desktop {
        display: none;
    }

    .cv_fixedbarbuybutton-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 99;
        padding: 1.1rem 1rem;
        transform: translateY(100%);
        box-shadow: 0px -5px 12px #00000017;
        transition: all .5s;
    }

    .cv_fixedbarbuybutton-mobile.shown {
        transform: translateY(0);
    }

    .cv_fixedbarbuybutton-mobile .product-price {
        display: flex;
        flex-flow: row;
        margin-bottom: .9rem;
    }

    .cv_fixedbarbuybutton-mobile .current-price {
        font-size: 1.25rem;
        font-weight: bold;
        line-height: 1;
        color: var(--headings-color);
        margin-right: .75rem;
    }

    .cv_fixedbarbuybutton-mobile .old-price {
        font-size: .8rem;
        color: var(--body-muted-color);
        text-decoration: line-through;
        margin-right: .75rem;
    }

    .cv_fixedbarbuybutton-mobile .discount-string {
        padding: 0.15rem 0.75rem;
        border-radius: var(--border-radius);
        background-color: var(--tertiary);
        font-size: 0.65rem;
        color: var(--text-on-tertiary);
        text-transform: uppercase;
    }

    .cv_fixedbarbuybutton-mobile .product-prices__wrapper {
        display: flex;
        flex-flow: row;
    }

    .cv_fixedbarbuybutton-mobile .btn {
        display: block;
        color: #fff !important;
        white-space: nowrap;
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }
}

/* Fix */
.floating-view.visible {
    display: none !important;
}