/* Rollpix Free Shipping Progress Bar — plain CSS (Hyva compatible) */

.freeship-progress {
    --freeship-bar-color: #103856;
    --freeship-bar-bg: #add8e6;
    --freeship-price-color: #ff0000;

    padding: 15px;
    background-color: transparent;
    border-top: 1px solid #ccc;
}

@media screen and (min-width: 768px) {
    .freeship-progress {
        padding: 16px 0;
    }
}

.freeship-progress .freeship-text {
    color: #000;
    margin-bottom: 0;
    max-width: 100%;
}

.freeship-progress .freeship-text p {
    margin-bottom: 0;
}

.freeship-progress .freeship-text--pdp-qualifies p {
    color: #2e7d32;
    font-weight: 600;
}

.freeship-progress p.upsell {
    text-align: center;
}

@media screen and (min-width: 768px) {
    .freeship-progress p.upsell {
        text-align: left;
    }
}

.freeship-progress .freeship-price {
    color: var(--freeship-price-color);
    font-weight: 600;
}

.freeship-progress .freeship-bold {
    font-weight: 600;
}

.freeship-progress .freeship-progress-bar-wrapper {
    color: #000;
}

.freeship-progress .freeship-progress-bar-wrapper span {
    display: inline-block;
}

.freeship-progress .freeship-progress-bar-wrapper span.min {
    width: 17px;
}

.freeship-progress .freeship-progress-bar-wrapper span.max {
    width: 33px;
    text-align: right;
}

.freeship-progress .freeship-progress-bar-bg {
    background-color: rgba(0, 0, 0, .1);
    height: 8px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.freeship-progress .freeship-progress-bar-fill {
    height: 8px;
    display: block;
    border-radius: 3px;
    animation: shippingProgressBar 1.25s ease 1;
    transition: width .667s cubic-bezier(.37, .16, .22, .89);
}

.freeship-progress .freeship-progress-bar-progress {
    background: var(--freeship-bar-color);
}

.freeship-progress .freeship-progress-bar {
    margin: 0 auto;
    width: calc(100% - 58px);
    display: inline-block;
}

@-webkit-keyframes shippingProgressBar {
    0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
    to { -webkit-transform: translateX(0); transform: translateX(0); }
}

@keyframes shippingProgressBar {
    0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
    to { -webkit-transform: translateX(0); transform: translateX(0); }
}

/* Mini-cart compact variant */
.freeship-progress--mini {
    padding: 8px 15px;
    border-top: 1px solid #e0e0e0;
    border-bottom: none;
    font-size: 13px;
    line-height: 1.3;
}

.freeship-progress--mini p.upsell {
    margin-bottom: 6px;
    text-align: left;
    font-size: 13px;
}

.freeship-progress--mini .freeship-text-mini {
    margin: 0;
    font-size: 13px;
}

.freeship-progress--mini .freeship-mini-bar {
    background: rgba(0, 0, 0, .1);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.freeship-progress--mini .freeship-mini-bar-fill {
    height: 4px;
    display: block;
    border-radius: 2px;
    animation: shippingProgressBar 1.25s ease 1;
    transition: width .667s cubic-bezier(.37, .16, .22, .89);
}
