.ms-cart-toast {
  align-items: center;
  background: #247c58;
  box-shadow: 0 12px 30px rgba(29, 68, 50, .24);
  color: #fff;
  display: flex;
  gap: .75rem;
  left: 50%;
  max-width: min(42rem, calc(100vw - 2rem));
  opacity: 0;
  padding: .9rem 1rem;
  pointer-events: none;
  position: fixed;
  top: 1rem;
  transform: translate(-50%, -1rem);
  transition: opacity .2s ease, transform .2s ease;
  visibility: hidden;
  width: max-content;
  z-index: 1100;
}

.ms-cart-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.ms-cart-toast__icon {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 1.55rem;
  font-size: .85rem;
  height: 1.55rem;
  justify-content: center;
}

.ms-cart-toast__message {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
}

.ms-cart-toast__close {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  margin-left: .35rem;
  opacity: .82;
  padding: .1rem .25rem;
}

.ms-cart-toast__close:hover,
.ms-cart-toast__close:focus {
  opacity: 1;
}

@media (max-width: 575px) {
  .ms-cart-toast {
    left: 1rem;
    max-width: none;
    right: 1rem;
    transform: translateY(-1rem);
    width: auto;
  }

  .ms-cart-toast.is-visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-cart-toast {
    transition: none;
  }
}
