/**
 *  - v2.1.15
 * 
 * Copyright (c) 2025
 * Licensed GPLv2+
 */
.ct-drawer-canvas[data-floating-bar=yes] .ct-floating-bar {
    opacity: 1;
    transform: translateY(0)
}

.ct-drawer-canvas[data-floating-bar=no] .ct-floating-bar {
    display: none
}

.ct-drawer-canvas[data-location=start] .ct-floating-bar {
    --top-position: calc(var(--admin-bar, 0px) + var(--theme-frame-size, 0px) + var(--header-sticky-offset, 0px) + var(--header-sticky-height-animated, var(--header-sticky-height, 0px) * (var(--sticky-shrink, 100) / 100)));
    position: fixed;
    z-index: 5;
    top: var(--top-position-override, var(--top-position));
    inset-inline: var(--theme-frame-size, 0px)
}

.ct-drawer-canvas[data-location=end][data-floating-bar=no] .ct-drawer-inner {
    --floating-bar-parent-height: 0px
}

.ct-floating-bar {
    display: flex;
    align-items: center;
    height: 70px;
    opacity: 0;
    box-shadow: var(--theme-box-shadow);
    transform: translateY(var(--translate-offset, -70px));
    transition: opacity .2s ease,transform .2s ease
}

.ct-floating-bar .ct-container {
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px
}

.ct-floating-bar section {
    display: flex;
    align-items: center;
    gap: 15px
}

.ct-floating-bar section p {
    --theme-content-spacing: 0
}

.ct-floating-bar section:last-child {
    justify-content: flex-end
}

.ct-floating-bar .ct-media-container {
    border-radius: 2px;
    max-width: 40px
}

.ct-floating-bar .ct-floating-bar-item-title {
    flex: 1;
    min-width: 0
}

.ct-floating-bar .product-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--theme-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.ct-floating-bar .product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: .5em
}

.ct-floating-bar :is(.price,.stock) {
    font-size: 12px;
    font-weight: 500
}

.ct-floating-bar .sale-price {
    justify-content: initial
}

.ct-floating-bar .stock:before {
    content: "/";
    margin-inline-end:.5em}

.ct-floating-bar form.cart {
    display: flex
}

.ct-floating-bar .quantity {
    font-size: 14px;
    margin-inline-end:10px;--quantity-height: 40px
}

.ct-floating-bar .quantity[data-type=type-1] {
    --quantity-width: 70px
}

.ct-floating-bar .quantity[data-type=type-2] {
    --quantity-width: 90px
}

.ct-floating-bar :is(.added_to_cart,.add_to_cart_button,.single_add_to_cart_button) {
    --theme-button-padding: 5px 20px;
    --theme-button-min-height: 40px
}

.ct-floating-bar .added_to_cart {
    margin-inline-start:10px}

.ct-floating-bar-content {
    min-width: 0
}

@media(max-width: 689.98px) {
    .ct-floating-bar-actions .quantity {
        display:none
    }

    .ct-floating-bar-actions :is(.added_to_cart,.single_add_to_cart_button,.product_type_variable.button) {
        min-width: 40px;
        max-width: 40px;
        font-size: 0 !important;
        --theme-button-padding: 0 5px;
        --theme-button-shadow: none;
        --theme-button-transform: none
    }

    .ct-floating-bar-actions :is(.added_to_cart,.single_add_to_cart_button,.product_type_variable.button):after {
        font-family: "woo";
        font-size: 15px;
        margin: 0 !important
    }

    .ct-floating-bar-actions .added_to_cart:after {
        content: ""
    }

    .ct-floating-bar-actions :is(.product_type_variable.button,.single_add_to_cart_button:not(.loading)):after {
        content: ""
    }
}
