.weedn-atc-toast {
  position: fixed;
  z-index: 10000;
  right: 24px;
  bottom: 24px;
  width: 360px;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  font: 15px/1.4 'DM Sans', sans-serif;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  overflow-wrap: anywhere;
}
.weedn-atc-toast:not(.is-visible) { padding: 0; box-shadow: none; }
.weedn-atc-toast strong { display: block; font: 18px/1.3 'Bebas Neue', sans-serif; }
.weedn-atc-toast__actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.weedn-atc-toast__actions a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 6px; background: #fff; color: #1a1a1a; text-decoration: none; }
.weedn-atc-toast__actions button { border: 0; background: none; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.weedn-atc-toast :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.weedn-atc-bump { animation: weedn-atc-bump 200ms ease; }
@keyframes weedn-atc-bump { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@media (max-width: 600px) {
  .weedn-atc-toast { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; }
}
/* CSS fallback until the variable toast measures the visible bottom bars. */
.weedn-w47-variable-toast {
  bottom: max(24px, calc(var(--weedn-callbar-h, 0px) + var(--weedn-stg-cookie-height, 0px) + 8px));
}
@media (max-width: 600px) {
  .weedn-w47-variable-toast {
    bottom: max(calc(8px + env(safe-area-inset-bottom)), calc(var(--weedn-callbar-h, 0px) + var(--weedn-stg-cookie-height, 0px) + 8px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .weedn-atc-bump { animation: none; }
}

/* Woo places the action before its anonymous text node: flex order keeps text first. */
@media (max-width: 480px) {
  body.single-product .woocommerce-message {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px;
    padding: 12px !important;
  }
  body.single-product .woocommerce-message::before {
    position: static !important;
  }
  body.single-product .woocommerce-message .button {
    position: static !important;
    float: none !important;
    transform: none !important;
    order: 1;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    text-align: center;
  }
}
