/* Carrinho flutuante compacto — não cobre rodapé / CTAs. */
body.wx-public .cart-fab {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

body.wx-public .cart-fab.show {
  display: block;
}

body.wx-public .cart-fab.cart-fab--lift {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

body.wx-public .cart-fab-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.55rem 0.85rem 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--store-line, #DCE2EA);
  background: var(--store-action, #0B1220) !important;
  color: var(--store-action-text, #FFFFFF) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  font: inherit;
}

body.wx-public .cart-fab-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wevex-accent, #00D9A5) 70%, #fff);
  outline-offset: 3px;
}

body.wx-public .cart-fab-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

body.wx-public .cart-fab-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--wevex-accent, #00D9A5);
  color: #0B1220;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25rem;
  text-align: center;
}

body.wx-public .cart-fab-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

body.wx-public .cart-fab-meta [data-cart-total] {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.92;
  color: inherit !important;
}

/* Esconde barra larga legada se ainda existir em cache. */
body.wx-public .cartbar:not(.cart-fab) {
  display: none !important;
}

@media (min-width: 981px) {
  body.wx-public .cart-fab {
    right: 24px;
  }
  body.wx-public .cart-fab.cart-fab--lift {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
