.floating-cart-btn {
  position: fixed;
  right: 22px;
  /* --cookie-banner-h: height of the open cookie banner (cookie-consent.js), else 0. */
  bottom: calc(22px + var(--cookie-banner-h, 0px) + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 24px rgba(15, 107, 108, 0.32);
  z-index: 35;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(15, 107, 108, 0.35);
}

.floating-cart-btn:focus-visible {
  outline: 3px solid rgba(15, 107, 108, 0.35);
  outline-offset: 3px;
}

.floating-cart-btn__icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-cart-btn__badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #ef4444;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.page-cart .floating-cart-btn,
.page-checkout .floating-cart-btn {
  display: none;
}

@media (max-width: 760px) {
  .floating-cart-btn {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: calc(14px + var(--cookie-banner-h, 0px) + env(safe-area-inset-bottom, 0px));
  }
}
