.wprbg-toast-wrap {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Base pill */
.wprbg-toast {
    pointer-events: auto;
    width: 520px;
    max-width: calc(100vw - 36px);

    position: relative;
    /* ✅ for absolute divider */
    display: grid;
    grid-template-columns: 44px 1fr 36px;
    /* ✅ icon | text | close */
    align-items: center;
    /* ✅ keeps top aligned when wrapped */
    gap: 12px;

    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
    animation: wprbgToastIn .18s ease-out;
}

@keyframes wprbgToastIn {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wprbg-toast.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
    transition: all .22s ease;
}

/* Icon box */
.wprbg-toast__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.wprbg-toast__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Message */
.wprbg-toast__msg {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .1px;
    padding-top: 4px;
    word-break: break-word;
}

/* Vertical divider */
.wprbg-toast::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    /* ✅ full height (with padding gap) */
    right: 56px;
    /* ✅ sits before close button */
    width: 1px;
    background: rgba(0, 0, 0, .12);
}

/* Close button */
.wprbg-toast__close{
  width: 30px;
  height: 27px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #000000;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: .9;
  align-content: center;
  justify-content: center;
  margin-top: 0px;
  padding-left: 15px;
  padding-right: 15px;
}

.wprbg-toast__close:hover {
    background: #e74c3c;
}

/* ===== Variants (match sample look) ===== */

/* Error */
.wprbg-toast--error {
    background: #ffeceb;
    border-color: #f6b4ad;
}

.wprbg-toast--error .wprbg-toast__icon {
    background: #e74c3c;
    color: #fff;
}

.wprbg-toast--error .wprbg-toast__msg {
    color: #e74c3c;
}

.wprbg-toast--error .wprbg-toast__close {
    color: #000000;
}

.wprbg-toast--error .wprbg-toast__close:hover {
    color: #ffffff;
}

/* Warning */
.wprbg-toast--warning {
    background: #fff5e6;
    border-color: #ffd59a;
}

.wprbg-toast--warning .wprbg-toast__icon {
    background: #f59e0b;
    color: #fff;
}

.wprbg-toast--warning .wprbg-toast__msg {
    color: #f59e0b;
}

.wprbg-toast--warning .wprbg-toast__close {
    color: #f59e0b;
}

/* Success */
.wprbg-toast--success {
    background: #ecfff1;
    border-color: #b7f0c6;
}

.wprbg-toast--success .wprbg-toast__icon {
    background: #22c55e;
    color: #fff;
}

.wprbg-toast--success .wprbg-toast__msg {
    color: #22c55e;
}

.wprbg-toast--success .wprbg-toast__close {
    color: #22c55e;
}

/* Info */
.wprbg-toast--info {
    background: #eef3ff;
    border-color: #b8c7ff;
}

.wprbg-toast--info .wprbg-toast__icon {
    background: #3b82f6;
    color: #fff;
}

.wprbg-toast--info .wprbg-toast__msg {
    color: #3b82f6;
}

.wprbg-toast--info .wprbg-toast__close {
    color: #3b82f6;
}