/*!
 * Good Store — checkout + mini-cart visual fixes (2026-04-23)
 *
 * Loaded on:
 *   - every frontend page (mini-cart dropdown fix)
 *   - checkout_onepage_index + amscheckout_handle (progress bar contrast on dark header)
 *
 * Safe: all selectors are theme-scoped (.cart-dropdown, .main-header.clean-header),
 * no global side-effects.
 */

/* ============================================================================
 * 1. MINI-CART DROPDOWN — Georgian "შეკვეთის გაფორმება" button is longer than
 *    the English "Checkout" and collided with the subtotal price, cutting off
 *    the number. Convert bg-box to flex so label + button share width gracefully.
 * ========================================================================== */
.cart-dropdown .bg-box {
    position: relative;
    height: auto !important;
    min-height: 60px;
    padding: 12px 14px;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
}

.cart-dropdown .bg-box .subtotal {
    margin: 0 !important;
    line-height: 1.4 !important;
    flex: 0 1 auto;
    white-space: nowrap;
}

.cart-dropdown .bg-box a.button.sign-in,
.cart-dropdown li a.button.sign-in {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 16px !important;
    font-size: .875rem !important;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Ensure the subtotal price stays fully visible even on narrow dropdowns */
.cart-dropdown .subtotal .price {
    white-space: nowrap;
}

/* Dropdown itself: give it a bit more room for Georgian labels */
.cart-dropdown {
    min-width: 320px;
}

/* ============================================================================
 * 2. OSC / CHECKOUT PROGRESS BAR — on clean_header the background is dark
 *    (~#000); Intenso's default color #777 on black is unreadable. Lighten
 *    non-active text and strengthen the active highlight.
 * ========================================================================== */
.main-header.clean-header .checkout-progress li span {
    color: #d5d5d5;
}

.main-header.clean-header .checkout-progress li.active span {
    color: #ffffff;
    font-weight: 600;
}

.main-header.clean-header .checkout-progress li span:before {
    background: #6a6a6a;
    border: 2px solid rgba(255, 255, 255, .15);
    box-sizing: border-box;
}

.main-header.clean-header .checkout-progress li.active span:before {
    background: #27ccc0;
    border-color: rgba(39, 204, 192, .35);
    box-shadow: 0 0 0 3px rgba(39, 204, 192, .25);
}

.main-header.clean-header .checkout-progress li:before,
.main-header.clean-header .checkout-progress li span:after {
    background: #4a4a4a;
}

/* ============================================================================
 * 3. Mini-cart carousel pagination dots (Intenso slider) — they sat visually
 *    on top of the subtotal row. Give them dedicated spacing.
 * ========================================================================== */
.cart-dropdown .mini-products-wrapper+* .bx-pager,
.cart-dropdown .bx-pager {
    position: relative;
    margin: 6px 0 0;
    text-align: center;
}