/* Three header actions, scoped so cart drawers and sticky menus keep their behaviour. */
.store-menu-bar.sticky-header:not(.fixed) .onpc-header-actions { display: none; }
.store-menu-bar.sticky-header.fixed .sticky-menu-cart.onpc-header-actions .cart-dropdown > .dropdown-toggle {
    min-width: 108px;
    min-height: 64px;
    height: 64px;
    padding: 4px 0;
    gap: 0;
    border: 0 !important;
}
.store-menu-bar.sticky-header.fixed .sticky-menu-cart.onpc-header-actions .cart-dropdown .cart-txt {
    color: #0f5bd7 !important;
    font-size: 12px !important;
    font-family: inherit !important;
    text-shadow: none !important;
}
.store-menu-bar.sticky-header.fixed .sticky-menu-cart.onpc-header-actions .cart-dropdown .cart-count {
    margin: 0;
    background: transparent;
    color: #0f5bd7;
    border: 0;
    box-shadow: none;
}
:is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.8vw, 28px);
    color: #0f5bd7;
}
.onpc-header-actions .onpc-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 64px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #0f5bd7;
    text-decoration: none;
    flex-shrink: 0;
}
.onpc-header-actions .onpc-header-action svg,
:is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown .onpc-header-cart-symbol {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.onpc-header-actions .onpc-header-account-copy { display: grid; gap: 3px; white-space: nowrap; font-size: 13px; line-height: 1.2; text-align: left; }
.onpc-header-actions .onpc-header-account-copy strong { font-size: 14px; font-weight: 700; }
.onpc-header-actions .onpc-header-account-copy > span { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
:is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .header-dropdown-link { margin: 0; padding: 0; }
:is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown { margin: 0; padding: 0; }
:is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown > .dropdown-toggle {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 108px;
    min-height: 64px;
    gap: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #0f5bd7;
    box-shadow: none;
}
:is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown > .dropdown-toggle::after { display: none; }
:is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown .onpc-cart-icon { display: none; }
/* Preserve the existing live total and price formatting beneath the cart icon. */
:is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown .cart-txt {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: none;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: nowrap;
    color: #0f5bd7;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}
:is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown .cart-count {
    position: absolute;
    top: 5px;
    right: calc(50% - 27px);
    min-width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
    color: #0f5bd7;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
}
.onpc-header-actions .onpc-header-action:hover { color: #083d96; }
.onpc-header-actions .onpc-header-action:focus-visible,
:is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown > .dropdown-toggle:focus-visible { outline: 3px solid #0f5bd7; outline-offset: 3px; border-radius: 6px; }
@media (min-width: 992px) {
    .header-middle.store-header-middle > .container { gap: 20px; }
    .header-middle.store-header-middle .header-center { flex: 1; min-width: 0; }
    .header-middle.store-header-middle .header-right { flex: 0 0 auto; margin-left: 0; }
    .header-middle.store-header-middle .header-search { width: 100%; max-width: none; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .onpc-header-actions .onpc-header-account-copy { display: none; }
}
@media (max-width: 1199px) {
    .onpc-header-actions .onpc-header-account--signed-in { position: relative; }
    .onpc-header-actions .onpc-header-account--signed-in .onpc-header-account-copy {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        display: block;
        width: 48px;
        text-align: center;
        font-size: 10px;
        line-height: 1.3;
    }
    .onpc-header-actions .onpc-header-account--signed-in .onpc-header-account-copy strong { display: none; }
}
@media (max-width: 991px) {
    .header-middle.store-header-middle > .container { grid-template-columns: 44px minmax(56px, 1fr) auto; gap: 8px; }
    .header-middle.store-header-middle .header-left .logo,
    .header-middle.store-header-middle .header-left .logo img { width: 64px; max-width: 64px; height: 64px; }
    :is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions { gap: 2px; }
    .onpc-header-actions .onpc-header-account-copy { display: none; }
    .onpc-header-actions .onpc-header-action svg,
    :is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown .onpc-header-cart-symbol { width: 28px; height: 28px; flex-basis: 28px; }
    :is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown > .dropdown-toggle { min-width: 84px; padding: 4px 0; }
    :is(.header-middle.store-header-middle,.store-menu-bar) .onpc-header-actions .cart-dropdown .cart-txt { font-size: 10px; }
}
