#penny-store-toasts {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 10060;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: min(380px, calc(100vw - 24px));
  pointer-events: none;
}

.penny-store-toast {
  --toast-fg: #18181b;
  --toast-bg: #fff;
  --toast-border: rgba(24, 24, 27, 0.08);
  --toast-accent: #18181b;
  --toast-soft: #f4f4f5;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 8px 8px 10px;
  background: var(--toast-bg);
  color: var(--toast-fg);
  border: 1px solid var(--toast-border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
  opacity: 0;
  transform: translateY(8px);
  animation: penny-store-toast-in 0.22s ease forwards;
}

.penny-store-toast.is-out {
  animation: penny-store-toast-out 0.18s ease forwards;
}

@keyframes penny-store-toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes penny-store-toast-out {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

.penny-store-toast.is-success {
  --toast-fg: #14532d;
  --toast-bg: #f0fdf4;
  --toast-border: #bbf7d0;
  --toast-accent: #16a34a;
  --toast-soft: #dcfce7;
}

.penny-store-toast.is-warning {
  --toast-fg: #9a3412;
  --toast-bg: #fff7ed;
  --toast-border: #fed7aa;
  --toast-accent: var(--theme, #ff914d);
  --toast-soft: #ffedd5;
}

.penny-store-toast.is-error {
  --toast-fg: #991b1b;
  --toast-bg: #fef2f2;
  --toast-border: #fecaca;
  --toast-accent: #dc2626;
  --toast-soft: #fee2e2;
}

.penny-store-toast.is-info {
  --toast-fg: #18181b;
  --toast-bg: #fafafa;
  --toast-border: #e4e4e7;
  --toast-accent: #18181b;
  --toast-soft: #f4f4f5;
}

.penny-store-toast-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #fff;
  background: var(--toast-accent);
}

.penny-store-toast-copy,
.penny-store-toast-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.penny-store-toast-body {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.penny-store-toast-title,
.penny-store-toast-text {
  margin: 0 !important;
  padding: 0;
  text-transform: none !important;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.penny-store-toast-title {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--toast-fg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.penny-store-toast-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--toast-fg) 72%, #71717a);
}

.penny-store-toast-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: var(--toast-accent);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.penny-store-toast-action:hover {
  filter: brightness(0.94);
  color: #fff !important;
}

.penny-store-toast-close {
  flex: 0 0 30px;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--toast-fg) 55%, #a1a1aa);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.penny-store-toast-close:hover {
  background: var(--toast-soft);
  color: var(--toast-fg);
}

.penny-store-toast-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--toast-accent);
  opacity: 0.45;
  transform-origin: left center;
  animation: penny-store-toast-timer var(--toast-ms, 3400ms) linear forwards;
  pointer-events: none;
}

@keyframes penny-store-toast-timer {
  to {
    transform: scaleX(0);
  }
}

#penny-store-toasts.is-anchored {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  z-index: 6;
  margin: 0;
}

.penny-pdp-toast-anchor {
  min-height: 0;
  margin: 0;
}

.penny-pdp-toast-anchor:has(.penny-store-toast) {
  margin: 0 0 12px;
}

.gt-shop-details-wrapper .gt-shop-details-content .penny-pdp-toast-anchor:has(.penny-store-toast) + .cart-quantity {
  margin-top: 8px;
}

#penny-store-toasts.is-anchored .penny-store-toast {
  width: 100%;
  max-width: 100%;
  box-shadow: none;
}

#penny-store-toasts.is-anchored .penny-store-toast-text {
  display: none;
}

@media (max-width: 575.98px) {
  #penny-store-toasts:not(.is-anchored) {
    right: 12px;
    left: 12px;
    bottom: 16px;
    width: auto;
    align-items: stretch;
  }
}

@media (hover: none), (pointer: coarse) {
  .mouseCursor {
    display: none !important;
    visibility: hidden !important;
  }
}
