.fon-sticky-atc-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--background-color, #fff);
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, .06);
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease
}

.fon-sticky-atc-bar.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0)
}

.fon-sticky-atc-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    max-width: 640px
}

.fon-sticky-atc-qty {
    display: flex;
    align-items: center;
    gap: .25rem
}

.woocommerce .fon-sticky-atc-qty .quantity .qty{
    width: 2rem !important;
    min-width: 2rem;
}

.woocommerce .fon-sticky-atc-qty button.minus:hover,
.woocommerce .fon-sticky-atc-qty button.plus:hover{
    padding: 0px;
}

.fon-sticky-atc-qty .minus,
.fon-sticky-atc-qty .plus {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    height: 40px;
    line-height: 1;
    padding: 0;
    text-align: center;
    width: 25px;
    border-radius: 4px
}

.fon-sticky-atc-qty .quantity {
    display: flex !important;
    align-items: center;
    margin: 0
}

.fon-sticky-atc-qty .qty {
    max-width: 110px;
    display: inline-block !important;
    visibility: visible !important;
    height: 40px
}

.fon-sticky-atc-bar .btn-surround {
    position: relative;
    display: flex
}

.fon-sticky-atc-bar .single_add_to_cart_button {
    position: relative;
    margin: 0;
    width: 100%
}

.fon-sticky-atc-bar #fon-sticky-atc-btn.is-loading {
    opacity: .9
}

.fon-sticky-atc-bar #fon-sticky-atc-btn.is-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .6);
    border-top-color: rgba(255, 255, 255, 1);
    animation: fon-spin .6s linear infinite
}

@keyframes fon-spin {
    to {
        transform: rotate(360deg)
    }
}

.fon-visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px
}

/* Product title in sticky ATC - hidden on mobile by default */
.fon-sticky-atc-title {
    display: none;
}

@media(min-width:768px) {
    .fon-sticky-atc-bar {
        padding: 1rem
    }

    .fon-sticky-atc-controls {
        max-width: none
    }

    .fon-sticky-atc-bar .single_add_to_cart_button {
        width: auto
    }

    /* Show product title on tablet/desktop */
    .fon-sticky-atc-title {
        color: #004269;
        display: flex;
        align-items: center;
        margin-right: 10px;
        font-weight: 400;
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
}
