.ex-cart-floating-bubble {
  position: fixed;
  right: max(var(--ex-cart-floating-right, 16px), env(safe-area-inset-right));
  bottom: max(var(--ex-cart-floating-bottom, 92px), env(safe-area-inset-bottom));
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #0f86e8 0%, #0b5ab5 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(7, 42, 89, 0.34);
  font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.ex-cart-floating-bubble--is-removing {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.96);
}

.ex-cart-floating-bubble:hover,
.ex-cart-floating-bubble:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(7, 42, 89, 0.4);
  filter: saturate(1.06);
  text-decoration: none;
}

.ex-cart-floating-bubble:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.ex-cart-floating-bubble__icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ex-cart-floating-bubble__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.ex-cart-floating-bubble__amount {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.1;
  white-space: nowrap;
}

.ex-cart-floating-bubble__amount .woocommerce-Price-amount {
  color: #ffffff;
}

.ex-cart-floating-bubble__count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 768px) {
  .ex-cart-floating-bubble {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    bottom: auto;
    padding: 9px 12px;
    min-height: 50px;
    max-width: calc(100vw - 24px);
  }

  .admin-bar .ex-cart-floating-bubble {
    top: max(58px, calc(env(safe-area-inset-top) + 46px));
  }

  .ex-cart-floating-bubble__amount {
    font-size: 14px;
  }
}
