/* Estilos para la tienda - WooCommerce Extra Ingredients */
.wei-ingredient-groups {
  margin: 25px 0;
}

.wei-ingredient-groups h3 {
  font-family: "Barlow Condensed", Sans-serif;
  margin-top: 0;
  margin-bottom: 20px;
  color: #000000;
  font-size: 1.5em;
  font-weight: 600;
  padding-bottom: 10px;
}

.wei-group-free-notice {
  font-family: "Barlow Condensed", Sans-serif;
  background: #2b2a28;
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 20px;
  width: fit-content;
  color: #fff;
}

.wei-group-free-notice p {
  margin: 0;
  font-size: 15px;
}

.wei-group-free-notice-dynamic {
  font-family: "Barlow Condensed", Sans-serif;
  background: #00000021;
  border: 1px solid #b10001;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 10px 0;
  color: #960606;
  font-size: 12px;
}

.wei-group-free-notice-dynamic p {
  margin: 0;
  font-size: 1.1em;
  font-weight: 400;
}

.wei-group {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.wei-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.wei-group h4 {
  font-family: "Barlow Condensed", Sans-serif;
  margin-top: 0;
  margin-bottom: 15px;
  color: #000000;
  font-size: 1.3em;
  font-weight: 600;
}

.wei-ingredient-option {
  display: flex;
  align-items: center;
  margin: 8px 0;
  padding: 12px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wei-ingredient-option:hover {
  border-color: #b10001;
  background: #00000021;
}

.wei-ingredient-option input[type="checkbox"],
.wei-ingredient-option input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
}

.wei-ingredient-name {
  font-family: "Barlow Condensed", Sans-serif;
  flex: 1;
  font-weight: 500;
  color: #000000;
}

.wei-ingredient-price {
  color: #b10001;
  font-weight: 600;
  font-size: 0.95em;
  margin-left: 10px;
}

.wei-select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.wei-select:focus {
  border-color: #b10001;
  outline: none;
}

.wei-total-extra {
  font-family: "Barlow Condensed", Sans-serif;
  background: #fff;
  border: 2px solid #b10001;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
  font-size: 1.1em;
}

.wei-extra-amount {
  color: #b10001;
  font-weight: 700;
  margin-left: 5px;
}

.wei-selected-count {
  background: #7b7a7a14;
  border: 1px solid #0000008c;
  border-radius: 8px;
  padding: 12px 15px;
  margin-top: 15px;
  color: #000000;
  font-size: 0.95em;
}

.wei-count {
  font-weight: 700;
  color: #960606;
}

.wei-free-remaining {
  color: #960606;
  margin-left: 10px;
  font-style: italic;
}

.wei-free-left {
  font-weight: 700;
}

/* Para productos variables */
.wei-variable-product-wrapper {
  margin: 20px 0;
}

/* Estados de selección */
.wei-ingredient-option.selected {
  border-color: #b10001;
  background: #00000021;
}

.wei-ingredient-input:checked + .wei-ingredient-name {
  font-weight: 700;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .wei-ingredient-groups {
    padding: 15px;
    margin: 15px 0;
  }

  .wei-ingredient-option {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .wei-ingredient-option input[type="checkbox"],
  .wei-ingredient-option input[type="radio"] {
    margin-bottom: 8px;
  }

  .wei-ingredient-price {
    align-self: flex-end;
    margin-top: 5px;
  }
}

/* Estilos para desglose de precios WEI */

.wei-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 5px;
}

.wei-price-base {
  color: #666;
}

.wei-price-extra {
  color: #e67e22;
}

.wei-price-total {
  color: #4caf50;
  font-weight: bold;
}

/* En el carrito */
.cart_item .wei-price-breakdown {
  padding-left: 15px;
}

/* En el checkout */
.woocommerce-checkout-review-order-table .wei-price-breakdown {
  font-size: 0.9em;
}

/* En emails y pedidos */
.wei-order-price-breakdown {
  margin-top: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #960606;
}

.wei-order-price-breakdown strong {
  display: inline-block;
  min-width: 80px;
  color: #555;
}
