/**
 * Left-side floating cart (mirrors AI chat FAB on the right). Mobile-first.
 */
.mse-cart-fab {
  position: fixed;
  z-index: 440;
  left: max(12px, env(safe-area-inset-left, 0px));
  bottom: calc(88px + max(8px, env(safe-area-inset-bottom, 0px)));
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.mse-cart-fab--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6) translateY(12px);
}

.mse-cart-fab__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, #ff7a3d 0%, #fa5608 45%, #ea580c 100%);
  box-shadow:
    0 10px 28px rgba(250, 86, 8, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 0 3px rgba(30, 58, 138, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mse-cart-fab__btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 12px 32px rgba(250, 86, 8, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.mse-cart-fab__btn:active {
  transform: scale(0.96);
}

.mse-cart-fab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mse-cart-fab__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: border-box;
}

.mse-cart-fab--pulse .mse-cart-fab__btn {
  animation: mseCartFabPulse 0.55s ease;
}

@keyframes mseCartFabPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.mse-cart-fly {
  position: fixed;
  z-index: 500;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a3d, #fa5608);
  box-shadow: 0 2px 8px rgba(250, 86, 8, 0.6);
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .mse-cart-fab {
    left: max(20px, env(safe-area-inset-left, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }

  .mse-cart-fab__btn {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }
}
