/*
 * Fallback styling for the free-shipping progress bar — only needed in
 * contexts that don't compile Tailwind (currently: the Luma-based Hyvä-Luma
 * checkout, theme Conte/luma-checkout). In Hyvä themes the Tailwind classes
 * in the phtml already cover everything.
 */
.devqon-freeshipping-bar {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 1rem 0;
}
.devqon-freeshipping-bar__inner {
    display: block;
    box-sizing: border-box;
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #111827;
}

/* Checkout variant: width and alignment exactly as specified — bar sits at
   the left edge of the form column (no centering), narrower than the page
   wrapper so it visually aligns with the checkout fields below. */
.devqon-freeshipping-bar--checkout {
    max-width: 400px;
    margin: 1rem 0;
    padding: 0 1rem;
    align-self: flex-start;
}
.devqon-freeshipping-bar--checkout .devqon-freeshipping-bar__inner {
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
}
.devqon-freeshipping-bar--checkout .devqon-freeshipping-bar__text {
    font-size: 1rem;
    line-height: 1.45;
}
.devqon-freeshipping-bar__text { margin: 0 0 0.5rem 0; }
.devqon-freeshipping-bar__text--reached { color: #047857; font-weight: 600; }
.devqon-freeshipping-bar__text strong { font-weight: 700; }
.devqon-freeshipping-bar__track {
    position: relative;
    height: 0.5rem;
    width: 100%;
    overflow: hidden;
    border-radius: 9999px;
    background: #e5e7eb;
}
.devqon-freeshipping-bar__fill {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    background: #00354E; /* Conte primary as default */
    transition: width 0.5s ease-out;
}
.devqon-freeshipping-bar__fill.bg-green-500 { background: #22c55e; }
.devqon-freeshipping-bar__fill.bg-primary { background: #00354E; }
