/* Shared OptiGlobal actions are independent of the product-range palette. */
body.opti-store{--og-action:#242628;--og-action-hover:#3b3e41}
body.opti-store :is(.og-button,.button,.forminator-button,.wsp_button,input[type="submit"]):not(.og-button-facebook,.og-footer-contact,.og-why-hero-button,.og-why-soft-button,.og-button-soft,.og-button-outline,.is-soft,.disabled,:disabled),
body.opti-store .og-team-button,
body.opti-store .og-account-register,
body.opti-store .og-form-card .forminator-button-submit,
body.opti-store .og-retailer-invitation a.og-button,
body.opti-store .pma-portal-button:not(.is-soft),
body.opti-store .og-compare-table tbody td a.og-trade-register-price{
 background:var(--og-action)!important;color:#fff!important;
}
body.opti-store :is(.og-button,.button,.forminator-button,.wsp_button,input[type="submit"]):not(.og-button-facebook,.og-footer-contact,.og-why-hero-button,.og-why-soft-button,.og-button-soft,.og-button-outline,.is-soft,.disabled,:disabled):hover,
body.opti-store .og-team-button:hover,
body.opti-store .og-account-register:hover,
body.opti-store .og-form-card .forminator-button-submit:hover,
body.opti-store .og-retailer-invitation a.og-button:hover,
body.opti-store .pma-portal-button:not(.is-soft):hover,
body.opti-store .og-compare-table tbody td a.og-trade-register-price:hover{
 background:var(--og-action-hover)!important;color:#fff!important;
}
body.woocommerce-cart.opti-store .woocommerce :is(a.checkout-button.button,button.button):not(:disabled,.disabled){background:var(--og-action)!important;color:#fff!important}
body.woocommerce-cart.opti-store .woocommerce :is(a.checkout-button.button,button.button):not(:disabled,.disabled):hover{background:var(--og-action-hover)!important}
/* Catalogue navigation uses a neutral action for accessories; named ranges
   retain a deliberate product colour instead of the old universal blue tint. */
body.opti-store .og-menu-bottom>a:first-child{background:var(--og-action);color:#fff}
body.opti-store .og-menu-bottom>a:first-child:hover{background:var(--og-action-hover);color:#fff}
/* One neutral secondary action across the three product menus. */
body.opti-store .og-menu-bottom>a+a{background:#e9ecef;color:#242628}
body.opti-store .og-menu-bottom>a+a:hover{background:#dce1e5}
body.opti-store #menu-fuel .og-menu-bottom>a:first-child{background:#a52f32;color:#fff}
body.opti-store #menu-fuel .og-menu-bottom>a:first-child:hover{background:#872629}
body.opti-store #menu-batteries .og-menu-bottom>a:first-child{background:#0b57d0;color:#fff}
body.opti-store #menu-batteries .og-menu-bottom>a:first-child:hover{background:#0842a0}
/* Product actions keep their range colour, including their hover state. */
body.opti-store [data-brand-tone] :is([data-hero-link].og-button,.og-brand-button),
body.opti-store [data-brand-tone].og-product-overview :is(.single_add_to_cart_button,a.button.wsp_button):not(:disabled){
 background:var(--og-brand-action)!important;color:#fff!important;
}
body.opti-store [data-brand-tone] :is([data-hero-link].og-button,.og-brand-button):hover,
body.opti-store [data-brand-tone].og-product-overview :is(.single_add_to_cart_button,a.button.wsp_button):not(:disabled):hover{
 background:var(--og-brand-action-hover)!important;
}
body.opti-store [data-brand-tone="accessories"]{--og-brand-action:var(--og-action);--og-brand-action-hover:var(--og-action-hover)}
body.opti-store .og-product-card:not([data-brand-tone="fuel"],[data-brand-tone="wave"],[data-brand-tone="power"]){--og-card-action:var(--og-action);--og-card-hover:var(--og-action-hover)}
/* Price prompts in cards are text links, not filled action buttons. */
body.opti-store .og-product-card .og-card-price a.button.wsp_button,
body.opti-store .og-product-card .og-card-price a.button.wsp_button:hover{background:transparent!important;color:#5f6368!important}
body.opti-store :is(button.og-button,.forminator-button,.pma-portal-button):disabled{background:#e8eaed!important;color:#747775!important}
/* Existing disabled/soft controls, white-on-photo actions and Facebook identity
   keep their own surfaces. No commerce behaviour is changed. */

/* Signed-in account navigation, including the compact horizontal menu. */
.opti-store.logged-in.woocommerce-account .og-account-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
}
.og-account-menu a .og-icon {
    display: inline-flex;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}
.og-account-menu .og-icon svg { width: 100%; height: 100%; }
.opti-store.logged-in.woocommerce-account .og-account-menu .woocommerce-MyAccount-navigation-link--customer-logout a {
    background: var(--og-logout-fill, #eff1f3);
    color: inherit;
    font-weight: 500;
    justify-content: center;
    border-radius: 14px;
}
html[data-appearance="dark"] .og-account-menu { --og-logout-fill: #414851; }
.og-account-menu a:hover { text-decoration: underline; }
@media (min-width: 801px) {
    .opti-store.logged-in.woocommerce-account .og-account-menu li.woocommerce-MyAccount-navigation-link--customer-logout {
        margin-top: 12px;
    }
}

