/* Stepped checkout (Cart → Shipping Info → Payment).
   Only active when the admin switch is on and the assets are enqueued. */

.ext-sc-hidden {
    display: none !important;
}

/* ── Progress bar ─────────────────────────────────────────── */
.ext-sc-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0 0 30px;
}

/* On the cart page the bar sits at the top of the cart column, above the
   free-shipping bar / notices. */
.ext-sc-progress--cart {
    margin: 0 0 24px;
}

.ext-sc-progress__step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9a9a9a;
    line-height: 1;
    white-space: nowrap;
    transition: color .2s ease;
}

.ext-sc-progress__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e2e2;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.ext-sc-progress__step.is-active {
    color: #222;
}
.ext-sc-progress__step.is-active .ext-sc-progress__num {
    background: #F58220;
    border-color: #F58220;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(245, 130, 32, .18);
}

.ext-sc-progress__step.is-done {
    color: #222;
}
.ext-sc-progress__step.is-done .ext-sc-progress__num {
    background: #F58220;
    border-color: #F58220;
    color: #fff;
    font-size: 0; /* hide the digit; show a check instead */
}
.ext-sc-progress__step.is-done .ext-sc-progress__num::before {
    content: "\2713"; /* ✓ */
    font-size: 15px;
    line-height: 1;
}

/* Clickable (Cart) step gets a subtle affordance */
a.ext-sc-progress__step:hover {
    color: #F58220;
}

/* Connector line between steps — fills orange once the step is complete */
.ext-sc-progress__step:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: clamp(24px, 6vw, 64px);
    height: 2px;
    margin: 0 14px;
    background: #e2e2e2;
    vertical-align: middle;
    transition: background .2s ease;
}
.ext-sc-progress__step.is-done:not(:last-child)::after {
    background: #F58220;
}

/* ── Navigation ───────────────────────────────────────────── */
.ext-sc-nav--continue {
    margin-top: 22px;
}

/* Continue to Payment — brand orange, white text, full width (like Place Order). */
.ext-sc-continue.button.alt,
.ext-sc-continue.button.alt:focus {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #F58220 !important;
    border-color: #F58220 !important;
    color: #ffffff !important;
}
.ext-sc-continue.button.alt:hover {
    background-color: #e0741a !important;
    border-color: #e0741a !important;
    color: #ffffff !important;
}

/* Hide the theme's own "Back to cart" button in the Payment step — we render a
   single consistent one under Place Order instead. */
.ext-sc-step-2 .elementor-widget-wd_button {
    display: none !important;
}

/* Secondary buttons under the primary action:
   Step 1 → "Back to cart" (an <a>), Step 2 → "Back to shipping information" (a
   <button>). The <button> is forced to the same white/outline look with
   !important so the theme's default button styling can't override it. */
.ext-sc-backtocart,
.ext-sc-back-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 13px 18px;
    text-align: center;
    border: 2px solid #e2e2e2 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #333 !important;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.2;
    text-transform: none !important;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease, color .15s ease;
}
.ext-sc-backtocart:hover,
.ext-sc-back-btn:hover {
    background: #fff !important;
    border-color: #F58220 !important;
    color: #F58220 !important;
}

/* ── Client-side required-field highlight ─────────────────── */
.ext-sc-invalid input.input-text,
.ext-sc-invalid select,
.ext-sc-invalid textarea,
.ext-sc-invalid .select2-selection {
    border-color: #e2401c !important;
}

@media (max-width: 480px) {
    .ext-sc-progress {
        gap: 8px 10px;
    }
    .ext-sc-progress__step:not(:last-child)::after {
        width: 14px;
        margin-left: 6px;
    }
}
