/**
 * Frontend styles for Coins For Anything Bulk Plugin
 */

.cfa-bulk-pricing-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cfa-bulk-title {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.cfa-bulk-tables-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cfa-bulk-table-container {
    flex: 1;
    min-width: 280px;
}

.cfa-bulk-table-container h4 {
    background: #0073aa;
    color: white;
    padding: 10px;
    margin: 0;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

.cfa-bulk-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cfa-bulk-pricing-table thead {
    background: #f4f4f4;
}

.cfa-bulk-pricing-table th,
.cfa-bulk-pricing-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.cfa-bulk-pricing-table tbody tr:hover {
    background: #f9f9f9;
}

.cfa-discount {
    color: #28a745;
    font-weight: bold;
}

.cfa-tier-100,
.cfa-tier-200,
.cfa-tier-300,
.cfa-tier-500 {
    background: #e8f5e9;
}

.cfa-bulk-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

.cfa-bulk-notice p {
    margin: 5px 0;
}

.cfa-bulk-calculator {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cfa-bulk-calculator h4 {
    color: #0073aa;
    margin-bottom: 15px;
}

.cfa-calculator-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.cfa-calc-field {
    flex: 1;
    min-width: 150px;
}

.cfa-calc-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.cfa-calc-field input,
.cfa-calc-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.cfa-calc-results {
    flex: 2;
    min-width: 200px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 5px;
}

.cfa-calc-results p {
    margin: 5px 0;
}

.cfa-savings {
    color: #28a745;
    font-size: 1.2em;
}

.cfa-bulk-benefits {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.cfa-bulk-benefits h4 {
    color: #333;
    margin-bottom: 15px;
}

.cfa-bulk-benefits ul {
    list-style: none;
    padding: 0;
}

.cfa-bulk-benefits li {
    padding: 8px 0 8px 30px;
    position: relative;
}

.cfa-bulk-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

/* Cart page styles */
.cfa-bulk-savings {
    background: #e8f5e9;
}

.cfa-bulk-savings td {
    color: #28a745;
}

.cfa-savings-amount {
    font-size: 1.2em;
    color: #28a745;
}

.cfa-savings-note {
    color: #666;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .cfa-bulk-tables-wrapper {
        flex-direction: column;
    }
    
    .cfa-calculator-form {
        flex-direction: column;
    }
    
    .cfa-calc-field,
    .cfa-calc-results {
        width: 100%;
    }
}