/* Product WooCommerce notices: compact floating toast. The original inline notice remains the no-JS fallback. */
.psdfa-product-toast-region {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 10060;
  display: grid;
  width: min(390px, calc(100vw - 36px));
  gap: 10px;
  pointer-events: none;
}

.psdfa-product-toast {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 11px;
  align-items: start;
  padding: 13px 13px 12px;
  overflow: hidden;
  border: 1px solid #e2e5e8;
  border-radius: 13px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 48px rgba(17,19,24,.18), 0 3px 12px rgba(17,19,24,.08);
  color: #32373d;
  pointer-events: auto;
  transform-origin: bottom right;
  animation: psdfa-toast-in .22s ease-out both;
  backdrop-filter: blur(12px);
}

.psdfa-product-toast::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 10px;
  width: 3px;
  border-radius: 999px 0 0 999px;
  background: #8b960f;
  opacity: .85;
}

.psdfa-product-toast.is-error::after { background: #c63838; }
.psdfa-product-toast.is-info::after { background: #3973a7; }
.psdfa-product-toast.is-leaving { animation: psdfa-toast-out .18s ease-in both; }

.psdfa-product-toast-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f4f7df;
  color: #6f7906;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.psdfa-product-toast.is-error .psdfa-product-toast-icon { background: #fff0f0; color: #b52d2d; }
.psdfa-product-toast.is-info .psdfa-product-toast-icon { background: #eef6fc; color: #326b9d; }

.psdfa-product-toast-body { min-width: 0; padding-top: 1px; }
.psdfa-product-toast-body .woocommerce-message,
.psdfa-product-toast-body .woocommerce-info,
.psdfa-product-toast-body .woocommerce-error {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3d4349;
  font-size: 12.5px;
  line-height: 1.9;
  list-style: none;
}
.psdfa-product-toast-body .woocommerce-error li { margin: 0; }

.psdfa-product-toast-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 31px;
  margin-top: 7px;
  padding: 0 10px;
  border: 1px solid #d8dde1;
  border-radius: 8px;
  background: #f8f9fa;
  color: #252a2f;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}
.psdfa-product-toast-action:hover { border-color: #bcc2c8; background: #f2f3f4; color: #111318; }

.psdfa-product-toast-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a9fa5;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
}
.psdfa-product-toast-close:hover,
.psdfa-product-toast-close:focus-visible { background: #f2f3f4; color: #22272c; outline: 0; }

@keyframes psdfa-toast-in {
  from { opacity: 0; transform: translate3d(18px, 12px, 0) scale(.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes psdfa-toast-out {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(18px, 8px, 0) scale(.98); }
}

@media (max-width: 900px) {
  .psdfa-product-toast-region {
    right: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: calc(100vw - 28px);
  }
  .psdfa-product-toast { grid-template-columns: 36px minmax(0,1fr) 28px; padding: 12px; border-radius: 12px; }
  .psdfa-product-toast-icon { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .psdfa-product-toast,
  .psdfa-product-toast.is-leaving { animation: none; }
}

.psdfa-product-toast{border-color:color-mix(in srgb,var(--psdfa-primary) 25%,#dfe2e5);border-right:3px solid var(--psdfa-primary);background:rgba(255,255,255,.985);box-shadow:0 20px 55px rgba(17,19,24,.16),0 3px 10px rgba(17,19,24,.06)}
.psdfa-product-toast::after{display:none}
.psdfa-product-toast-icon{background:var(--psdfa-primary);color:#111318}
.psdfa-product-toast.is-error{border-color:#efd4d4;border-right-color:#d83b3b}.psdfa-product-toast.is-error .psdfa-product-toast-icon{background:#ffe9e9;color:#b52d2d}
.psdfa-product-toast.is-info{border-color:#eadf9b;border-right-color:color-mix(in srgb,var(--psdfa-primary) 70%,#725d00)}.psdfa-product-toast.is-info .psdfa-product-toast-icon{background:var(--psdfa-primary-soft);color:#6c5600}
.psdfa-product-toast-body .psdfa-woo-notice__icon,.psdfa-product-toast-action{display:none!important}
.psdfa-product-toast-close:hover,.psdfa-product-toast-close:focus-visible{background:var(--psdfa-primary-soft);color:#5f4d00}
