/* --- RetentionFox Welcome Nudge --- */
#retentionfox-welcome-nudge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    display: flex;
    align-items: flex-start; /* Aligns content better if msg is long */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 16px 32px 16px 16px; /* Extra right padding for close btn */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 360px;
}

#retentionfox-welcome-nudge.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#retentionfox-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: 0;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}
#retentionfox-close-btn:hover {
    color: #4b5563;
}

.retentionfox-icon-wrapper {
    margin-right: 14px;
    flex-shrink: 0;
}

#retentionfox-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px; /* Slight rounding looks cleaner than full circle for favicons */
    object-fit: contain;
    display: block;
}

.retentionfox-message {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
}

#retentionfox-title {
    display: block;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.retentionfox-register-link a {
    color: #2563eb;
    text-decoration: underline;
    font-size: 13px;
    font-weight: 500;
}

/* Cart Block */
.retentionfox-cartblock {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#retentionfox-cartline {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.retentionfox-cta {
    display: none; /* Hidden by default until cart has items */
    background: #3B82F6;
    color: white !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s;
}
.retentionfox-cta:hover {
    background: #2563eb;
}

/* Responsive */
@media (max-width: 480px) {
    #retentionfox-welcome-nudge {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}
