/* Cart feedback sits above all product content without changing the layout. */
.dgp-cart-toast {
  align-items: center;
  background: rgba(37, 42, 51, .96);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .28);
  color: #fff;
  display: flex;
  gap: 15px;
  left: 50%;
  max-width: min(440px, calc(100vw - 32px));
  opacity: 0;
  padding: 20px 24px;
  pointer-events: none;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -46%) scale(.96);
  transition: opacity 180ms ease, transform 180ms ease;
  visibility: hidden;
  z-index: 100001;
}

.dgp-cart-toast.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); visibility: visible; }
.dgp-cart-toast__icon { background: #14b8a6; border-radius: 50%; flex: 0 0 52px; height: 52px; position: relative; width: 52px; }
.dgp-cart-toast__icon::after { border-bottom: 4px solid #fff; border-right: 4px solid #fff; content: ''; height: 18px; left: 18px; position: absolute; top: 13px; transform: rotate(40deg); width: 10px; }
.dgp-cart-toast__message { color: inherit; font-family: "Be Vietnam Pro", Arial, sans-serif; font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0; }
.dgp-cart-toast--out-of-stock .dgp-cart-toast__icon,
.dgp-cart-toast--error .dgp-cart-toast__icon { background: #d75a4a; }
.dgp-cart-toast--out-of-stock .dgp-cart-toast__icon::after,
.dgp-cart-toast--error .dgp-cart-toast__icon::after { border: 0; color: #fff; content: '!'; font-family: Arial, sans-serif; font-size: 34px; font-weight: 700; height: auto; left: 21px; line-height: 1; top: 9px; transform: none; width: auto; }
.woocommerce .dgp-cart-toast-source { display: none !important; }

@media (max-width: 549px) {
  .dgp-cart-toast { gap: 12px; padding: 16px 18px; }
  .dgp-cart-toast__icon { flex-basis: 44px; height: 44px; width: 44px; }
  .dgp-cart-toast__icon::after { height: 15px; left: 15px; top: 11px; width: 8px; }
  .dgp-cart-toast--out-of-stock .dgp-cart-toast__icon::after,
  .dgp-cart-toast--error .dgp-cart-toast__icon::after { font-size: 29px; left: 18px; top: 8px; }
  .dgp-cart-toast__message { font-size: 14px; }
}
