/* MusicBox 2.33.2 — ordenação à direita, menus de compras e orçamento independentes. */
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand) :is(
  .woocommerce-ordering,.wc-block-catalog-sorting,.wp-block-woocommerce-catalog-sorting,
  .wc-block-components-product-sort-select
){
  margin-left:auto!important;
  margin-right:0!important;
  margin-inline-start:auto!important;
  margin-inline-end:0!important;
  justify-self:end!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  max-width:100%!important;
  width:max-content!important;
  float:right!important;
}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand) :is(
  .woocommerce-ordering,.wc-block-catalog-sorting,.wp-block-woocommerce-catalog-sorting,
  .wc-block-components-product-sort-select
) select {max-width:100%!important;}
/* As duas gavetas partilham os estilos e o mesmo fundo de A minha conta. */
.mbx-storefront .mbx-cart-drawer,
.mbx-storefront .mbx-quote-drawer{right:0;left:auto;width:min(390px,100vw);transform:translateX(103%);border-left:1px solid #304153;}
.mbx-storefront.is-cart-open .mbx-cart-drawer,
.mbx-storefront.is-quote-open .mbx-quote-drawer{transform:translateX(0);visibility:visible;pointer-events:auto;}
.mbx-storefront .mbx-cart-summary,
.mbx-storefront .mbxq-header-link{appearance:none!important;border:0!important;cursor:pointer!important;background:transparent!important;color:#eaf1f7!important;padding:4px!important;margin:0!important;box-shadow:none!important;font:inherit!important;min-width:35px;}
.mbx-storefront :is(.mbx-cart-summary,.mbxq-header-link)[aria-expanded="true"],
.mbx-storefront :is(.mbx-cart-summary,.mbxq-header-link):hover {color:var(--mbx-accent,#719F41)!important;}
.mbx-storefront .mbx-drawer-panel-body{padding:19px 20px 32px;color:#e4edf6;}
.mbx-storefront .mbx-drawer-hint{font-size:12px;color:#b3c4cf;line-height:1.6;margin:0 0 17px;}
.mbx-storefront .mbx-drawer-products[aria-busy="true"]{opacity:.78;}
.mbx-storefront .mbx-drawer-items{display:flex;flex-direction:column;gap:0;}
.mbx-storefront .mbx-drawer-item{display:grid;grid-template-columns:68px minmax(0,1fr);gap:12px;padding:14px 0;border-bottom:1px solid #344558;align-items:center;}
.mbx-storefront .mbx-drawer-thumb{display:block;border-radius:8px;padding:4px;background:#fff;overflow:hidden;}
.mbx-storefront .mbx-drawer-thumb img{display:block;width:60px;height:60px;object-fit:contain;}
.mbx-storefront .mbx-drawer-item-detail{display:flex;flex-direction:column;gap:6px;min-width:0;}
.mbx-storefront .mbx-drawer-item-detail a{font-weight:700;font-size:13px;line-height:1.35;color:#f3f8fc!important;text-decoration:none!important;overflow-wrap:anywhere;}
.mbx-storefront .mbx-drawer-item-detail span{font-size:12px;color:#bccbd9;}
.mbx-storefront .mbx-drawer-subtotal{display:flex;justify-content:space-between;gap:12px;padding:17px 0;font-size:14px;}
.mbx-storefront .mbx-drawer-empty{font-size:14px;line-height:1.5;color:#bacbda;}
.mbx-storefront .mbx-drawer-primary,.mbx-storefront .mbx-drawer-secondary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;min-height:42px;padding:10px 14px;margin:12px 0 0;border-radius:9px;font-size:13px;font-weight:750;text-decoration:none!important;}
.mbx-storefront .mbx-drawer-primary{background:var(--mbx-accent,#719F41);color:#101a24!important;}
.mbx-storefront .mbx-drawer-secondary{border:1px solid #526674;color:#e4eff7!important;}
.mbx-storefront .mbx-drawer-primary:hover{filter:brightness(1.12);}
.mbx-storefront .mbx-drawer-secondary:hover{border-color:#719F41;color:#fff!important;}
/* Keep drawer, action icons and mobile search separate; do not change banner spacing. */
@media(max-width:767px){
  .mbx-storefront .mbx-cart-drawer,.mbx-storefront .mbx-quote-drawer{width:min(100vw,390px);}
  .mbx-storefront .mbx-actions{gap:4px!important;}
  .mbx-storefront .mbx-cart-summary,.mbx-storefront .mbxq-header-link{min-width:25px!important;padding:3px!important;}
}
