/* ==========================================================
   Super Farmers Free Shipping Bar
   In-House Delivery v2.0.5
   Isolated styles: sfifb-*
========================================================== */

.sfifb-wrap {
    --sfifb-green: #0b672c;
    --sfifb-green-2: #159443;
    --sfifb-green-soft: #e7f6e9;
    --sfifb-track: #eef0f2;
    --sfifb-border: #e7e9ec;
    --sfifb-label: #707986;

    width: 100%;
    direction: rtl;
    font-family: inherit;
    box-sizing: border-box;
}

.sfifb-wrap *,
.sfifb-wrap *::before,
.sfifb-wrap *::after {
    box-sizing: border-box;
}

.sfifb-card {
    width: 100%;
    padding: 0px 28px 0px;
    border: 1px solid var(--sfifb-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .035);
}

.sfifb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

}

.sfifb-message {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sfifb-message-text {
    color: #0a5726;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.sfifb-card.is-pending .sfifb-message-text {
    font-size: 20px;
    color: #254331;
}

.sfifb-message-text .woocommerce-Price-amount {
    color: var(--sfifb-green);
    font-weight: 800;
    white-space: nowrap;
}

.sfifb-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ddf3df;
    color: var(--sfifb-green);
}

.sfifb-check svg {
    display: block;
    width: 28px;
    height: 28px;
}

.sfifb-truck {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 96px;
    width: 96px;
    height: 76px;
    border-radius: 50%;
    color: var(--sfifb-green-2);
}

.sfifb-truck svg {
    display: block;
    width: 56px;
    height: 45px;
}

/* Progress */
.sfifb-progress {
    position: relative;
    width: 100%;
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--sfifb-track);
}

.sfifb-progress-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border-radius: inherit;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,.09) 0 10px,
            rgba(255,255,255,0) 10px 20px
        ),
        linear-gradient(90deg, #0b7e34 0%, #199d49 100%);
    transition: width .4s ease;
}

.sfifb-card.is-qualified .sfifb-progress-fill {
    width: 100% !important;
}

/* Totals */
.sfifb-totals {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.sfifb-total-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 9px;
    min-width: 0;
}

.sfifb-total-label {
    color: var(--sfifb-label);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
}

.sfifb-total-value {
    color: #075b28;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.sfifb-total-value .woocommerce-Price-amount {
    font-size: inherit;
}

.sfifb-total-value .woocommerce-Price-currencySymbol {
    font-size: .9em;
}

.sfifb-separator {
    display: block;
    width: 1px;
    height: 48px;
    background: #e2e5e8;
    margin: 10px;
}

/* Tablet */
@media (max-width: 900px) {
    .sfifb-card {
        padding: 20px;
    }

    .sfifb-message-text,
    .sfifb-card.is-pending .sfifb-message-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .sfifb-total-label {
        font-size: 12px;
    }

    .sfifb-total-value {
        font-size: 15px;
    }

    .sfifb-truck {
        flex-basis: 76px;
        width: 76px;
        height: 64px;
    }

    .sfifb-truck svg {
        width: 62px;
        height: 50px;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .sfifb-card {
        padding: 17px 15px 15px;
        border-radius: 14px;
    }

    .sfifb-head {
        gap: 10px;
        margin-bottom: 15px;
    }

    .sfifb-message {
        gap: 8px;
    }

    .sfifb-message-text,
    .sfifb-card.is-pending .sfifb-message-text {
        font-size: 15px;
    }

    .sfifb-check {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .sfifb-check svg {
        width: 20px;
        height: 20px;
    }

    .sfifb-truck {
        flex-basis: 54px;
        width: 54px;
        height: 48px;
    }

    .sfifb-truck svg {
        width: 46px;
        height: 38px;
    }

    .sfifb-progress {
        height: 11px;
        margin-bottom: 15px;
    }

    .sfifb-totals {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sfifb-separator {
        width: 100%;
        height: 1px;
    }

    .sfifb-total-item {
        justify-content: space-between;
    }

    .sfifb-total-label {
        font-size: 13px;
    }

    .sfifb-total-value {
        font-size: 17px;
    }
}
