/*
|--------------------------------------------------------------------------
| Wolf Sticky Product Cart
|--------------------------------------------------------------------------
*/

.wolf-sticky-product-cart {
    position: fixed;
    z-index: 9989;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    min-height: 64px;
    align-items: center;

    padding: 8px 20px;

    font-family: "Montserrat", sans-serif;

    background: rgba(255, 255, 255, .98);
    border-top: 1px solid #ededed;
    box-shadow: 0 -5px 22px rgba(0, 0, 0, .08);

    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 110%, 0);

    transition:
        transform .28s ease,
        opacity .28s ease;
}

.wolf-sticky-product-cart,
.wolf-sticky-product-cart * {
    box-sizing: border-box;
}

.wolf-sticky-product-cart.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.wolf-sticky-product-cart__inner {
    display: flex;
    width: 100%;
    max-width: 1170px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
}

.wolf-sticky-product-cart__product {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.wolf-sticky-product-cart__image {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    background-color: #f7f7f7;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    border: 1px solid #ededed;
    border-radius: 9px;

    opacity: 1;

    transition:
        opacity .18s ease,
        background-image .18s ease;
}

.wolf-sticky-product-cart__image.is-changing {
    opacity: .25;
}

.wolf-sticky-product-cart__image.is-changing {
    opacity: .25;
}

.wolf-sticky-product-cart__name {
    overflow: hidden;
    min-width: 0;
    max-width: 580px;

    color: #191919;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wolf-sticky-product-cart__button {
    position: relative;

    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin: 0;
    padding: 10px 24px;

    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;

    background: #e6002d;
    border: 1px solid #e6002d;
    border-radius: 999px;
    box-shadow: none;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.wolf-sticky-product-cart__button:hover {
    color: #fff;
    background: #c90027;
    border-color: #c90027;
    transform: translateY(-1px);
}

.wolf-sticky-product-cart__price,
.wolf-sticky-product-cart__price *,
.wolf-sticky-product-cart__price .amount {
    color: #fff;
    font-weight: 700;
}

.wolf-sticky-product-cart__price del {
    color: rgba(255, 255, 255, .72);
    opacity: 1;
}

.wolf-sticky-product-cart__price ins {
    color: #fff;
    text-decoration: none;
}

.wolf-sticky-product-cart__button.is-loading {
    min-width: 135px;
    color: transparent;
    opacity: .82;
    pointer-events: none;
}

.wolf-sticky-product-cart__button.is-loading * {
    color: transparent !important;
}

.wolf-sticky-product-cart__button.is-loading::after {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;

    content: "";

    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;

    animation:
        wolfStickyProductSpin
        .7s
        linear
        infinite;
}

@keyframes wolfStickyProductSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .wolf-sticky-product-cart {
        padding: 5px 12px 6px;
    }

    .wolf-sticky-product-cart__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .wolf-sticky-product-cart__product {
        justify-content: center;
        min-height: 40px;
    }

    .wolf-sticky-product-cart__image {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 7px;
    }

    .wolf-sticky-product-cart__name {
        max-width: calc(100vw - 80px);
        font-size: 12px;
    }

    .wolf-sticky-product-cart__button {
        width: min(65%, 360px);
        min-height: 38px;
        margin: 0 auto;
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wolf-sticky-product-cart,
    .wolf-sticky-product-cart__image,
    .wolf-sticky-product-cart__button {
        transition: none;
    }
}