/* Atalhos flutuantes opcionais da Amaro — independentes de shortcodes e Elementor. */
.amaro-floating-actions {
  position: fixed;
  right: 18px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0;
  margin: 0;
  pointer-events: none;
}
.amaro-floating-actions .amaro-floating-cart,
.amaro-floating-actions .amaro-floating-whatsapp {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 19px #0b234a35;
  transition: transform .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
  pointer-events: auto;
}
.amaro-floating-actions .amaro-floating-cart {
  background: var(--amaro-floating-cart, #071e41);
}
.amaro-floating-actions .amaro-floating-whatsapp {
  background: var(--amaro-floating-whatsapp, #19c965);
}
.amaro-floating-actions .amaro-floating-cart:hover,
.amaro-floating-actions .amaro-floating-whatsapp:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 9px 23px #0b234a42;
}
.amaro-floating-actions .amaro-floating-cart:hover,
.amaro-floating-actions .amaro-floating-cart:focus-visible {
  background: var(--amaro-floating-cart-hover, #123765);
}
.amaro-floating-actions .amaro-floating-whatsapp:hover,
.amaro-floating-actions .amaro-floating-whatsapp:focus-visible {
  background: var(--amaro-floating-whatsapp-hover, #0da951);
}
.amaro-floating-actions .amaro-floating-cart:focus-visible,
.amaro-floating-actions .amaro-floating-whatsapp:focus-visible {
  outline: 3px solid #ffce24;
  outline-offset: 4px;
}
.amaro-floating-actions .amaro-floating-cart svg,
.amaro-floating-actions .amaro-floating-whatsapp svg {
  display: block;
  width: 27px;
  height: 27px;
  color: #fff;
  fill: none;
  stroke: currentColor;
}
.amaro-floating-actions .amaro-floating-whatsapp svg { width: 30px; height: 30px; }
.amaro-floating-actions .amaro-floating-count {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ed2339;
  color: #fff;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: 0;
  box-shadow: 0 1px 3px #0b234a20;
}
.amaro-floating-actions .amaro-floating-count[hidden] { display: none !important; }

/* Evita duplicar a barra fixa de carrinho da versão original em celulares. */
body.amaro-floating-cart-enabled .amaro-original .mobile-cart { display: none !important; }

@media (max-width: 580px) {
  .amaro-floating-actions { right: 15px; bottom: max(20px, env(safe-area-inset-bottom)); gap: 14px; }
  .amaro-floating-actions .amaro-floating-cart,
  .amaro-floating-actions .amaro-floating-whatsapp { width: 55px; height: 55px; min-width: 55px; min-height: 55px; flex-basis: 55px; }
  .amaro-floating-actions .amaro-floating-cart svg { width: 25px; height: 25px; }
  .amaro-floating-actions .amaro-floating-whatsapp svg { width: 29px; height: 29px; }
  body:not(.amaro-floating-cart-enabled) .amaro-floating-actions { bottom: max(98px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .amaro-floating-actions .amaro-floating-cart,
  .amaro-floating-actions .amaro-floating-whatsapp { transition: none; }
}
