/* Notification popup — wp-helper-lite */

#mbwp-message-purchased {
    position: fixed;
    bottom: -120px;
    left: 16px;
    opacity: 0;
    z-index: 99999;
    max-width: 340px;
    width: calc(100vw - 32px);
    transition: bottom 0.45s cubic-bezier(0.34, 1.20, 0.64, 1), opacity 0.35s ease;
    pointer-events: none;
}

#mbwp-message-purchased.show-effect {
    bottom: 24px;
    opacity: 1;
    pointer-events: auto;
}

/* Inner card */
.mbwp-message-purchase-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 36px 12px 14px;
    background: #ffffff;
    border-radius: 16px;
    border-left: 3px solid #22c55e;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.mbwp-message-purchase-main.hide {
    display: none;
}

/* Product image */
.mbwp-notifi-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.mbwp-notifi-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.mbwp-notifi-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content area */
.mbwp-notifi-message-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

/* Badge */
.mbwp-notifi-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    width: fit-content;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.mbwp-notifi-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Product link */
.mbwp-notifi-message-container a {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-decoration: none;
}

.mbwp-notifi-message-container a:hover {
    text-decoration: underline;
    color: #0f172a;
}

/* Meta row: name · time */
.mbwp-notifi-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    line-height: 1.4;
}

.mbwp-notifi-name {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    text-transform: capitalize;
}

.mbwp-notifi-dot {
    color: #cbd5e1;
    flex-shrink: 0;
}

.notifi-time {
    color: #94a3b8;
    white-space: nowrap;
}

/* Close button */
.mbwp-notifi-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.mbwp-notifi-close:hover {
    color: #374151;
}

/* Mobile safeguard */
@media (max-width: 480px) {
    #mbwp-message-purchased {
        left: 8px;
        max-width: calc(100vw - 16px);
        width: calc(100vw - 16px);
    }

    #mbwp-message-purchased.show-effect {
        bottom: 12px;
    }
}
