/* Container Styles */
.bdb-discount-container {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Row Styling & Animation */
.bdb-row {
    transition: background-color 0.2s ease, transform 0.2s ease;
    /* پدینگ افقی اضافه شد تا متن به لبه‌های بک‌گراند نچسبد. استفاده از important برای اورراید کردن استایل اینلاین است */
    padding: 12px 10px !important; 
    border-radius: 6px;
}

/* Zebra Striping (ایجاد بک‌گراند خاکستری برای ردیف‌های فرد) */
.bdb-row:nth-child(odd) {
    background-color: #f4f6f8; 
}

.bdb-row:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Active Highlight Class (Toggled by JS) */
.bdb-row.active-discount {
    background-color: rgba(46, 204, 113, 0.1) !important;
    transform: scale(1.01);
    border-radius: 6px;
    border-bottom: none !important;
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.2);
}

/* Mobile-First Adjustments */
@media (max-width: 768px) {
    .bdb-discount-container {
        padding: 12px !important;
        margin-bottom: 15px;
    }
    
    .bdb-title {
        font-size: 14px !important;
    }
    
    .bdb-table-header {
        font-size: 12px !important;
    }
    
    .bdb-price-col {
        font-size: 13px !important;
    }
    
    .bdb-badge {
        font-size: 12px !important;
        padding: 3px 6px !important;
    }
    
    .bdb-qty-col {
        font-size: 12px !important;
    }
}