.avs-cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f8f9fa;
  color: #333;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  transition: transform .15s ease, box-shadow .15s ease;
  user-select: none;
}

.avs-cart-badge:focus-visible {
  outline: 2px solid var(--avs-tertiary, #0d6efd);
  outline-offset: 2px;
}

.avs-cart-badge::after,
.avs-cart-badge::before {
  display: none !important;
}

.avs-cart-badge:hover,
.avs-cart-badge:focus-visible,
.avs-cart-badge[aria-expanded="true"] {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #333;
}

.avs-cart-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.avs-cart-badge__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.avs-cart-badge__count {
  position: absolute;
  top: -2px;
  right: -10px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 5px;
  font-size: .8rem;
  line-height: 120%;
  text-align: center;
  font-weight: 700;
  background: var(--avs-tertiary);
  color: #fff;
  border: 2px solid #fff;
  box-sizing: border-box;
  transition: transform .15s ease;
}

@keyframes avsBadgePulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.avs-badge-pulse {
  animation: avsBadgePulse .3s ease;
}
