/*===========================================
=            Front End Table CSS            =
===========================================*/

/* Table Container */
.aicoso_bulk_prod_price_per_qty_table {
  margin: 20px 0;
  padding: 0;
  width: 100%;
  clear: both;
}

/* Main Table Styling */
.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #fff;
  font-size: 14px;
}

/* Table Header Styling */
.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table thead th {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  background: transparent !important;
  border-color: transparent !important;
}

.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table thead th:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Table Body Styling */
.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody {
  background: #fff;
}

.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody tr:last-child {
  border-bottom: none;
}

.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody tr:hover {
  background: #f8f9fc;
  transform: scale(1.01);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody td {
  padding: 14px 20px;
  color: #333;
  border-right: 1px solid #f0f0f0;
  font-size: 14px;
}

.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody td:last-child {
  border-right: none;
}

/* Quantity Column - Bold and Primary Color */
.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody td:first-child {
  font-weight: 600;
  color: #667eea;
  font-size: 15px;
}

/* Price Column - Larger and Bold */
.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody td:nth-child(2) {
  font-weight: 700;
  color: #2ecc71;
  font-size: 16px;
}

/* Pricing Type Column - Badge Style */
.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody td:nth-child(3) {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-transform: capitalize;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table {
    font-size: 12px;
  }
  
  .aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table thead th,
  .aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody td {
    padding: 10px 12px;
  }
  
  .aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table thead {
    font-size: 11px;
  }
  
  .aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody td:nth-child(2) {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table thead th,
  .aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody td {
    padding: 8px;
    font-size: 11px;
  }
  
  .aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody td:first-child {
    font-size: 12px;
  }
  
  .aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody td:nth-child(2) {
    font-size: 13px;
  }
}

/* Override inline styles if no custom colors set */
.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table thead[style=""] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.aicoso_bulk_prod_price_per_qty_table .aicoso_bulk_prod_price_table tbody[style=""] tr {
  background: #fff;
}

/* Alternative Color Schemes (can be activated via class) */
.aicoso_bulk_prod_price_per_qty_table.green-theme .aicoso_bulk_prod_price_table thead {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.aicoso_bulk_prod_price_per_qty_table.blue-theme .aicoso_bulk_prod_price_table thead {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.aicoso_bulk_prod_price_per_qty_table.dark-theme .aicoso_bulk_prod_price_table thead {
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

/* Loading State */
.aicoso_bulk_prod_price_per_qty_table.loading {
  opacity: 0.6;
  pointer-events: none;
}

.aicoso_bulk_prod_price_per_qty_table.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #667eea;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*=====  End of Front End Table CSS  ======*/