/**
 * 2026 ALCALINK E-COMMERCE & SEO, S.L.L.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * @author    ALCALINK E-COMMERCE & SEO, S.L.L. <info@alcalink.com>
 * @copyright 2026 ALCALINK E-COMMERCE & SEO, S.L.L.
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 *
 * Registered Trademark & Property of ALCALINK E-COMMERCE & SEO, S.L.L.
 */
.alca-sticky-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1010;
    width: var(--alca-sticky-mobile-width, 100%);
    margin: 0 auto;
    transform: translateY(0);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.alca-sticky-cart .tax-shipping-delivery-label {
    display: none;
}

.alca-sticky-cart.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
}

.alca-sticky-cart__inner {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .06);
    padding: .75rem 1rem;
}

.alca-sticky-cart__left {
    min-width: 0;
}

.alca-sticky-cart__right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.alca-sticky-cart__form {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.alca-sticky-cart__qty {
    flex: 0 0 auto;
    min-width: 132px;
    --alca-sticky-qty-height: 44px;
    --alca-sticky-qty-button-width: 42px;
    --alca-sticky-qty-input-width: 48px;
    --alca-sticky-qty-border-width: 1px;
}

.alca-sticky-cart__qty .bootstrap-touchspin {
    width: auto;
    min-width: 0;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow: hidden;
    border: var(--alca-sticky-qty-border-width) solid var(--alca-sticky-qty-border-color, #111111);
    border-radius: var(--alca-sticky-qty-radius, 999px);
    background: #fff;
    box-shadow: none;
}

.alca-sticky-cart__qty .bootstrap-touchspin .form-control {
    min-width: var(--alca-sticky-qty-input-width);
    width: var(--alca-sticky-qty-input-width);
    max-width: var(--alca-sticky-qty-input-width);
    flex: 0 0 var(--alca-sticky-qty-input-width);
    height: var(--alca-sticky-qty-height);
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--alca-sticky-qty-text-color, #111111);
    font-size: var(--alca-sticky-qty-font-size, 18px);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.alca-sticky-cart__qty .bootstrap-touchspin .form-control::-webkit-inner-spin-button,
.alca-sticky-cart__qty .bootstrap-touchspin .form-control::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.alca-sticky-cart__qty .bootstrap-touchspin .input-group-btn,
.alca-sticky-cart__qty .bootstrap-touchspin .input-group-btn-vertical {
    display: flex;
    flex: 0 0 auto;
}

.alca-sticky-cart__qty .btn-touchspin {
    min-width: var(--alca-sticky-qty-button-width);
    width: var(--alca-sticky-qty-button-width);
    height: var(--alca-sticky-qty-height);
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--alca-sticky-qty-icon-color, #111111);
    font-size: calc(var(--alca-sticky-qty-font-size, 18px) * 1.1);
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.alca-sticky-cart__qty .alca-touchspin-symbol,
.alca-sticky-cart__qty .alca-touchspin-icon,
.alca-sticky-cart__qty .alca-touchspin-material {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--alca-sticky-qty-icon-color, #111111);
    font-style: normal;
    font-size: calc(var(--alca-sticky-qty-font-size, 18px) * 1.05);
    line-height: 1;
}

.alca-sticky-cart__qty .alca-touchspin-material {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: calc(var(--alca-sticky-qty-font-size, 18px) * 1.1);
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.alca-sticky-cart__qty .alca-touchspin-icon::before {
    display: block;
}

.alca-sticky-cart__qty .alca-touchspin-icon-up::before {
    content: '+';
}

.alca-sticky-cart__qty .alca-touchspin-icon-down::before {
    content: '−';
}

.alca-sticky-cart__qty .alca-touchspin-material-up::before,
.alca-sticky-cart__qty .alca-touchspin-material-down::before {
    display: block;
}

.alca-sticky-cart__qty .alca-touchspin-material-up::before {
    content: 'keyboard_arrow_up';
}

.alca-sticky-cart__qty .alca-touchspin-material-down::before {
    content: 'keyboard_arrow_down';
}

.alca-sticky-cart__qty .btn-touchspin:hover,
.alca-sticky-cart__qty .btn-touchspin:focus,
.alca-sticky-cart__qty .btn-touchspin:active {
    background: rgba(17, 17, 17, .06);
    color: var(--alca-sticky-qty-icon-color, #111111);
    box-shadow: none;
    outline: 0;
}

.alca-sticky-cart__qty .bootstrap-touchspin:focus-within {
    box-shadow: 0 0 0 2px rgba(17, 17, 17, .08);
}

.alca-sticky-cart__qty--horizontal .bootstrap-touchspin .input-group-btn {
    display: inline-flex;
}

.alca-sticky-cart__qty--horizontal .bootstrap-touchspin .bootstrap-touchspin-down,
.alca-sticky-cart__qty--horizontal .bootstrap-touchspin .bootstrap-touchspin-up {
    border-radius: 0;
}

.alca-sticky-cart__qty--horizontal .bootstrap-touchspin .bootstrap-touchspin-down {
    border-right: 0px;
}

.alca-sticky-cart__qty--horizontal .bootstrap-touchspin .bootstrap-touchspin-up {
    border-left: 0px;
}

.alca-sticky-cart__qty--vertical {
    min-width: 92px;
}

.alca-sticky-cart__qty--vertical .bootstrap-touchspin {
    min-width: 92px;
}

.alca-sticky-cart__qty--vertical .bootstrap-touchspin .form-control {
    min-width: 48px;
    width: 48px;
    max-width: 48px;
}

.alca-sticky-cart__qty--vertical .bootstrap-touchspin .input-group-btn-vertical {
    width: 42px;
    flex-direction: column;
    border-left: var(--alca-sticky-qty-border-width) solid var(--alca-sticky-qty-border-color, #111111);
}

.alca-sticky-cart__qty--vertical .bootstrap-touchspin .btn-touchspin {
    min-width: 42px;
    width: 42px;
    height: calc(var(--alca-sticky-qty-height) / 2);
    padding: 0;
    font-size: calc(var(--alca-sticky-qty-font-size, 18px) * .9);
}

.alca-sticky-cart__qty--vertical .bootstrap-touchspin .bootstrap-touchspin-up {
    border-top-right-radius: var(--alca-sticky-qty-radius, 999px);
    border-bottom: var(--alca-sticky-qty-border-width) solid var(--alca-sticky-qty-border-color, #111111);
}

.alca-sticky-cart__qty--vertical .bootstrap-touchspin .bootstrap-touchspin-down {
    border-bottom-right-radius: var(--alca-sticky-qty-radius, 999px);
}

.alca-sticky-cart__btn.btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: var(--alca-sticky-button-font-size-desktop, 1rem);
    text-transform: none;
}

.alca-sticky-cart__btn .button-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.alca-sticky-cart.is-cart-icon-desktop-hidden .alca-sticky-cart__btn .button-cart {
    display: none;
}

.alca-sticky-cart .product-prices {
    margin: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    align-content: flex-start;
}

.alca-sticky-cart .product-prices .product-discount {
    margin-left: 0;
}

.alca-sticky-cart .product-discount .regular-price {
    margin-right: 0;
    font-size: var(--alca-sticky-regular-price-font-size, 0.85rem);
}

.alca-sticky-cart .current-price {
    font-size: var(--alca-sticky-current-price-font-size, 1rem);
}

.alca-sticky-cart .has-discount .discount {
    font-size: var(--alca-sticky-discount-label-font-size, 0.85rem);
}

.alca-sticky-cart.is-discount-label-hidden .has-discount .discount {
    display: none;
}

body.has-alca-sticky-cart#product #footer,
body.has-alca-sticky-cart#product .page-footer {
    padding-bottom: var(--alca-sticky-mobile-space, 0);
}

@media (max-width: 767px) {
    .alca-sticky-cart.is-behavior-desktop_only {
        display: none !important;
    }

    .alca-sticky-cart {
        max-width: none;
    }

    .alca-sticky-cart__inner {
        border-radius: 0;
    }

    .alca-sticky-cart__left.is-mobile-price-hidden {
        display: none;
    }

    .alca-sticky-cart__btn.btn {
        font-size: var(--alca-sticky-button-font-size-mobile, 1rem);
    }

    .alca-sticky-cart.is-cart-icon-mobile-hidden .alca-sticky-cart__btn .button-cart {
        display: none;
    }

    .alca-sticky-cart.has-no-mobile-price .alca-sticky-cart__right,
    .alca-sticky-cart.has-no-mobile-price .alca-sticky-cart__form {
        width: 100%;
    }

    .alca-sticky-cart.has-no-mobile-price .alca-sticky-cart__form {
        align-items: stretch;
        justify-content: space-between;
        gap: .5rem;
    }

    .alca-sticky-cart.has-no-mobile-price .alca-sticky-cart__btn.btn {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        align-self: stretch;
    }
}

@media (min-width: 768px) {
    .alca-sticky-cart.is-behavior-mobile_only {
        display: none !important;
    }

    .alca-sticky-cart {
        bottom: var(--alca-sticky-desktop-offset, 24px);
        width: var(--alca-sticky-desktop-width, 420px);
        max-width: calc(100vw - 48px);
        left: 24px;
        right: auto;
    }

    .alca-sticky-cart.is-desktop-right {
        right: 24px;
        left: auto;
    }

    .alca-sticky-cart.is-desktop-left {
        left: 24px;
        right: auto;
    }

    .alca-sticky-cart__inner {
        border: 1px solid rgba(0, 0, 0, .06);
        border-radius: 40px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
        padding: .85rem 1rem;
    }
}

@media (max-width: 575px) {
    .alca-sticky-cart__inner {
        grid-template-columns: 1fr;
    }

    .alca-sticky-cart__right,
    .alca-sticky-cart__form {
        width: 100%;
    }

    .alca-sticky-cart__form {
        justify-content: space-between;
        align-items: stretch;
        gap: .5rem;
    }

    .alca-sticky-cart__qty {
        min-width: 120px;
        flex: 0 0 auto;
        --alca-sticky-qty-button-width: 38px;
        --alca-sticky-qty-input-width: 42px;
    }

    .alca-sticky-cart__btn.btn {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        align-self: stretch;
    }
}
