/* Overlay Background */
#bf-promo-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Main Popup Box */
#bf-promo-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 45px 35px 30px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #f0e6d2; 
    
    /* Animation Control */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
    opacity: 1;
    transform-origin: bottom right;
}

/* Top Floating Tag */
.bf-promo-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 24px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Minimize Button (Minus Icon) */
#bf-promo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    background: #f7f7f7;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
    z-index: 10;
}
#bf-promo-close:hover { 
    color: #111; 
    background: #e8e8e8;
}

/* Gift Icon */
.bf-promo-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Title */
.bf-promo-title {
    font-size: 24px;
    color: #111;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* Discount Badge */
.bf-save-badge {
    display: inline-block;
    background: #111111;
    color: #f7e8c9;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Description Text */
.bf-promo-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Highlighted Product Name */
.bf-highlight-product a {
    color: #8b6b39;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

/* Call to Action Button */
.bf-promo-btn {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.bf-promo-btn:hover {
    background: #8b6b39; 
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 107, 57, 0.3);
}

/* Disclaimer Note */
.bf-promo-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    display: block;
}

/* ===== Bottom Right Floating Badge (Horizontal) ===== */
#bf-mini-badge {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 140px; /* Higher up to avoid bottom banner */
    right: 20px;
    background: #111111;
    color: #f7e8c9;
    padding: 12px 20px;
    border-radius: 30px; 
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid #333;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: floatIn 0.5s ease;
    white-space: nowrap;
}

#bf-mini-badge:hover {
    background: #8b6b39;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 107, 57, 0.4);
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}