/* Custom CSS for cart page quantity inputs */

/* Main quantity container */
.quantity {
    width: 100%;
    height: 50px;
}

/* Hide default input */
.quantity .input-text {
    display: none;
}

/* Custom quantity container */
.quantity .fb-quantity-container {
    display: flex;
    width: 100%;
    height: 100%;
    background: #fff;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    padding: 5px;
}

/* Child divs in container */
.fb-quantity-container > div {
    flex-basis: 32%;
    display: flex;
    justify-content: center;
    align-items: center;
} 

/* Quantity box styling */
.fb-quantity-box {
    flex-direction: column;
    font-family: inherit;
    flex-grow: 1;
    justify-content: space-between !important;
}

/* Quantity span */
.fb-quantity-span {
    width: 100%;
    font-size: 1.1rem;
    line-height: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

/* Text span below quantity */
.fb-text-span {
    font-size: .6rem !important;
    opacity: .9;
}

/* Button styling */
.fb-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* SVG transitions */
.fb-btn svg {
    transition: .2s ease;
}

.fb-btn:hover svg {
    fill: #d80000;
}

/* Hide minus SVG by default */
.fb-btn .minus_svg {
    display: none;
}

/* Loader animation for quantity span */
.fb-quantity-span .quantity-loader {
    --loader-width: 7px;
    width: var(--loader-width);
    --loader-color1: #000000b6;
    --loader-color2: rgba(105, 105, 105, 0.624);
    aspect-ratio: 1;
    border-radius: 50%;
    animation: loading 1s infinite linear alternate;
}

@keyframes loading {
    0%   { box-shadow: calc(3px + var(--loader-width)) 0 var(--loader-color1), calc(-1 * var(--loader-width) - 3px) 0 var(--loader-color2); background: var(--loader-color1); }
    33%  { box-shadow: calc(3px + var(--loader-width)) 0 var(--loader-color1), calc(-1 * var(--loader-width) - 3px) 0 var(--loader-color2); background: var(--loader-color2); }
    66%  { box-shadow: calc(3px + var(--loader-width)) 0 var(--loader-color2), calc(-1 * var(--loader-width) - 3px) 0 var(--loader-color1); background: var(--loader-color2); }
    100% { box-shadow: calc(3px + var(--loader-width)) 0 var(--loader-color2), calc(-1 * var(--loader-width) - 3px) 0 var(--loader-color1); background: var(--loader-color1); }
}