/* Ultra Notices – Toast Look (dark, rounded, SVG icons) */
/* kill native Woo blocks immediately (JS will replace them with toasts) */
.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info{
  display: none !important;
}

#ultra-notices{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999; /* über Header/Flyouts */
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* nur Buttons in Toasts anklickbar */
}

.ultra-toast{
  pointer-events: auto;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: start;
  gap: 12px;
  max-width: min(92vw, 560px);
  color: #fff;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px 14px 14px 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  transform: translateY(-8px);
  opacity: 0;
  animation: toast-in .18s ease forwards;
}

@keyframes toast-in{
  to { transform: translateY(0); opacity: 1; }
}
.toast-out{
  animation: toast-out .18s ease forwards;
}
@keyframes toast-out{
  to { transform: translateY(-6px); opacity: 0; }
}

.ultra-toast__ico{
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  flex: 0 0 28px;
}
.ultra-toast__ico svg{
  width: 18px; height: 18px; display: block;
}

.ultra-toast__msg{
  line-height: 1.45;
  font-size: 15px;
}
.ultra-toast__msg p{ margin: 0 0 .35em; }
.ultra-toast__msg a{
  color: #fff; text-decoration: underline;
  text-underline-offset: 2px;
}

.ultra-toast__close{
  -webkit-appearance: none; appearance: none;
  border: 0; background: transparent;
  color: #fff; opacity: .7;
  cursor: pointer; padding: 6px;
  border-radius: 10px;
  display: grid; place-items: center;
  transition: opacity .2s ease, background .2s ease;
}
.ultra-toast__close:hover{ opacity: 1; background: rgba(255,255,255,.08); }
.ultra-toast__close svg{ width: 18px; height: 18px; display: block; }

/* Farb-Varianten (feine Akzentlinie oben) */
.ultra-toast{ border-top: 4px solid #444; }
.ultra-toast--success{ border-top-color: #2ecc71; }
.ultra-toast--info{    border-top-color: #3da5ff; }
.ultra-toast--error{   border-top-color: #ff5a5f; }

/* Responsiv: unten andocken auf ganz kleinen Screens */
@media (max-width: 540px){
  #ultra-notices{
    top: auto; bottom: 12px; right: 12px; left: 12px;
    align-items: stretch;
  }
  .ultra-toast{
    max-width: 100%;
    grid-template-columns: 32px 1fr 32px;
  }
}