/* Tiered Pricing Grid Layout */

.tpwc-pricing-table {

}

.tpwc-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.tpwc-tier-item {
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tpwc-tier-item:hover {
    border-color: #999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.tpwc-tier-item.active-tier {
    background: #e3f2fd;
    border-color: #2196f3;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
    transform: scale(1.03);
}

.tpwc-tier-quantity {
    font-size: 18px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}

.tpwc-tier-item.active-tier .tpwc-tier-quantity {
    color: #1565c0;
}

.tpwc-tier-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.tpwc-tier-item.active-tier .tpwc-tier-price {
    color: #0d47a1;
    font-size: 17px;
}

.tpwc-tier-discount {
    font-size: 11px;
    font-weight: 600;
    color: #d32f2f;
    background: #ffebee;
    padding: 2px 6px;
    border-radius: 3px;
    margin: 4px 0;
    display: inline-block;
}

.tpwc-tier-item.active-tier .tpwc-tier-discount {
    background: #e1f5fe;
    color: #01579b;
}

.tpwc-tier-label {
    font-size: 10px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tpwc-tier-item.active-tier .tpwc-tier-label {
    color: #1565c0;
    font-weight: 600;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .tpwc-pricing-table {
        margin: 15px 0;
    }
    
    .tpwc-tiers-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 10px;
    }
    
    .tpwc-tier-item {
        padding: 14px 8px;
        border-radius: 6px;
    }
    
    .tpwc-tier-quantity {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .tpwc-tier-price {
        font-size: 16px;
    }
    
    .tpwc-tier-item.active-tier .tpwc-tier-price {
        font-size: 18px;
    }
    
    .tpwc-tier-discount {
        font-size: 11px;
        padding: 2px 6px;
        margin: 5px 0;
    }
    
    .tpwc-tier-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .tpwc-pricing-table {
        margin: 10px 0;
    }
    
    .tpwc-tiers-grid {
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
        gap: 8px;
    }
    
    .tpwc-tier-item {
        padding: 12px 6px;
        border-radius: 6px;
        border-width: 1.5px;
    }
    
    .tpwc-tier-item.active-tier {
        border-width: 2px;
    }
    
    .tpwc-tier-quantity {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .tpwc-tier-price {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .tpwc-tier-item.active-tier .tpwc-tier-price {
        font-size: 16px;
    }
    
    .tpwc-tier-discount {
        font-size: 10px;
        padding: 2px 5px;
        margin: 4px 0;
    }
    
    .tpwc-tier-label {
        font-size: 9px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .tpwc-tiers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .tpwc-tier-item {
        padding: 10px 5px;
    }
    
    .tpwc-tier-quantity {
        font-size: 16px;
    }
    
    .tpwc-tier-price {
        font-size: 13px;
    }
    
    .tpwc-tier-item.active-tier .tpwc-tier-price {
        font-size: 14px;
    }
}
