/* T3 (F-010): the stock cart bubble (components/cart/cart-bubble) and the stock language/country picker
   ({{#localization_form}}, sections/header/components/locale-picker.html) in the owj header, styled to the
   owj header look. Stock classes untouched; owj classes are wrappers beside them. */

/* cart bubble = the old owj .cart-btn / .cart-n look */
.owj-bubble{display:flex}
.owj-bubble :where(theme-cart-bubble){display:flex}
.owj-bubble .cart-bubble > :is(a,button){position:relative;display:grid;place-items:center;width:46px;height:46px;padding:0;background:none;border:0;border-radius:8px;color:var(--white);cursor:pointer;text-decoration:none}
.owj-bubble .cart-bubble > :is(a,button):hover{color:var(--orange)}
/* the owj outline bag over the stock icon (same size and colour as the other header icons) */
.owj-bubble .cart-bubble > :is(a,button) > svg{display:none}
.owj-bubble .cart-bubble > :is(a,button)::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask:var(--owj-bag) center/contain no-repeat;mask:var(--owj-bag) center/contain no-repeat}
.owj-bubble{--owj-bag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 7h12l-1.2 12.2a1 1 0 0 1-1 .8H8.2a1 1 0 0 1-1-.8L6 7Z' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M9 9V6a3 3 0 0 1 6 0v3' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E")}
/* No fixed height: at 0 the stock count holds only whitespace, a block with no line box, so it is 0px tall and
   paints nothing; with a number its 19px line box gives the badge. :empty covers a count emptied by script. */
.owj-bubble .cart-bubble__count{position:absolute;top:4px;right:2px;display:block;min-width:19px;padding:0 4px;border-radius:10px;background:var(--orange);color:var(--black);font:700 calc(11px * var(--fs-b))/19px var(--b-font);text-align:center;overflow:hidden}
.owj-bubble .cart-bubble__count:empty{display:none}

/* language / country picker (renders only when the store has more than one) */
.owj-locale :where(.theme-locale-picker__inner){display:flex;gap:14px;align-items:center}
.owj-locale theme-dropdown-menu{position:relative;display:inline-flex}
.owj-locale .dropdown-menu__label{display:inline-flex;gap:6px;align-items:center;cursor:pointer;user-select:none;font:600 calc(14px * var(--fs-b))/1 var(--b-font);color:inherit}
.owj-locale .dropdown-menu__label:hover{color:var(--orange)}
.owj-locale .dropdown-menu__label:has(.dropdown-menu__trigger:focus-visible){outline:3px solid var(--orange);outline-offset:2px}
.owj-locale .dropdown-menu__label-text{white-space:nowrap}
.owj-locale .dropdown-menu__label-arrow{display:inline-flex;width:10px;height:10px;transition:transform .16s}
.owj-locale .dropdown-menu__label-arrow svg{width:100%;height:100%}
.owj-locale .dropdown-menu__trigger{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.owj-locale .dropdown-menu__label:has(.dropdown-menu__trigger:checked) .dropdown-menu__label-arrow{transform:rotate(-180deg)}
.owj-locale .dropdown-menu__list{position:absolute;top:calc(100% + 8px);right:0;z-index:45;display:none;min-width:180px;max-height:420px;margin:0;padding:8px 0;overflow-y:auto;list-style:none;background:var(--black);color:var(--white);border:1px solid var(--line-inv);border-radius:var(--r,12px);box-shadow:0 10px 30px -10px rgba(0,0,0,.6)}
.owj-locale .dropdown-menu__label:has(.dropdown-menu__trigger:checked) ~ .dropdown-menu__list{display:block}
.owj-locale .dropdown-menu__list-item{position:relative;display:flex;padding:8px 16px;cursor:pointer;white-space:nowrap;font:500 calc(14px * var(--fs-b))/1.4 var(--b-font)}
.owj-locale .dropdown-menu__list-item:hover,.owj-locale .dropdown-menu__list-item:has(:checked){color:var(--orange)}
.owj-locale .dropdown-menu__list-item:has(:focus-visible){outline:2px solid var(--orange);outline-offset:-2px}
.owj-locale-m{padding:16px 0 4px}
.owj-locale-m .dropdown-menu__list{top:auto;bottom:calc(100% + 8px);left:0;right:auto}
@media (max-width:900px){.owj-locale-d{display:none}}
@media (min-width:901px){.owj-locale-m{display:none}}
