/* Grado Alimenticio 0.8.1: ajustes exclusivos de interfaz WooCommerce.
   NO cambia JS, selectores de variaciones, impuestos, envios o pagos. */

/* Tablas nativas: revertir display:block de estilos institucionales anteriores. */
body.woocommerce-cart .ga-entry-content table.shop_table,
body.woocommerce-checkout .ga-entry-content table.shop_table{
  display:table;
  width:100%;
  max-width:100%;
  border-collapse:separate;
  overflow:visible;
}
body.woocommerce-cart .ga-entry-content form.woocommerce-cart-form{
  width:100%;
  max-width:100%;
}
body.woocommerce-cart .ga-entry-content form.woocommerce-cart-form table.shop_table{
  width:100%;
  table-layout:auto;
}
body.woocommerce-cart .ga-entry-content .woocommerce-cart-form .product-name{
  overflow-wrap:anywhere;
}
body.woocommerce-cart .ga-entry-content .cart-collaterals{
  width:100%;
  max-width:100%;
}
body.woocommerce-cart .ga-entry-content .cart-collaterals .cart_totals{
  float:none;
  width:min(100%,560px);
  margin-left:auto;
}

/* CTA de carrito y pedido: paleta del sitio; no cambiar su comportamiento. */
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout .woocommerce #payment #place_order{
  background:var(--ga-deep)!important;
  border-color:var(--ga-deep)!important;
  color:#fff!important;
  border-radius:9px;
  font-weight:750;
  text-decoration:none;
  box-shadow:none;
}
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:focus-visible,
body.woocommerce-checkout .woocommerce #payment #place_order:hover,
body.woocommerce-checkout .woocommerce #payment #place_order:focus-visible{
  background:var(--ga-forest)!important;
  border-color:var(--ga-forest)!important;
  color:#fff!important;
}

/* Ficha variable: estilos de texto y formulario; NUNCA forzar disabled=false. */
body.single-product .woocommerce div.product form.cart .variations select{
  max-width:100%;
}
body.single-product .woocommerce div.product form.cart .woocommerce-variation-price{
  color:var(--ga-deep);
}
body.single-product .woocommerce div.product .product_meta{
  overflow-wrap:anywhere;
  line-height:1.7;
}

@media(max-width:767px){
  body.woocommerce-cart .ga-entry-content form.woocommerce-cart-form{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  body.woocommerce-cart .ga-entry-content form.woocommerce-cart-form table.shop_table{
    min-width:580px;
  }
  body.woocommerce-cart .ga-entry-content .cart-collaterals .cart_totals{
    width:100%;
  }
  body.woocommerce-checkout .woocommerce .col2-set .col-1,
  body.woocommerce-checkout .woocommerce .col2-set .col-2{
    float:none;
    width:100%;
    max-width:100%;
  }
}
