/* commerce-notice: native Woo templates, including AJAX notice fragments. */
/* Success-only shared variant; header cart remains the persistent destination. */
.tst-cart-confirmation {display:block;font-size:var(--tst-type-label)}
.tst-redesign :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) {
  --tst-notice-icon-surface:var(--tst-accent-soft);
  --tst-notice-icon-ink:var(--tst-ink);
  --tst-notice-glyph:url('icons/vuesax/check.svg');
  position:relative;
  box-sizing:border-box;
  min-height:calc(var(--tst-space-6) + 2 * var(--tst-space-4));
  margin:0 0 var(--tst-group-gap);
  padding:var(--tst-space-4) var(--tst-space-4) var(--tst-space-4) calc(var(--tst-space-4) + var(--tst-space-6) + var(--tst-space-3));
  border:1px solid var(--tst-line);
  border-radius:var(--tst-radius-card);
  background:var(--tst-surface-subtle);
  color:var(--tst-ink);
  font-family:var(--tst-font-sans);
  font-size:var(--tst-type-body);
  line-height:var(--tst-leading-body);
  overflow-wrap:anywhere;
  list-style:none;
}
.tst-redesign .woocommerce-info {
  --tst-notice-icon-surface:var(--tst-surface);
  --tst-notice-glyph:url('icons/vuesax/bell.svg');
}
/* Account info/empty states share its solid content surface; icon, native
   semantics, actions and all public/checkout notices retain their contracts. */
.tst-redesign .woocommerce-MyAccount-content .woocommerce-info {background:var(--tst-surface)}
.tst-redesign .woocommerce-error {
  --tst-notice-icon-surface:var(--tst-error-soft);
  --tst-notice-icon-ink:var(--tst-error);
  --tst-notice-glyph:url('icons/vuesax/x.svg');
  border-color:var(--tst-error);
  background:var(--tst-surface);
}
.tst-redesign :is(.woocommerce-message,.woocommerce-info,.woocommerce-error)::before {
  content:'';
  position:absolute;
  inset:var(--tst-space-4) auto auto var(--tst-space-4);
  width:var(--tst-space-6);
  height:var(--tst-space-6);
  border-radius:var(--tst-radius-round);
  background:var(--tst-notice-icon-surface);
}
.tst-redesign :is(.woocommerce-message,.woocommerce-info,.woocommerce-error)::after {
  content:'';
  position:absolute;
  inset:calc(var(--tst-space-4) + var(--tst-space-1)) auto auto calc(var(--tst-space-4) + var(--tst-space-1));
  width:var(--tst-space-5);
  height:var(--tst-space-5);
  background:var(--tst-notice-icon-ink);
  mask:var(--tst-notice-glyph) center/contain no-repeat;
  -webkit-mask:var(--tst-notice-glyph) center/contain no-repeat;
}
/* Only native notices with a direct action need layout; inline coupon links stay prose. */
.tst-redesign :is(.woocommerce-message,.woocommerce-info):has(>.button) {
  display:flex;
  align-items:center;
  gap:var(--tst-space-4);
}
.tst-redesign :is(.woocommerce-message,.woocommerce-info):has(>.button)::before,
.tst-redesign :is(.woocommerce-message,.woocommerce-info):has(>.button)::after {top:50%;transform:translateY(-50%)}
/* Woo focuses the non-interactive notice after a write; controls keep the shared 2px ring. */
.tst-redesign :is(.woocommerce-message,.woocommerce-info,.woocommerce-error):focus {outline:1px solid var(--tst-control-border);outline-offset:2px}
.tst-redesign :is(.woocommerce-message,.woocommerce-info)>.button {
  order:1;
  flex:none;
  float:none;
  margin:0 0 0 auto;
  min-height:var(--tst-control-height);
  max-width:100%;
  padding:var(--tst-space-3) var(--tst-space-4);
  font-size:var(--tst-type-body);
  line-height:var(--tst-leading-title);
  text-align:center;
  white-space:normal;
}
.tst-redesign .woocommerce-error>li {margin:0;padding:0;color:var(--tst-ink)}
.tst-redesign .woocommerce-error>li+li {margin-top:var(--tst-space-2)}
.tst-redesign :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) a:not(.button) {text-decoration:underline;text-underline-offset:var(--tst-space-1)}
/* Compact nonmodal HUD. Visual viewport values are supplied by its controller.
   Native POST/no-JS notices retain their persistent inline placement above. */
.tst-purchase-feedback {position:fixed;left:var(--tst-feedback-x,50%);top:var(--tst-feedback-y,45%);transform:translate(-50%,-50%);width:max-content;max-width:min(var(--tst-feedback-max-width),calc(var(--tst-feedback-viewport-width,100vw) - 2 * var(--tst-space-4)));z-index:60;pointer-events:none;animation:tst-purchase-feedback-in var(--tst-duration-press) var(--tst-ease-ui) both}
.tst-purchase-feedback[hidden] {display:none}
.tst-purchase-feedback[data-hiding] {animation-name:tst-purchase-feedback-out}
.tst-redesign .tst-purchase-feedback .woocommerce-message {display:flex;flex-direction:column;align-items:center;gap:var(--tst-space-3);min-height:0;margin:0;padding:var(--tst-space-5);background:var(--tst-surface);box-shadow:var(--tst-shadow-float);text-align:center;line-height:var(--tst-leading-ui)}
.tst-redesign .tst-purchase-feedback .woocommerce-message::before {position:static;flex:none;inset:auto;width:var(--tst-space-6);height:var(--tst-space-6)}
.tst-redesign .tst-purchase-feedback .woocommerce-message::after {top:calc(var(--tst-space-5) + var(--tst-space-1));left:calc(50% - var(--tst-space-3));width:var(--tst-space-5);height:var(--tst-space-5)}
@keyframes tst-purchase-feedback-in {from{opacity:0}to{opacity:1}}
@keyframes tst-purchase-feedback-out {from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce) {.tst-purchase-feedback,.tst-purchase-feedback[data-hiding] {animation:none}}
@media(max-width:600px) {
  .tst-redesign :is(.woocommerce-message,.woocommerce-info):has(>.button) {flex-direction:column;align-items:stretch;gap:var(--tst-space-3)}
  .tst-redesign :is(.woocommerce-message,.woocommerce-info):has(>.button)::before {top:var(--tst-space-4);transform:none}
  .tst-redesign :is(.woocommerce-message,.woocommerce-info):has(>.button)::after {top:calc(var(--tst-space-4) + var(--tst-space-1));transform:none}
  .tst-redesign :is(.woocommerce-message,.woocommerce-info)>.button {align-self:flex-start;margin:0}
}
@media(forced-colors:active) {
  .tst-redesign :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) {border-color:CanvasText;background:Canvas;color:CanvasText}
  .tst-redesign :is(.woocommerce-message,.woocommerce-info,.woocommerce-error)::before {background:Canvas;border:1px solid CanvasText}
  .tst-redesign :is(.woocommerce-message,.woocommerce-info,.woocommerce-error)::after {background:CanvasText;forced-color-adjust:none}
}
