/* * ======================================================
 * Styling voor de Bulk Variatie Lijst
 * VERSIE 5.1 - Verticale Layout + "Spring" Fix
 * Font: Poppins
 * Layout: 1-kolom (verticaal)
 * Stijl: Card-based
 * ======================================================
 */

/* --- Globals & Fonts --- */
.variations_form.cart,
.variations_form.cart .button,
.variations_form.cart input,
.variations_form.cart .button:focus,
.variations_form.cart input:focus {
  font-family: 'Poppins', sans-serif;
  box-shadow: none;
  outline: none;
}

/* --- De Hoofd-layout --- */
/* (Geen 2-koloms container meer, alles is standaard verticaal) */

/* --- Titel & Knop --- */
.bulk-table-title {
  font-size: 2.8em; /* Groot en duidelijk */
  font-weight: 700;
  color: #333333;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

/* De "Toevoegen" knop wrapper */
.bulk-add-to-cart-wrapper {
  margin: 30px 0 0 0; /* Ruimte BOVEN de knop */
  position: relative;
  width: 100%;
  /* * ==========================================
   * FIX v5.1: Voorkomt het "springen" van de layout 
   * door ruimte te reserveren voor het bericht.
   * ==========================================
   */
  min-height: 90px;
}

/* De "Toevoegen" knop zelf (Pill-shape) */
.bulk-add-button.button {
  background-color: #F6A500 !important; /* Accent + !important tegen Elementor */
  color: #333333 !important; /* Text */
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 30px !important; /* Pill shape */
  border: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(246, 165, 0, 0.3);
  font-size: 16px;
  width: 100%;
  text-align: center;
}

.bulk-add-button.button:hover {
  background-color: #EF575D !important; /* Secondary */
  color: #ffffff !important;
  box-shadow: 0 6px 15px rgba(239, 87, 93, 0.4);
}

.bulk-add-button.button.loading {
  opacity: 0.7;
  cursor: wait;
}

/* Berichten container (groen/rood bericht) */
.bulk-add-message {
  font-weight: 500;
  margin-top: 15px;
  padding: 12px 15px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
  font-size: 14px;
}
/* Specifieke kleuren (overgenomen uit JS) */
.bulk-add-message[style*="color: rgb(145, 195, 125)"] { /* #91C37D */
  background-color: #f0f9eb;
  border: 1px solid #d4edc5;
  color: #5a7b46 !important;
}
.bulk-add-message[style*="color: rgb(182, 21, 68)"] { /* #B61544 */
  background-color: #fdf0f4;
  border: 1px solid #f9d7e1;
  color: #B61544 !important;
}


/* --- De Variatie Lijst --- */
.bulk-variation-list-wrapper {
  /* Deze wrapper is nu simpeler, geen flex-item meer */
  width: 100%;
}

.bulk-variation-list {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Ruimte TUSSEN de cards */
}

/* De "Card" voor elke variatie-rij */
.variation-row {
  display: flex;
  flex-wrap: nowrap; /* Zorgt dat het niet 'breekt' op rare plekken */
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 12px 20px;
  gap: 15px;
  transition: box-shadow 0.3s ease;
}

.variation-row:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Cel 1: Variatie Naam */
.variation-row .variation-name {
  flex: 1; /* Neemt alle beschikbare ruimte */
  font-weight: 600;
  color: #582354; /* Primary */
  font-size: 16px;
  /* Voorkom dat de tekst breekt */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 100px; /* Zorgt dat de naam niet compleet verdwijnt */
}

/* Cel 2: Prijs (als 'badge') */
.variation-row .variation-price {
  flex: 0 0 auto; /* Krimpt niet, groeit niet */
}
.variation-row .variation-price .price {
  display: inline-block;
  background-color: #F0F4F8; /* Background Accent */
  color: #582354; /* Primary */
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
}
.variation-row .variation-price .price .woocommerce-Price-amount {
  font-weight: 600;
}

/* Cel 3: Hoeveelheid-selector */
.variation-row .variation-quantity {
  flex: 0 0 auto; /* Krimpt niet, groeit niet */
}

/* --- FIX VOOR CENTRERING --- */
.variation-row .qty-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* De Plus/Min knoppen (premium) */
.variation-row .qty-btn {
  background-color: #F6A500; /* Accent */
  border: none;
  color: #333333;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  height: 38px;
  width: 38px;
  border-radius: 50%; /* Volledig rond */
  text-align: center;
  transition: all 0.2s ease;
  line-height: 38px;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Zorgt dat de knop niet krimpt */
  flex-shrink: 0; 
}

.variation-row .qty-btn:hover {
  background-color: #EF575D; /* Secondary */
  color: #ffffff;
  transform: scale(1.05);
}

/* Het Aantal Veld (minimalistisch) */
.variation-row .bulk_qty_input {
  width: 45px;
  height: 38px;
  text-align: center;
  border: 1px solid #F0F4F8; /* Lichte rand */
  border-radius: 8px;
  padding: 0; /* Padding 0 voor betere controle */
  margin: 0 10px;
  font-weight: 600;
  font-size: 16px;
  color: #333333;
  -moz-appearance: textfield;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  /* Zorgt dat het veld niet krimpt */
  flex-shrink: 0;
  /* Zorgt voor centrering */
  line-height: 36px;
}

.variation-row .bulk_qty_input:focus {
  border-color: #F6A500;
  box-shadow: 0 0 0 3px rgba(246, 165, 0, 0.2);
}

.variation-row .bulk_qty_input::-webkit-outer-spin-button,
.variation-row .bulk_qty_input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}