/* Minicarrinho isolado: sobrepõe apenas as ações de carrinho do cabeçalho. */
#fx-header .fx-cart-widget{position:relative;display:block;flex:none}
#fx-header .fx-cart-toggle{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:#062d62;box-shadow:none;cursor:pointer}
#fx-header .fx-cart-toggle>svg{width:24px;height:24px}
#fx-header .fx-cart-toggle:hover{background:#f2f6fa}
#fx-header .fx-cart-count-live{display:flex!important;position:absolute;top:0;right:0;min-width:18px;height:18px;padding:0 4px;align-items:center;justify-content:center;border-radius:12px;background:#ff6a13;color:#fff;font:700 11px/18px Arial,sans-serif}
#fx-header .fx-mini-cart[hidden]{display:none!important}
#fx-header .fx-mini-cart{box-sizing:border-box;position:absolute;z-index:200;top:100%;right:0;display:block;width:360px;max-width:calc(100vw - 32px);max-height:70vh;overflow-y:auto;padding:20px;background:#fff;color:#062d62;border:1px solid #dfe7ef;border-radius:12px;box-shadow:0 18px 50px #04234a29;font:400 14px/1.5 var(--fx-font,Arial,sans-serif);text-align:left}
#fx-header .fx-mini-cart-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
#fx-header .fx-mini-cart-heading strong{font-size:18px;font-weight:600}
#fx-header .fx-cart-close{display:block;width:32px;height:32px;padding:0;background:#f2f6fa;color:#062d62;border:0;border-radius:50%;font:400 24px/1 Arial,sans-serif;box-shadow:none}
#fx-header .fx-mini-cart ul{list-style:none;margin:0;padding:0}
#fx-header .fx-mini-cart li.mini_cart_item{position:relative;min-height:64px;padding:12px 24px 12px 0;margin:0;border-bottom:1px solid #edf1f4}
#fx-header .fx-mini-cart li a:not(.remove){display:block;white-space:normal;font-size:14px;line-height:1.4;font-weight:500;color:#062d62}
#fx-header .fx-mini-cart li img{float:left;width:50px;height:50px;object-fit:contain;margin:0 12px 6px 0}
#fx-header .fx-mini-cart li .quantity{display:block;font-size:13px;color:#52677e}
#fx-header .fx-mini-cart li a.remove{position:absolute;right:0;top:12px;display:block;width:20px;height:20px;text-align:center;line-height:20px}
#fx-header .fx-mini-cart .woocommerce-mini-cart__total{display:flex;justify-content:space-between;margin:18px 0;font-size:16px}
#fx-header .fx-mini-cart .woocommerce-mini-cart__buttons{display:none}
#fx-header .fx-mini-cart .woocommerce-mini-cart__empty-message{margin:8px 0 18px;font-size:14px}
#fx-header a.fx-cart-view{display:flex;justify-content:center;align-items:center;white-space:normal;padding:12px;background:#ff6a13;color:#fff;border-radius:6px;font-size:14px;font-weight:600}
#fx-header .fx-cart-toggle:focus-visible,#fx-header .fx-mini-cart a:focus-visible,#fx-header .fx-cart-close:focus-visible{outline:2px solid #ff6a13;outline-offset:3px}
@media(max-width:760px){
 body.page-template-template-home #fx-header .fx-header-actions{gap:10px}
 body.page-template-template-home #fx-header .fx-header-row{grid-template-columns:90px minmax(0,1fr) auto;gap:8px}
 #fx-header .fx-mini-cart{right:-34px}
}

/* A regra mobile das ações do cabeçalho escondia spans de preço do WooCommerce. */
#fx-header .fx-mini-cart .amount,#fx-header .fx-mini-cart .woocommerce-Price-currencySymbol{display:inline!important}

/* The product quantity control and Woo mini-cart summary share a class name.
 * A mini-cart quantity is plain text, so it must not inherit the input box. */
#fx-header .fx-mini-cart .mini_cart_item > span.quantity {
  display: block !important;
  position: static;
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 6px 0 0 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  color: #52677e;
  font: 400 13px/1.5 var(--fx-font, Arial, sans-serif);
  text-align: left;
  white-space: normal;
}

#fx-header .fx-mini-cart .mini_cart_item {
  display: flow-root;
  padding-right: 36px;
}

#fx-header .fx-mini-cart .mini_cart_item > a:not(.remove) {
  overflow-wrap: anywhere;
}

/* Mobile header rules hide label spans; Woo amounts must stay visible. */
#fx-header .fx-mini-cart .quantity .amount,
#fx-header .fx-mini-cart .woocommerce-mini-cart__total .amount {
  display: inline !important;
  white-space: nowrap;
}

#fx-header .fx-mini-cart .woocommerce-Price-currencySymbol {
  display: inline !important;
}

#fx-header .fx-mini-cart .woocommerce-mini-cart__total {
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

#fx-header .fx-mini-cart .mini_cart_item > a.remove {
  top: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  color: #a62b2b !important;
  background: #fff3f1;
}

#fx-header .fx-mini-cart .mini_cart_item > a.remove:hover {
  background: #ffe3dd;
}

#fx-header .fx-mini-cart .fx-cart-close {
  min-width: 36px;
  width: 36px;
  height: 36px;
}

#fx-header .fx-mini-cart {
  overscroll-behavior: contain;
  max-height: min(70vh, 640px);
  max-height: min(70dvh, 640px);
}

@media (max-width: 360px) {
  #fx-header .fx-mini-cart { padding: 16px; }
}
