/* Woo notices */
.woocommerce-message {
    background-color: #A692A0 !important;
    color: #ffffff;
}

/* Mobile sticky cart */
.sa-mobile-cart-sticky-slot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    pointer-events: none;
}

.sa-mobile-cart-sticky {
    display: none;
}

@media (max-width: 768px) {
    body.sa-mobile-cart-sticky-visible {
        padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    }

    .sa-mobile-cart-sticky.is-active {
        display: block;
        width: 100%;
        padding: 0 0 env(safe-area-inset-bottom, 0px);
        background: #A692A0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14);
        pointer-events: auto;
    }

    .sa-mobile-cart-sticky.is-empty,
    .sa-mobile-cart-sticky[data-empty="1"],
    .sa-mobile-cart-sticky[hidden] {
        display: none !important;
    }

    .sa-mobile-cart-sticky__link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        padding: 14px 18px;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
    }

    .sa-mobile-cart-sticky__link:hover,
    .sa-mobile-cart-sticky__link:focus {
        color: #fff;
    }
}

/* Free shipping bar */
.sa-free-shipping-bar-slot {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 31;
    line-height: 1;
    background: #fff;
    border-bottom: 1px solid rgba(69, 70, 89, 0.08);
    min-height: 44px;
    box-sizing: border-box;
}

.sa-free-shipping-bar-slot.is-empty,
.sa-free-shipping-bar-slot[hidden] {
    display: none !important;
    min-height: 0;
    border: 0;
    background: transparent;
}

.sa-free-shipping-bar {
    width: 100%;
    margin: 0 !important;
    padding: 6px 14px 7px;
    box-sizing: border-box;
    border-radius: 0;
    background: #454659;
    color: #fff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sa-free-shipping-bar.is-complete {
    background: #2e7d32;
}

.sa-free-shipping-bar__text {
    margin: 0 0 5px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.sa-free-shipping-bar__text strong {
    font-weight: 700;
}

.sa-free-shipping-bar__track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.sa-free-shipping-bar__fill {
    display: block;
    height: 100%;
    width: 0;
    background: #A692A0;
    transition: width 0.35s ease;
}

.sa-free-shipping-bar.is-complete .sa-free-shipping-bar__fill {
    background: #ffffff;
}

.sa-free-shipping-bar.sa-free-shipping-bar--flash {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Free shipping toast */
.sa-free-shipping-toast-slot {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100010;
    pointer-events: none;
}

.sa-free-shipping-toast {
    width: min(360px, calc(100vw - 24px));
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: #454659;
    color: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    transform: translateY(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.25s ease;
    pointer-events: auto;
    line-height: 1.25;
}

.sa-free-shipping-toast.is-complete {
    background: #2e7d32;
}

.sa-free-shipping-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sa-free-shipping-toast__content {
    flex: 1 1 auto;
    min-width: 0;
}

.sa-free-shipping-toast__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 20px 4px 0;
}

.sa-free-shipping-toast__sub {
    font-size: 12px;
    opacity: 0.92;
    margin: 0;
}

.sa-free-shipping-toast__close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
}

.sa-free-shipping-toast__close:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .sa-free-shipping-bar-slot {
        min-height: 40px;
    }

    .sa-free-shipping-bar {
        padding: 5px 10px 6px;
    }

    .sa-free-shipping-bar__text {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .sa-free-shipping-toast-slot {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    body.sa-mobile-cart-sticky-visible .sa-free-shipping-toast-slot {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    }

    .sa-free-shipping-toast {
        width: 100%;
        padding: 13px 13px 11px;
        border-radius: 12px;
    }

    .sa-free-shipping-toast__title {
        font-size: 13px;
    }

    .sa-free-shipping-toast__sub {
        font-size: 11px;
    }
}
