/*
 * Printo_HeaderUi - header presentation fixes.
 *
 *  1. Currency / language dropdown was opening behind the search bar.
 *  2. Cart button outline: square -> pill, matching the search field.
 *  3. Cart button hidden entirely while the cart is empty.
 *
 * Nothing here touches the search field's own rules or any cart behaviour.
 */

/* ------------------------------------------------------------------ 1 --
 * .header-search.desktop is position:relative with z-index:1100, so it
 * opens a stacking context. The switcher dropdown asked for z-index:999
 * but sat inside a z-index:auto parent, so it was resolved against the
 * root context and painted underneath the search bar. Lifting the
 * switcher itself above 1100 fixes it without altering the search bar.
 */
.header-switchers .header-button {
    position: relative;
    z-index: 1200;
}

.header-switchers .header-button ul {
    z-index: 1201;
}

/* ------------------------------------------------------------------ 2 --
 * The 1px #e4e4e4 outline lives on .header-minicart itself. A full pill
 * radius matches the rounded search field beside it.
 */
.header-minicart {
    border-radius: 999px;
}

/* Keep the open dropdown square-cornered; only the button is a pill. */
.header-minicart .skip-content {
    border-radius: 0;
}

/* ------------------------------------------------------------------ 3 --
 * Both minicart templates already stamp `no-count` on the link when the
 * quantity is zero, so the empty state is readable straight from markup.
 * :has() covers current browsers with no flash; headerui.v1.js mirrors it
 * onto .is-empty for anything older.
 */
.header-minicart:has(> a.skip-cart.no-count),
.header-minicart.is-empty {
    display: none !important;
}
