.mdsb-recipe-table{padding:12px}
.mdsb-recipe-head,.mdsb-recipe-row{display:grid;grid-template-columns:1fr 1.6fr 110px 130px;gap:12px;align-items:center}
.mdsb-recipe-head{padding:0 12px 8px;color:#796e82;font-size:12px;font-weight:700;text-transform:uppercase}
.mdsb-recipe-row{padding:12px;border-radius:12px;background:#faf7fc;margin-bottom:8px}
.mdsb-recipe-row select{width:100%}
.mdsb-recipe-empty{padding:16px;color:#7c7283}
.mdsb-variation-box{background:#faf7fc;border:1px solid #eadff0;border-radius:12px;padding:14px;margin:12px 0}
.mdsb-order-box{background:#faf7fc;border:1px solid #eadff0;border-radius:12px;padding:14px;margin-top:14px}
.mdsb-fixed-material{background:#eef8f1;border:1px solid #d3ead9;border-radius:10px;padding:9px 12px;font-weight:700;color:#405b49}
.mdsb-extra-editor{padding:12px;margin:10px 12px 18px;background:#fff9fc;border:1px solid #f2dce8;border-radius:14px}
.mdsb-extra-editor h4,.mdsb-variation-box h4{margin:0 0 6px}
.mdsb-extra-row{display:grid;grid-template-columns:minmax(240px,1fr) 130px 42px;gap:8px;margin:8px 0;align-items:center}
.mdsb-extra-row select,.mdsb-extra-row input{width:100%}
.mdsb-qty{font-weight:700;color:#544b59}
.mdsb-kind{display:inline-flex;justify-content:center;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:700}
.mdsb-kind.fixed{background:#e8f5eb;color:#3f6548}
.mdsb-kind.replaceable{background:#eee8fb;color:#5f4d86}
@media(max-width:782px){.mdsb-recipe-head{display:none}.mdsb-recipe-row{grid-template-columns:1fr}.mdsb-extra-row{grid-template-columns:1fr 100px 42px}.mdsb-fixed-material{min-width:0}}
.mdsb-cost-summary{margin:14px 12px 18px;padding:16px;background:linear-gradient(135deg,#fff8fc,#f4f0ff);border:1px solid #ecddec;border-radius:16px}
.mdsb-cost-summary h4{margin:0 0 12px;font-size:16px}
.mdsb-cost-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mdsb-cost-grid>div{background:#fff;border:1px solid #eee5f1;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px}
.mdsb-cost-grid small{color:#776d7e}.mdsb-cost-grid strong{font-size:16px;color:#463c4d}.mdsb-cost-grid .total{background:#eaf7ee;border-color:#cfe8d7}
@media(max-width:782px){.mdsb-cost-grid{grid-template-columns:1fr}}

.mdsb-time-box{margin:14px 12px;padding:14px;border-radius:14px;background:#f7f0ff;border:1px solid #e7d8f5}.mdsb-time-box h4{margin:0 0 8px}.mdsb-time-grid{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px}.mdsb-time-grid label{font-weight:600}.mdsb-time-grid input{display:block;width:100%;margin-top:5px}.mdsb-time-suggestion{background:#fff8d9;padding:10px;border-radius:10px}


.mdsb-packaging-box{margin:14px 12px;padding:16px 18px;border:1px solid #eadff0;border-radius:14px;background:#fbf8ff}
.mdsb-packaging-box h4{margin:0 0 8px;font-size:15px}
.mdsb-packaging-box select{width:100%;max-width:560px}

/* Corrección de maquetación en Receta MD: WooCommerce aplica etiquetas flotantes
   a todos los <label> del panel. Estos bloques usan su propio diseño. */
#mdsb_recipe_panel .mdsb-packaging-box,
#mdsb_recipe_panel .mdsb-time-box,
#mdsb_recipe_panel .mdsb-production-category-box{
  box-sizing:border-box;
  clear:both;
  overflow:visible;
}
#mdsb_recipe_panel .mdsb-production-category-box{
  margin:14px 12px;
  padding:16px 18px;
  border:1px solid #f0e2b8;
  border-radius:14px;
  background:#fffaf0;
}
#mdsb_recipe_panel .mdsb-production-category-box h4{margin:0 0 8px;font-size:15px}
#mdsb_recipe_panel .mdsb-toggle-row{
  float:none!important;
  width:auto!important;
  margin:10px 0!important;
  padding:0!important;
  display:flex!important;
  align-items:flex-start;
  gap:8px;
  line-height:1.35;
  font-weight:600;
}
#mdsb_recipe_panel .mdsb-toggle-row input[type=checkbox]{
  float:none!important;
  width:16px!important;
  min-width:16px;
  height:16px;
  margin:2px 0 0!important;
}
#mdsb_recipe_panel .mdsb-toggle-row span{display:block;min-width:0}
#mdsb_recipe_panel .mdsb-field-control{clear:both;display:block;width:100%;margin-top:8px}
#mdsb_recipe_panel .mdsb-field-control select{float:none!important;width:100%!important;max-width:620px!important;margin:0!important}
#mdsb_recipe_panel .mdsb-time-grid{clear:both;align-items:start}
#mdsb_recipe_panel .mdsb-time-grid label{
  float:none!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  font-weight:600;
}
#mdsb_recipe_panel .mdsb-time-grid input[type=number]{
  float:none!important;
  width:100%!important;
  max-width:220px;
  margin:6px 0 0!important;
}
#mdsb_recipe_panel .mdsb-time-box .description,
#mdsb_recipe_panel .mdsb-packaging-box .description,
#mdsb_recipe_panel .mdsb-production-category-box .description{
  clear:both;
  margin:4px 0 8px;
}
@media(max-width:782px){
  #mdsb_recipe_panel .mdsb-time-grid{grid-template-columns:1fr}
  #mdsb_recipe_panel .mdsb-time-grid input[type=number]{max-width:none}
}

#mdsb_recipe_panel .mdsb-stock-model-box{margin:14px 12px;padding:16px;border:1px solid #eadff0;border-radius:16px;background:#fffafd}
#mdsb_recipe_panel .mdsb-stock-model-box h4{margin:0 0 8px}
#mdsb_recipe_panel .mdsb-stock-model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
#mdsb_recipe_panel .mdsb-stock-model-grid label{display:flex;flex-direction:column;gap:5px;font-weight:600}
#mdsb_recipe_panel .mdsb-stock-model-grid .wide{grid-column:1/-1}
#mdsb_recipe_panel .mdsb-stock-model-grid input,#mdsb_recipe_panel .mdsb-stock-model-grid select{width:100%;max-width:none}
#mdsb_recipe_panel .mdsb-current-stock{padding:12px;border-radius:12px;background:#f6fbf8;display:flex;flex-direction:column;gap:3px}
#mdsb_recipe_panel .mdsb-current-stock strong{font-size:20px}
#mdsb_recipe_panel .mdsb-current-stock span{font-size:12px;color:#646970}
#mdsb_recipe_panel .mdsb-personalization-settings{margin-top:12px;padding-top:12px;border-top:1px dashed #dccce5}
#mdsb_recipe_panel .mdsb-personalization-settings[hidden]{display:none!important}
#mdsb_recipe_panel .mdsb-message-preview{margin-top:14px;padding:12px;border-radius:12px;background:#f7f5ff}
#mdsb_recipe_panel .mdsb-message-preview p{margin:6px 0}
@media(max-width:782px){#mdsb_recipe_panel .mdsb-stock-model-grid{grid-template-columns:1fr}}

.mdsb-delivery-message{margin:12px 0;padding:12px 14px;border-radius:12px;background:#faf7ff;border:1px solid #eadff0;line-height:1.45}
#mdsb_recipe_panel .mdsb-pricing-box{margin:14px 12px;padding:16px;border:1px solid #eadff0;border-radius:16px;background:#fffdfa}
#mdsb_recipe_panel .mdsb-price-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
#mdsb_recipe_panel .mdsb-price-summary-grid>div{padding:10px;border-radius:10px;background:#f8f7f9;display:flex;flex-direction:column;gap:3px}
#mdsb_recipe_panel .mdsb-price-summary-grid .featured{background:#f4ecfb;border:1px solid #dfccef}
#mdsb_recipe_panel .mdsb-price-summary-grid .featured strong{font-size:18px}
@media(max-width:1100px){#mdsb_recipe_panel .mdsb-price-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.mdsb-variation-box .mdsb-cost-summary,.mdsb-variation-box .mdsb-pricing-box{margin:14px 0}
.mdsb-variation-box .mdsb-stock-model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.mdsb-variation-box .mdsb-stock-model-grid label{float:none!important;width:auto!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column;gap:5px;font-weight:600}
.mdsb-variation-box .mdsb-stock-model-grid input{width:100%!important;margin:0!important}
.mdsb-variation-box .mdsb-price-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.mdsb-variation-box .mdsb-price-summary-grid>div{padding:10px;border-radius:10px;background:#fff;display:flex;flex-direction:column;gap:3px}
.mdsb-variation-box .mdsb-price-summary-grid .featured{background:#f4ecfb;border:1px solid #dfccef}
@media(max-width:1100px){.mdsb-variation-box .mdsb-stock-model-grid,.mdsb-variation-box .mdsb-price-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:782px){.mdsb-variation-box .mdsb-stock-model-grid,.mdsb-variation-box .mdsb-price-summary-grid{grid-template-columns:1fr}}

.mdsb-pack-admin{margin:14px 12px;padding:18px;border:1px solid #eadff0;border-radius:16px;background:#fffafd}
.mdsb-pack-admin h3{margin:0 0 8px}.mdsb-pack-admin .form-field{padding-left:0!important;padding-right:0!important}
.mdsb-pack-note{padding:12px;border-radius:10px;background:#f7f5ff}
.mdsb-pack-economics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.mdsb-pack-product-cost{padding:14px;border:1px solid #eadff0;border-radius:14px;background:#fff}.mdsb-pack-product-cost h4{margin:0 0 4px}.mdsb-pack-cost-name{display:block;margin-bottom:10px}.mdsb-pack-product-cost label{display:flex!important;float:none!important;width:auto!important;margin:8px 0!important;padding:0!important;flex-direction:column;gap:5px}.mdsb-pack-product-cost select{width:100%!important}
.mdsb-pack-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.mdsb-pack-breakdown>div,.mdsb-pack-result-grid>div{padding:9px;border-radius:10px;background:#f8f7f9;display:flex;flex-direction:column;gap:3px}.mdsb-pack-breakdown small,.mdsb-pack-result-grid small{color:#6d6671}.mdsb-pack-breakdown strong,.mdsb-pack-result-grid strong{font-size:15px}
.mdsb-pack-percent-presets{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:12px}.mdsb-pack-percent-presets span{font-weight:600;margin-right:4px}
.mdsb-pack-simulator{margin:16px 12px;padding:16px;border:1px solid #dfccef;border-radius:16px;background:linear-gradient(135deg,#fff8fc,#f4f0ff)}.mdsb-pack-simulator h4{margin:0 0 12px}.mdsb-pack-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.mdsb-pack-result-grid .featured{background:#eaf7ee;border:1px solid #cfe8d7}.mdsb-pack-result-grid .featured strong{font-size:18px}.mdsb-pack-warning{margin:12px 0 0;padding:10px;border-radius:9px;background:#fff1f0;color:#8a2424;font-weight:600}
@media(max-width:1100px){.mdsb-pack-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:782px){.mdsb-pack-economics,.mdsb-pack-result-grid{grid-template-columns:1fr}}
.mdsb-pack-offer{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;gap:14px!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;clear:both!important;float:none!important;margin:16px 0!important;padding:14px!important;border:1px solid #eadff0;border-radius:14px;background:#fffafd}
.mdsb-pack-offer-image img{display:block;width:96px;height:96px;object-fit:cover;border-radius:10px}
.mdsb-pack-offer-content{display:flex;flex-direction:column;gap:6px;min-width:0}
.mdsb-pack-offer-title{font-size:1.05em}.mdsb-pack-product-name{font-weight:600}.mdsb-pack-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 12px}.mdsb-pack-price del{opacity:.65}.mdsb-pack-price ins{text-decoration:none;font-weight:700;color:#7b3f83}.mdsb-pack-price strong{font-size:1.05em}
.mdsb-pack-attributes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0}
.mdsb-pack-attributes label{display:flex;flex-direction:column;gap:4px;font-size:.9em;font-weight:600}.mdsb-pack-attributes select{width:100%}
.mdsb-pack-check{display:flex;align-items:flex-start;gap:8px;margin-top:4px;font-weight:600}.mdsb-pack-check input{margin-top:4px}
@media(max-width:520px){.mdsb-pack-offer{grid-template-columns:72px 1fr}.mdsb-pack-offer-image img{width:72px;height:72px}.mdsb-pack-attributes{grid-template-columns:1fr}}


/* v0.18.2: WooCommerce aplica float/márgenes negativos a los label de sus paneles.
   Los bloques MD usan grid/flex y deben neutralizar esa herencia para no quedar
   ocultos bajo las pestañas laterales de Datos del producto. */
#mdsb_recipe_panel .mdsb-stock-model-box .mdsb-stock-model-grid > label,
#mdsb_recipe_panel .mdsb-stock-model-box .mdsb-toggle-row,
#mdsb_recipe_panel .mdsb-pricing-box label{
  float:none!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
}
#mdsb_recipe_panel .mdsb-stock-model-box .mdsb-stock-model-grid > label{
  display:flex!important;
  flex-direction:column;
  gap:5px;
}
#mdsb_recipe_panel .mdsb-stock-model-box .mdsb-toggle-row{
  display:flex!important;
  align-items:flex-start;
  gap:8px;
}
#mdsb_recipe_panel .mdsb-stock-model-box .mdsb-toggle-row input[type=checkbox]{
  flex:0 0 auto;
  margin-top:2px!important;
}
