/* ═══════════════════════════════════════════════════════════════
   Hausser Toast — Sonner-style notifications
   ═══════════════════════════════════════════════════════════════ */

/* ── Container — pojok kanan bawah ──────────────────────────── */
.hp-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
}

/* ── Toast base ──────────────────────────────────────────────── */
.hp-toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  pointer-events: all;
  cursor: default;
  overflow: hidden;
  transform-origin: right bottom;
}

/* ── Icon ────────────────────────────────────────────────────── */
.hp-toast__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* ── Message ─────────────────────────────────────────────────── */
.hp-toast__msg {
  flex: 1;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #1a1008;
  font-weight: 400;
}

/* ── Close button ────────────────────────────────────────────── */
.hp-toast__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 0;
  border-radius: 4px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.hp-toast__close:hover {
  color: #1a1008;
  background: rgba(0, 0, 0, 0.05);
}

/* ── Progress bar ────────────────────────────────────────────── */
.hp-toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
}

/* ── Types ───────────────────────────────────────────────────── */

/* Success */
.hp-toast--success .hp-toast__icon {
  color: #2d6a4f;
  background: rgba(45, 106, 79, 0.1);
}

.hp-toast--success .hp-toast__progress {
  background: #2d6a4f;
}

/* Error */
.hp-toast--error .hp-toast__icon {
  color: #8b1a2c;
  background: rgba(139, 26, 44, 0.1);
}

.hp-toast--error .hp-toast__progress {
  background: #8b1a2c;
}

/* Info */
.hp-toast--info .hp-toast__icon {
  color: #2d5a8e;
  background: rgba(45, 90, 142, 0.1);
}

.hp-toast--info .hp-toast__progress {
  background: #2d5a8e;
}

/* Warning */
.hp-toast--warning .hp-toast__icon {
  color: #92400e;
  background: rgba(146, 64, 14, 0.1);
}

.hp-toast--warning .hp-toast__progress {
  background: #92400e;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hp-toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    align-items: stretch;
  }

  .hp-toast {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
}

/* ── Hide WC default notice wrapper ─────────────────────────── */
.woocommerce-notices-wrapper {
  display: none !important;
}
