/* Site-wide cart shortcut, using the same burgundy and cream as the training buttons. */
a.ec-floating-cart {
  --ec-floating-cart-bottom: 24px;
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(var(--ec-floating-cart-bottom) + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  box-sizing: border-box;
  border: 2px solid #f1e9c7;
  border-radius: 50%;
  background: #960e4f;
  color: #fff;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(70, 24, 43, .2);
  transition: background-color .15s ease, box-shadow .15s ease;
}
a.ec-floating-cart[hidden] { display: none !important; }
a.ec-floating-cart:hover,
a.ec-floating-cart:focus-visible {
  background: #7b0b41;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(70, 24, 43, .28);
}
a.ec-floating-cart:focus-visible { outline: 3px solid #960e4f; outline-offset: 4px; }
.ec-floating-cart-icon { display: block; flex-shrink: 0; }
.ec-floating-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  box-sizing: border-box;
  border: 2px solid #960e4f;
  border-radius: 999px;
  background: #f1e9c7;
  color: #960e4f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
/* Keep this button clear of the site's existing scroll-to-top control. */
body:has(#ast-scroll-top.ast-scroll-to-top-right) a.ec-floating-cart { --ec-floating-cart-bottom: 88px; }
@media (max-width: 768px) {
  a.ec-floating-cart {
    --ec-floating-cart-bottom: 18px;
    right: calc(18px + env(safe-area-inset-right, 0px));
    width: 54px;
    height: 54px;
  }
  /* Leave room for WooCommerce's sticky checkout button on the mobile cart. */
  body.woocommerce-cart a.ec-floating-cart { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  a.ec-floating-cart { transition: none; }
}
